Lines of
script/c0.lua
from check-in d2dde12476
that are changed by the sequence of edits moving toward
check-in 72e877e414:
1: local str = {}
2: local fun = {}
3:
4: local cache_1
5: local cache_2
6: local cache_3
7:
8:
9:
10: _G["通关邀请"] = function()
11: local effect_1
12: effect_1 = Effect.GlobalEffect()
13: effect_1:SetType(EFFECT_TYPE_FIELD
14: + EFFECT_TYPE_CONTINUOUS)
15: effect_1:SetCode(EVENT_DAMAGE)
16: function cache_1()
17: cache_1 = Duel.GetLP(1)
18: if cache_1 <= 0 then
19: cache_1 = true
20: else
21: cache_1 = false
22: end
23: return cache_1
24: end
25: effect_1:SetCondition(cache_1)
26: function cache_1()
27: Debug.ShowHint("残局群181175613")
28: return
29: end
30: effect_1:SetOperation(cache_1)
31:
32: Duel.RegisterEffect(effect_1
33: , 0)
34: end
35:
36: fun["是否效果卡"] = function(card)
37: local cache_1
38: local cache_2
39: local cache_3
40:
41: cache_1 = Card.IsType(card, TYPE_SPELL)
42: cache_2 = Card.IsType(card, TYPE_TRAP)
43: cache_3 = Card.IsType(card, TYPE_EFFECT)
44:
45: if cache_1
46: or cache_2
47: or cache_3 then
48: return true
49: end
50: return false
51: end
52:
53: _G["开局说明"] = function()
54: Debug.ShowHint(Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_GRAVE,0,nil))
55:
56: --~ local cache_1 = {}
57:
58: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_DECK,0)
59: --~ cache_1:insert(cache_2)
60: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_GRAVE,0)
61: --~ cache_1:insert(cache_2)
62: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_MZONE,0)
63: --~ cache_1:insert(cache_2)
64: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_HAND,0)
65: --~ cache_1:insert(cache_2)
66: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_PZONE,0)
67: --~ cache_1:insert(cache_2)
68: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_REMOVED,0)
69: --~ cache_1:insert(cache_2)
70: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_EXTRA,0)
71: --~ cache_1:insert(cache_2)
72: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_SZONE,0)
73: --~ cache_1:insert(cache_2)
74:
75: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_DECK)
76: --~ cache_1:insert(cache_2)
77: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_GRAVE)
78: --~ cache_1:insert(cache_2)
79: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_MZONE)
80: --~ cache_1:insert(cache_2)
81: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_HAND)
82: --~ cache_1:insert(cache_2)
83: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_PZONE)
84: --~ cache_1:insert(cache_2)
85: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_REMOVED)
86: --~ cache_1:insert(cache_2)
87: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_EXTRA)
88: --~ cache_1:insert(cache_2)
89: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_SZONE)
90: --~ cache_1:insert(cache_2)
91:
92: --~ cache_2 = Duel.GetOverlayGroup(0,LOCATION_MZONE,0)
93: --~ cache_1:insert(cache_2)
94: --~ cache_2 = Duel.GetOverlayGroup(0,0,LOCATION_SZONE)
95: --~ cache_1:insert(cache_2)
96:
97: --~ for i=1, #cache_1 do
98: --~ end
99:
100:
101: str["这个残局的效果卡数量"] = 0
102:
103: --~ str["我方卡组"] = Duel.GetFieldGroupCount(0,LOCATION_DECK,0)
104: --~ str["我方墓地"] = Duel.GetFieldGroupCount(0,LOCATION_GRAVE,0)
105: --~ str["我方怪兽区"] = Duel.GetFieldGroupCount(0,LOCATION_MZONE,0)
106: --~ str["我方手卡"] = Duel.GetFieldGroupCount(0,LOCATION_HAND,0)
107: --~ str["我方灵摆区"] = Duel.GetFieldGroupCount(0,LOCATION_PZONE,0)
108: --~ str["我方除外区"] = Duel.GetFieldGroupCount(0,LOCATION_REMOVED,0)
109: --~ str["我方额外卡组"] = Duel.GetFieldGroupCount(0,LOCATION_EXTRA,0)
110: --~ str["我方魔陷区"] = Duel.GetFieldGroupCount(0,LOCATION_SZONE,0)
111:
112: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
113: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
114: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
115: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
116: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
117: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
118: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
119: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]
120:
121: --~ str["对方卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_DECK)
122: --~ str["对方墓地"] = Duel.GetFieldGroupCount(0,0,LOCATION_GRAVE)
123: --~ str["对方怪兽区"] = Duel.GetFieldGroupCount(0,0,LOCATION_MZONE)
124: --~ str["对方手卡"] = Duel.GetFieldGroupCount(0,0,LOCATION_HAND)
125: --~ str["对方灵摆区"] = Duel.GetFieldGroupCount(0,0,LOCATION_PZONE)
126: --~ str["对方除外区"] = Duel.GetFieldGroupCount(0,0,LOCATION_REMOVED)
127: --~ str["对方额外卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_EXTRA)
128: --~ str["对方魔陷区"] = Duel.GetFieldGroupCount(0,0,LOCATION_SZONE)
129:
130: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方卡组"]
131: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方墓地"]
132: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方怪兽区"]
133: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方手卡"]
134: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方灵摆区"]
135: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方除外区"]
136: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方额外卡组"]
137: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方魔陷区"]
138:
139: --~ str["我方超量素材"] = Duel.GetOverlayCount(0, LOCATION_MZONE, 0)
140: --~ str["对方超量素材"] = Duel.GetOverlayCount(0, 0, LOCATION_MZONE)
141:
142: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方超量素材"]
143: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方超量素材"]
144:
145: --~ Debug.ShowHint(str["这个残局的效果卡数量"])
146: end
147:
148: