Lines of
script/c0.lua
from check-in d2a906c720
that are changed by the sequence of edits moving toward
check-in b0d676d468:
1: local str = {}
2: local fun = {}
3:
4: local cache_1
5: local cache_2
6:
7: fun["是否效果卡"] = function()
8: end
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: _G["开局说明"] = function()
d2a906c720 2023-06-29 37: local cache_1 = {}
d2a906c720 2023-06-29 38:
d2a906c720 2023-06-29 39: cache_2 = Duel.GetFieldGroup(0,LOCATION_DECK,0)
d2a906c720 2023-06-29 40: cache_1:insert(cache_2)
d2a906c720 2023-06-29 41: cache_2 = Duel.GetFieldGroup(0,LOCATION_GRAVE,0)
d2a906c720 2023-06-29 42: cache_1:insert(cache_2)
d2a906c720 2023-06-29 43: cache_2 = Duel.GetFieldGroup(0,LOCATION_MZONE,0)
d2a906c720 2023-06-29 44: cache_1:insert(cache_2)
d2a906c720 2023-06-29 45: cache_2 = Duel.GetFieldGroup(0,LOCATION_HAND,0)
d2a906c720 2023-06-29 46: cache_1:insert(cache_2)
d2a906c720 2023-06-29 47: cache_2 = Duel.GetFieldGroup(0,LOCATION_PZONE,0)
d2a906c720 2023-06-29 48: cache_1:insert(cache_2)
d2a906c720 2023-06-29 49: cache_2 = Duel.GetFieldGroup(0,LOCATION_REMOVED,0)
d2a906c720 2023-06-29 50: cache_1:insert(cache_2)
d2a906c720 2023-06-29 51: cache_2 = Duel.GetFieldGroup(0,LOCATION_EXTRA,0)
d2a906c720 2023-06-29 52: cache_1:insert(cache_2)
d2a906c720 2023-06-29 53: cache_2 = Duel.GetFieldGroup(0,LOCATION_SZONE,0)
d2a906c720 2023-06-29 54: cache_1:insert(cache_2)
d2a906c720 2023-06-29 55:
d2a906c720 2023-06-29 56: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_DECK)
d2a906c720 2023-06-29 57: cache_1:insert(cache_2)
d2a906c720 2023-06-29 58: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_GRAVE)
d2a906c720 2023-06-29 59: cache_1:insert(cache_2)
d2a906c720 2023-06-29 60: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_MZONE)
d2a906c720 2023-06-29 61: cache_1:insert(cache_2)
d2a906c720 2023-06-29 62: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_HAND)
d2a906c720 2023-06-29 63: cache_1:insert(cache_2)
d2a906c720 2023-06-29 64: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_PZONE)
d2a906c720 2023-06-29 65: cache_1:insert(cache_2)
d2a906c720 2023-06-29 66: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_REMOVED)
d2a906c720 2023-06-29 67: cache_1:insert(cache_2)
d2a906c720 2023-06-29 68: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_EXTRA)
d2a906c720 2023-06-29 69: cache_1:insert(cache_2)
d2a906c720 2023-06-29 70: cache_2 = Duel.GetFieldGroup(0,0,LOCATION_SZONE)
d2a906c720 2023-06-29 71: cache_1:insert(cache_2)
d2a906c720 2023-06-29 72:
d2a906c720 2023-06-29 73: cache_2 = Duel.GetOverlayGroup(0,LOCATION_MZONE,0)
d2a906c720 2023-06-29 74: cache_1:insert(cache_2)
d2a906c720 2023-06-29 75: cache_2 = Duel.GetOverlayGroup(0,0,LOCATION_SZONE)
d2a906c720 2023-06-29 76: cache_1:insert(cache_2)
d2a906c720 2023-06-29 77:
d2a906c720 2023-06-29 78: for i=1, #cache_1 do
d2a906c720 2023-06-29 79: end
80:
81:
82: str["这个残局的效果卡数量"] = 0
83:
84: --~ str["我方卡组"] = Duel.GetFieldGroupCount(0,LOCATION_DECK,0)
85: --~ str["我方墓地"] = Duel.GetFieldGroupCount(0,LOCATION_GRAVE,0)
86: --~ str["我方怪兽区"] = Duel.GetFieldGroupCount(0,LOCATION_MZONE,0)
87: --~ str["我方手卡"] = Duel.GetFieldGroupCount(0,LOCATION_HAND,0)
88: --~ str["我方灵摆区"] = Duel.GetFieldGroupCount(0,LOCATION_PZONE,0)
89: --~ str["我方除外区"] = Duel.GetFieldGroupCount(0,LOCATION_REMOVED,0)
90: --~ str["我方额外卡组"] = Duel.GetFieldGroupCount(0,LOCATION_EXTRA,0)
91: --~ str["我方魔陷区"] = Duel.GetFieldGroupCount(0,LOCATION_SZONE,0)
92:
93: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
94: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
95: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
96: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
97: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
98: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
99: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
100: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]
101:
102: --~ str["对方卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_DECK)
103: --~ str["对方墓地"] = Duel.GetFieldGroupCount(0,0,LOCATION_GRAVE)
104: --~ str["对方怪兽区"] = Duel.GetFieldGroupCount(0,0,LOCATION_MZONE)
105: --~ str["对方手卡"] = Duel.GetFieldGroupCount(0,0,LOCATION_HAND)
106: --~ str["对方灵摆区"] = Duel.GetFieldGroupCount(0,0,LOCATION_PZONE)
107: --~ str["对方除外区"] = Duel.GetFieldGroupCount(0,0,LOCATION_REMOVED)
108: --~ str["对方额外卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_EXTRA)
109: --~ str["对方魔陷区"] = Duel.GetFieldGroupCount(0,0,LOCATION_SZONE)
110:
111: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方卡组"]
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:
120: --~ str["我方超量素材"] = Duel.GetOverlayCount(0, LOCATION_MZONE, 0)
121: --~ str["对方超量素材"] = Duel.GetOverlayCount(0, 0, LOCATION_MZONE)
122:
123: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方超量素材"]
124: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方超量素材"]
125:
126: --~ Debug.ShowHint(str["这个残局的效果卡数量"])
127: end
128:
129: