Lines of
script/c0.lua
from check-in 4f50d4f4dc
that are changed by the sequence of edits moving toward
check-in d0a72ea395:
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: str["我方卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_DECK,0,nil)
55: str["我方墓地"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_GRAVE,0,nil)
56: str["我方怪兽区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_MZONE,0,nil)
57: str["我方手卡"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_HAND,0,nil)
58: str["我方灵摆区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_PZONE,0,nil)
59: str["我方除外区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_REMOVED,0,nil)
60: str["我方额外卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_EXTRA,0,nil)
61: str["我方魔陷区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_SZONE,0,nil)
62: str["我方超量素材"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_OVERLAY,0,nil)
63:
64: str["对方卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_DECK,nil)
65: str["对方墓地"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_GRAVE,nil)
66: str["对方怪兽区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_MZONE,nil)
67: str["对方手卡"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_HAND,nil)
68: str["对方灵摆区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_PZONE,nil)
69: str["对方除外区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_REMOVED,nil)
70: str["对方额外卡组"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_EXTRA,nil)
71: str["对方魔陷区"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_SZONE,nil)
72: str["对方超量素材"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,0,LOCATION_OVERLAY,nil)
73:
74: str["这个残局的效果卡数量"]=0
75:
76: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
77: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
78: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
79: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
80: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
81: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
82: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
83: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]
84: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方超量素材"]
85: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方卡组"]
86: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方墓地"]
87: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方怪兽区"]
88: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方手卡"]
89: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方灵摆区"]
90: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方除外区"]
91: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方额外卡组"]
92: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方魔陷区"]
93: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方超量素材"]
4f50d4f4dc 2023-06-29 94: --~ Debug.ShowHint(Duel.GetMatchingGroupCount(fun["是否效果卡"],0,LOCATION_GRAVE,0,nil))
95:
96: --~ local cache_1 = {}
97:
4f50d4f4dc 2023-06-29 98: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_DECK,0)
4f50d4f4dc 2023-06-29 99: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 100: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_GRAVE,0)
4f50d4f4dc 2023-06-29 101: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 102: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_MZONE,0)
4f50d4f4dc 2023-06-29 103: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 104: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_HAND,0)
4f50d4f4dc 2023-06-29 105: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 106: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_PZONE,0)
4f50d4f4dc 2023-06-29 107: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 108: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_REMOVED,0)
4f50d4f4dc 2023-06-29 109: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 110: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_EXTRA,0)
4f50d4f4dc 2023-06-29 111: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 112: --~ cache_2 = Duel.GetFieldGroup(0,LOCATION_SZONE,0)
4f50d4f4dc 2023-06-29 113: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 114:
4f50d4f4dc 2023-06-29 115: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_DECK)
4f50d4f4dc 2023-06-29 116: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 117: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_GRAVE)
4f50d4f4dc 2023-06-29 118: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 119: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_MZONE)
4f50d4f4dc 2023-06-29 120: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 121: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_HAND)
4f50d4f4dc 2023-06-29 122: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 123: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_PZONE)
4f50d4f4dc 2023-06-29 124: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 125: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_REMOVED)
4f50d4f4dc 2023-06-29 126: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 127: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_EXTRA)
4f50d4f4dc 2023-06-29 128: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 129: --~ cache_2 = Duel.GetFieldGroup(0,0,LOCATION_SZONE)
4f50d4f4dc 2023-06-29 130: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 131:
4f50d4f4dc 2023-06-29 132: --~ cache_2 = Duel.GetOverlayGroup(0,LOCATION_MZONE,0)
4f50d4f4dc 2023-06-29 133: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 134: --~ cache_2 = Duel.GetOverlayGroup(0,0,LOCATION_SZONE)
4f50d4f4dc 2023-06-29 135: --~ cache_1:insert(cache_2)
4f50d4f4dc 2023-06-29 136:
137: --~ for i=1, #cache_1 do
138: --~ end
4f50d4f4dc 2023-06-29 139:
4f50d4f4dc 2023-06-29 140:
4f50d4f4dc 2023-06-29 141:
4f50d4f4dc 2023-06-29 142:
4f50d4f4dc 2023-06-29 143: --~ str["我方卡组"] = Duel.GetFieldGroupCount(0,LOCATION_DECK,0)
4f50d4f4dc 2023-06-29 144: --~ str["我方墓地"] = Duel.GetFieldGroupCount(0,LOCATION_GRAVE,0)
4f50d4f4dc 2023-06-29 145: --~ str["我方怪兽区"] = Duel.GetFieldGroupCount(0,LOCATION_MZONE,0)
4f50d4f4dc 2023-06-29 146: --~ str["我方手卡"] = Duel.GetFieldGroupCount(0,LOCATION_HAND,0)
4f50d4f4dc 2023-06-29 147: --~ str["我方灵摆区"] = Duel.GetFieldGroupCount(0,LOCATION_PZONE,0)
4f50d4f4dc 2023-06-29 148: --~ str["我方除外区"] = Duel.GetFieldGroupCount(0,LOCATION_REMOVED,0)
4f50d4f4dc 2023-06-29 149: --~ str["我方额外卡组"] = Duel.GetFieldGroupCount(0,LOCATION_EXTRA,0)
4f50d4f4dc 2023-06-29 150: --~ str["我方魔陷区"] = Duel.GetFieldGroupCount(0,LOCATION_SZONE,0)
4f50d4f4dc 2023-06-29 151:
4f50d4f4dc 2023-06-29 152: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方卡组"]
4f50d4f4dc 2023-06-29 153: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方墓地"]
4f50d4f4dc 2023-06-29 154: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方怪兽区"]
4f50d4f4dc 2023-06-29 155: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方手卡"]
4f50d4f4dc 2023-06-29 156: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方灵摆区"]
4f50d4f4dc 2023-06-29 157: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方除外区"]
4f50d4f4dc 2023-06-29 158: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方额外卡组"]
4f50d4f4dc 2023-06-29 159: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方魔陷区"]
4f50d4f4dc 2023-06-29 160:
4f50d4f4dc 2023-06-29 161: --~ str["对方卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_DECK)
4f50d4f4dc 2023-06-29 162: --~ str["对方墓地"] = Duel.GetFieldGroupCount(0,0,LOCATION_GRAVE)
4f50d4f4dc 2023-06-29 163: --~ str["对方怪兽区"] = Duel.GetFieldGroupCount(0,0,LOCATION_MZONE)
4f50d4f4dc 2023-06-29 164: --~ str["对方手卡"] = Duel.GetFieldGroupCount(0,0,LOCATION_HAND)
4f50d4f4dc 2023-06-29 165: --~ str["对方灵摆区"] = Duel.GetFieldGroupCount(0,0,LOCATION_PZONE)
4f50d4f4dc 2023-06-29 166: --~ str["对方除外区"] = Duel.GetFieldGroupCount(0,0,LOCATION_REMOVED)
4f50d4f4dc 2023-06-29 167: --~ str["对方额外卡组"] = Duel.GetFieldGroupCount(0,0,LOCATION_EXTRA)
4f50d4f4dc 2023-06-29 168: --~ str["对方魔陷区"] = Duel.GetFieldGroupCount(0,0,LOCATION_SZONE)
4f50d4f4dc 2023-06-29 169:
4f50d4f4dc 2023-06-29 170: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方卡组"]
4f50d4f4dc 2023-06-29 171: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方墓地"]
4f50d4f4dc 2023-06-29 172: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方怪兽区"]
4f50d4f4dc 2023-06-29 173: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方手卡"]
4f50d4f4dc 2023-06-29 174: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方灵摆区"]
4f50d4f4dc 2023-06-29 175: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方除外区"]
4f50d4f4dc 2023-06-29 176: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方额外卡组"]
4f50d4f4dc 2023-06-29 177: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方魔陷区"]
4f50d4f4dc 2023-06-29 178:
4f50d4f4dc 2023-06-29 179: --~ str["我方超量素材"] = Duel.GetOverlayCount(0, LOCATION_MZONE, 0)
4f50d4f4dc 2023-06-29 180: --~ str["对方超量素材"] = Duel.GetOverlayCount(0, 0, LOCATION_MZONE)
4f50d4f4dc 2023-06-29 181:
4f50d4f4dc 2023-06-29 182: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["我方超量素材"]
4f50d4f4dc 2023-06-29 183: --~ str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + str["对方超量素材"]
184:
185: str["开局说明"] = "效果卡:"
186: str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
187:
188: Debug.ShowHint(str["开局说明"])
189: end
190:
191: