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