eeeff3c24b 2023-07-15 1:
e59d27b43b 2023-07-17 2: local str = {}
e59d27b43b 2023-07-17 3:
e59d27b43b 2023-07-17 4: local cache_1
e59d27b43b 2023-07-17 5: local cache_2
e59d27b43b 2023-07-17 6: local cache_3
e59d27b43b 2023-07-17 7: local cache_4
e59d27b43b 2023-07-17 8: local cache_5
27cb01cd8e 2023-07-17 9: local cache_6
27cb01cd8e 2023-07-17 10: local cache_7
27cb01cd8e 2023-07-17 11: local cache_8
27cb01cd8e 2023-07-17 12: local cache_9
27cb01cd8e 2023-07-17 13:
cea99f0284 2023-07-19 14: local i
cea99f0284 2023-07-19 15:
41aff3cc3d 2023-07-17 16: _G.fun = {}
cea99f0284 2023-07-19 17:
1270346ecf 2023-07-19 18: ---------------------------------
1270346ecf 2023-07-19 19:
8dbe277f54 2023-07-19 20: str["二解弹窗"] = "QB:「你居然二解了,请加群告诉我怎么二解。」"
8dbe277f54 2023-07-19 21: str["原解弹窗"] = "残局群181175613"
ba86300fd5 2023-07-19 22:
cd474d87a3 2023-07-19 23: str["规则"] = ""
ba86300fd5 2023-07-19 24: str["大师3"] = "大师3 "
ba86300fd5 2023-07-19 25: str["新大师"] = "新大师 "
ba86300fd5 2023-07-19 26: str["大师2020"] = "大师2020 "
262ab836d0 2023-07-19 27:
262ab836d0 2023-07-19 28: str["不洗牌"] = false
262ab836d0 2023-07-19 29: str["无BP"] = false
cd474d87a3 2023-07-19 30:
d284579690 2023-07-19 31: str["不洗牌的说明"] = "伪洗牌 "
d284579690 2023-07-19 32: str["无BP的说明"] = "无BP "
1270346ecf 2023-07-19 33:
1270346ecf 2023-07-19 34: str["开局说明"] = ""
1270346ecf 2023-07-19 35:
1270346ecf 2023-07-19 36: str["这个残局的效果卡数量"] = 0
1270346ecf 2023-07-19 37: str["效果卡数量的后缀"] = "卡 "
d284579690 2023-07-19 38:
d284579690 2023-07-19 39: str["开局添加手卡"] = false
d284579690 2023-07-19 40: str["选卡的前缀"] = "选"
d284579690 2023-07-19 41: str["选卡的后缀"] = "卡 "
d284579690 2023-07-19 42:
d16316bada 2023-07-19 43:
d16316bada 2023-07-19 44: str["胜利条件表"] = {}
d16316bada 2023-07-19 45:
d16316bada 2023-07-19 46: str["胜利条件表"][0] = false
d16316bada 2023-07-19 47: str["胜利条件表"][1] = "胜利条件:让对方的卡全部回到卡组·额外卡组。"
d16316bada 2023-07-19 48:
d16316bada 2023-07-19 49: str["达成胜利条件弹窗"] = "目标已达成!"
15a06aae93 2023-07-19 50:
cea99f0284 2023-07-19 51: str["效果卡的种类表"] = {}
cea99f0284 2023-07-19 52:
cea99f0284 2023-07-19 53: str["效果卡的种类表"][1] = TYPE_SPELL
cea99f0284 2023-07-19 54: str["效果卡的种类表"][2] = TYPE_TRAP
cea99f0284 2023-07-19 55: str["效果卡的种类表"][3] = TYPE_EFFECT
15a06aae93 2023-07-19 56:
15a06aae93 2023-07-19 57: str["无效果灵摆怪兽表"] = {}
15a06aae93 2023-07-19 58:
15a06aae93 2023-07-19 59: str["无效果灵摆怪兽表"][1] = 28363749
15a06aae93 2023-07-19 60: str["无效果灵摆怪兽表"][2] = 19474136
15a06aae93 2023-07-19 61: str["无效果灵摆怪兽表"][3] = 17390179
15a06aae93 2023-07-19 62: str["无效果灵摆怪兽表"][4] = 83980492
262ab836d0 2023-07-19 63:
262ab836d0 2023-07-19 64: cache_1 = 0
262ab836d0 2023-07-19 65:
262ab836d0 2023-07-19 66: cache_1 = cache_1 + LOCATION_HAND
262ab836d0 2023-07-19 67: cache_1 = cache_1 + LOCATION_MZONE
262ab836d0 2023-07-19 68: cache_1 = cache_1 + LOCATION_SZONE
262ab836d0 2023-07-19 69: cache_1 = cache_1 + LOCATION_GRAVE
262ab836d0 2023-07-19 70: cache_1 = cache_1 + LOCATION_REMOVED
262ab836d0 2023-07-19 71:
262ab836d0 2023-07-19 72: str["除卡组与额外卡组以外的区域"] = cache_1
262ab836d0 2023-07-19 73:
262ab836d0 2023-07-19 74: cache_1 = cache_1 + LOCATION_DECK
262ab836d0 2023-07-19 75: cache_1 = cache_1 + LOCATION_EXTRA
262ab836d0 2023-07-19 76:
262ab836d0 2023-07-19 77: str["所有区域"] = cache_1
1270346ecf 2023-07-19 78:
1270346ecf 2023-07-19 79: ---------------------------------
8736d64183 2023-07-11 80:
ad797768a6 2023-07-14 81: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
8736d64183 2023-07-11 82:
8736d64183 2023-07-11 83: Debug.ReloadFieldBegin = function(str_1, str_2) --{
993a6dbc45 2023-07-13 84:
8736d64183 2023-07-11 85: str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
8736d64183 2023-07-11 86:
8736d64183 2023-07-11 87: str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
1fb42895ff 2023-07-11 88:
8736d64183 2023-07-11 89: if str_2 then --{
993a6dbc45 2023-07-13 90:
993a6dbc45 2023-07-13 91: if str_2 == 3 then --{
993a6dbc45 2023-07-13 92:
b99a3223f8 2023-07-19 93: str["规则"] = str["大师3"]
993a6dbc45 2023-07-13 94:
993a6dbc45 2023-07-13 95: --}
993a6dbc45 2023-07-13 96:
993a6dbc45 2023-07-13 97: elseif str_2 == 4 then --{
993a6dbc45 2023-07-13 98:
b99a3223f8 2023-07-19 99: str["规则"] = str["新大师"]
993a6dbc45 2023-07-13 100:
993a6dbc45 2023-07-13 101: --}
993a6dbc45 2023-07-13 102:
993a6dbc45 2023-07-13 103: elseif str_2 == 5 then --{
993a6dbc45 2023-07-13 104:
b99a3223f8 2023-07-19 105: str["规则"] = str["大师2020"]
993a6dbc45 2023-07-13 106:
993a6dbc45 2023-07-13 107: --}
993a6dbc45 2023-07-13 108:
993a6dbc45 2023-07-13 109: end --}
993a6dbc45 2023-07-13 110:
993a6dbc45 2023-07-13 111: else --{
993a6dbc45 2023-07-13 112:
b99a3223f8 2023-07-19 113: str["规则"] = str["大师2020"]
ad797768a6 2023-07-14 114:
ad797768a6 2023-07-14 115: end --}
993a6dbc45 2023-07-13 116:
ad797768a6 2023-07-14 117: fun["Debug.ReloadFieldBegin"](str_1, str_2)
7b13e3e7c3 2023-07-16 118:
7b13e3e7c3 2023-07-16 119: end --}
7b13e3e7c3 2023-07-16 120:
7b13e3e7c3 2023-07-16 121: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
7b13e3e7c3 2023-07-16 122:
02cee86a5d 2023-07-16 123: aux.BeginPuzzle = function() --{
c1424b8fad 2023-07-16 124:
02cee86a5d 2023-07-16 125: fun["aux.BeginPuzzle"]()
d16316bada 2023-07-19 126:
d16316bada 2023-07-19 127: if str["胜利条件表"][0] then --{
d16316bada 2023-07-19 128: Debug.ShowHint(str["胜利条件表"][0])
d16316bada 2023-07-19 129: end --}
cea99f0284 2023-07-19 130:
02cee86a5d 2023-07-16 131: fun["开局说明"]()
c1424b8fad 2023-07-16 132:
cd5279993d 2023-07-16 133: fun["通关邀请"]()
c1424b8fad 2023-07-16 134:
02cee86a5d 2023-07-16 135: end --}
c1424b8fad 2023-07-16 136:
993a6dbc45 2023-07-13 137: fun["通关邀请"] = function() --{
993a6dbc45 2023-07-13 138:
8736d64183 2023-07-11 139: effect_1 = Effect.GlobalEffect()
8736d64183 2023-07-11 140:
8736d64183 2023-07-11 141: effect_1:SetType(EFFECT_TYPE_FIELD
8736d64183 2023-07-11 142: + EFFECT_TYPE_CONTINUOUS)
8736d64183 2023-07-11 143:
8736d64183 2023-07-11 144: effect_1:SetCode(EVENT_DAMAGE)
1fb42895ff 2023-07-11 145:
1fb42895ff 2023-07-11 146: function cache_1() --{
993a6dbc45 2023-07-13 147:
1fb42895ff 2023-07-11 148: cache_1 = Duel.GetLP(1)
1fb42895ff 2023-07-11 149:
1fb42895ff 2023-07-11 150: if cache_1 <= 0 then --{
993a6dbc45 2023-07-13 151:
5593fe6ed7 2023-07-17 152: if cache_1 == 0 then --{
5593fe6ed7 2023-07-17 153:
ea070909e1 2023-07-18 154: --}
ea070909e1 2023-07-18 155:
ea070909e1 2023-07-18 156: else --{
ea070909e1 2023-07-18 157:
ea070909e1 2023-07-18 158: Debug.ShowHint(str["二解弹窗"])
334f2bc614 2023-07-18 159:
334f2bc614 2023-07-18 160: end --}
334f2bc614 2023-07-18 161:
ea070909e1 2023-07-18 162: Debug.ShowHint(str["原解弹窗"])
45478ef823 2023-07-13 163:
7c21defa68 2023-07-13 164: --}
993a6dbc45 2023-07-13 165:
7c21defa68 2023-07-13 166: else --{
993a6dbc45 2023-07-13 167:
24b898f4c2 2023-07-16 168: return false
45478ef823 2023-07-13 169:
7c21defa68 2023-07-13 170: end --}
993a6dbc45 2023-07-13 171:
7c21defa68 2023-07-13 172: end --}
45478ef823 2023-07-13 173:
1fb42895ff 2023-07-11 174: effect_1:SetCondition(cache_1)
1fb42895ff 2023-07-11 175:
975214d28e 2023-07-16 176: effect_1:SetOperation(aux.NULL)
1fb42895ff 2023-07-11 177:
1fb42895ff 2023-07-11 178: Duel.RegisterEffect(effect_1
1fb42895ff 2023-07-11 179: , 0)
45478ef823 2023-07-13 180:
ebd8dd9982 2023-07-11 181: end --}
993a6dbc45 2023-07-13 182:
ebd8dd9982 2023-07-11 183: fun["是否效果卡"] = function(card) --{
add769c64d 2023-07-19 184:
add769c64d 2023-07-19 185: cache_1 = #str["效果卡的种类表"]
add769c64d 2023-07-19 186:
add769c64d 2023-07-19 187: for i = 1, cache_1 do --{
add769c64d 2023-07-19 188:
add769c64d 2023-07-19 189: cache_1 = Card.IsType(card, str["效果卡的种类表"][i])
add769c64d 2023-07-19 190:
add769c64d 2023-07-19 191: if cache_1 then --{
add769c64d 2023-07-19 192:
add769c64d 2023-07-19 193: return true
add769c64d 2023-07-19 194: end --}
add769c64d 2023-07-19 195:
ebd8dd9982 2023-07-11 196: end --}
993a6dbc45 2023-07-13 197:
ebd8dd9982 2023-07-11 198: cache_1 = Card.IsType(card, TYPE_PENDULUM)
ebd8dd9982 2023-07-11 199:
ebd8dd9982 2023-07-11 200: if cache_1 then --{
993a6dbc45 2023-07-13 201:
15a06aae93 2023-07-19 202: cache_1 = #str["无效果灵摆怪兽表"]
15a06aae93 2023-07-19 203:
15a06aae93 2023-07-19 204: for i = 1, cache_1 do --{
15a06aae93 2023-07-19 205:
15a06aae93 2023-07-19 206: cache_1 = Card.IsCode(card, str["无效果灵摆怪兽表"][i])
15a06aae93 2023-07-19 207:
15a06aae93 2023-07-19 208: if cache_1 then --{
15a06aae93 2023-07-19 209:
15a06aae93 2023-07-19 210: --}
15a06aae93 2023-07-19 211:
15a06aae93 2023-07-19 212: else --{
15a06aae93 2023-07-19 213:
15a06aae93 2023-07-19 214: return true
15a06aae93 2023-07-19 215:
15a06aae93 2023-07-19 216: end --}
15a06aae93 2023-07-19 217:
993a6dbc45 2023-07-13 218: end --}
993a6dbc45 2023-07-13 219:
993a6dbc45 2023-07-13 220: end --}
993a6dbc45 2023-07-13 221:
7c21defa68 2023-07-13 222: return false
45478ef823 2023-07-13 223:
45478ef823 2023-07-13 224: end --}
45478ef823 2023-07-13 225:
45478ef823 2023-07-13 226: fun["开局说明"] = function() --{
993a6dbc45 2023-07-13 227:
262ab836d0 2023-07-19 228: str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,str["所有区域"],str["所有区域"],nil)
45478ef823 2023-07-13 229:
45478ef823 2023-07-13 230: cache_1 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
45478ef823 2023-07-13 231:
45478ef823 2023-07-13 232: for k in aux.Next(cache_1) do --{
993a6dbc45 2023-07-13 233:
45478ef823 2023-07-13 234: cache_1 = fun["是否效果卡"](k)
45478ef823 2023-07-13 235:
45478ef823 2023-07-13 236: if cache_1 then --{
993a6dbc45 2023-07-13 237:
45478ef823 2023-07-13 238: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13 239:
45478ef823 2023-07-13 240: end --}
993a6dbc45 2023-07-13 241:
45478ef823 2023-07-13 242: end --}
993a6dbc45 2023-07-13 243:
cd474d87a3 2023-07-19 244:
45478ef823 2023-07-13 245: str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
cd474d87a3 2023-07-19 246: str["开局说明"] = str["开局说明"] .. str["效果卡数量的后缀"]
cd474d87a3 2023-07-19 247:
45478ef823 2023-07-13 248: str["开局说明"] = str["开局说明"] .. str["规则"]
45478ef823 2023-07-13 249:
45478ef823 2023-07-13 250: if str["不洗牌"] == 0 then --{
993a6dbc45 2023-07-13 251:
45478ef823 2023-07-13 252: --}
993a6dbc45 2023-07-13 253:
45478ef823 2023-07-13 254: else --{
993a6dbc45 2023-07-13 255:
d284579690 2023-07-19 256: str["开局说明"] = str["开局说明"] .. str["不洗牌的说明"]
45478ef823 2023-07-13 257:
45478ef823 2023-07-13 258: end --}
993a6dbc45 2023-07-13 259:
45478ef823 2023-07-13 260: if str["无BP"] == 0 then --{
993a6dbc45 2023-07-13 261:
d284579690 2023-07-19 262: str["开局说明"] = str["开局说明"] .. str["无BP的说明"]
45478ef823 2023-07-13 263:
45478ef823 2023-07-13 264: end --}
993a6dbc45 2023-07-13 265:
45478ef823 2023-07-13 266: if str["开局添加手卡"] then --{
993a6dbc45 2023-07-13 267:
d284579690 2023-07-19 268: str["开局说明"] = str["开局说明"] .. str["选卡的前缀"]
45478ef823 2023-07-13 269: str["开局说明"] = str["开局说明"] .. str["开局添加手卡"]
d284579690 2023-07-19 270: str["开局说明"] = str["开局说明"] .. str["选卡的后缀"]
45478ef823 2023-07-13 271:
45478ef823 2023-07-13 272: end --}
993a6dbc45 2023-07-13 273:
45478ef823 2023-07-13 274: if str["禁格"] then --{
993a6dbc45 2023-07-13 275:
45478ef823 2023-07-13 276: str["开局说明"] = str["开局说明"] .. "禁"
45478ef823 2023-07-13 277: str["开局说明"] = str["开局说明"] .. str["禁格"]
45478ef823 2023-07-13 278: str["开局说明"] = str["开局说明"] .. "格 "
45478ef823 2023-07-13 279:
45478ef823 2023-07-13 280: end --}
993a6dbc45 2023-07-13 281:
45478ef823 2023-07-13 282: if str["印卡"] then --{
993a6dbc45 2023-07-13 283:
45478ef823 2023-07-13 284: str["开局说明"] = str["开局说明"] .. "印卡 "
45478ef823 2023-07-13 285:
45478ef823 2023-07-13 286: end --}
993a6dbc45 2023-07-13 287:
45478ef823 2023-07-13 288: Debug.ShowHint(str["开局说明"])
45478ef823 2023-07-13 289:
45478ef823 2023-07-13 290: end --}
993a6dbc45 2023-07-13 291:
45478ef823 2023-07-13 292: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13 293:
4e8f89ad97 2023-07-11 294: str["开局添加手卡"] = str_1
4e8f89ad97 2023-07-11 295:
8e87626fe9 2023-07-16 296: effect_1 = Effect.GlobalEffect()
8e87626fe9 2023-07-16 297:
e8a4eb1d6e 2023-07-16 298: effect_1:SetType(EFFECT_TYPE_FIELD
e8a4eb1d6e 2023-07-16 299: + EFFECT_TYPE_CONTINUOUS)
b08e3d3ba8 2023-07-16 300:
1539e099d7 2023-07-16 301: effect_1:SetCode(EVENT_ADJUST)
1539e099d7 2023-07-16 302:
88b2475c84 2023-07-16 303: effect_1:SetCondition(aux.TRUE)
8e87626fe9 2023-07-16 304:
8e87626fe9 2023-07-16 305: function cache_1(effect_event
8e87626fe9 2023-07-16 306: , player_who_activate_the_effect) --{
8e87626fe9 2023-07-16 307:
8e87626fe9 2023-07-16 308: str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11 309: , Card.IsAbleToHand
8e87626fe9 2023-07-16 310: , player_who_activate_the_effect
4e8f89ad97 2023-07-11 311: , LOCATION_DECK
4e8f89ad97 2023-07-11 312: , 0
4e8f89ad97 2023-07-11 313: , str_1
4e8f89ad97 2023-07-11 314: , str_1
4e8f89ad97 2023-07-11 315: , nil)
4e8f89ad97 2023-07-11 316:
4e8f89ad97 2023-07-11 317: Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11 318: , nil
4e8f89ad97 2023-07-11 319: , REASON_RULE)
8e87626fe9 2023-07-16 320:
e28a9fe965 2023-07-16 321: effect_event:Reset()
1539e099d7 2023-07-16 322:
8e87626fe9 2023-07-16 323: end --}
8e87626fe9 2023-07-16 324:
8e87626fe9 2023-07-16 325: effect_1:SetOperation(cache_1)
8e87626fe9 2023-07-16 326:
8e87626fe9 2023-07-16 327: Duel.RegisterEffect(effect_1
8e87626fe9 2023-07-16 328: , 0)
17d6844110 2023-07-16 329:
4e8f89ad97 2023-07-11 330: end --}
993a6dbc45 2023-07-13 331:
4e8f89ad97 2023-07-11 332: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13 333:
4e8f89ad97 2023-07-11 334: str["禁格"] = str_1
4e8f89ad97 2023-07-11 335:
4e8f89ad97 2023-07-11 336: effect_1 = Effect.GlobalEffect()
4e8f89ad97 2023-07-11 337:
4e8f89ad97 2023-07-11 338: effect_1:SetCode(EFFECT_USE_EXTRA_MZONE)
4e8f89ad97 2023-07-11 339:
4e8f89ad97 2023-07-11 340: effect_1:SetValue(str_1)
4e8f89ad97 2023-07-11 341:
4e8f89ad97 2023-07-11 342: Duel.RegisterEffect(effect_1,0)
45478ef823 2023-07-13 343:
d5d0e03305 2023-07-11 344: end --}
993a6dbc45 2023-07-13 345:
d5d0e03305 2023-07-11 346: fun["印卡"] = function(str_1, str_2, str_3) --{
993a6dbc45 2023-07-13 347:
d5d0e03305 2023-07-11 348: str["印卡"] = 1
d5d0e03305 2023-07-11 349:
d5d0e03305 2023-07-11 350: if str_3 then --{
993a6dbc45 2023-07-13 351:
d5d0e03305 2023-07-11 352: --}
993a6dbc45 2023-07-13 353:
d5d0e03305 2023-07-11 354: else --{
993a6dbc45 2023-07-13 355:
d5d0e03305 2023-07-11 356: str_3 = str_2
45478ef823 2023-07-13 357:
d5d0e03305 2023-07-11 358: end --}
993a6dbc45 2023-07-13 359:
d5d0e03305 2023-07-11 360: str["当前印卡数"] = 1
d5d0e03305 2023-07-11 361:
d5d0e03305 2023-07-11 362: effect_1 = Effect.CreateEffect(str_1)
d5d0e03305 2023-07-11 363:
d5d0e03305 2023-07-11 364: effect_1:SetType(EFFECT_TYPE_IGNITION)
d5d0e03305 2023-07-11 365:
d5d0e03305 2023-07-11 366: effect_1:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11 367: + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11 368: + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11 369: + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11 370:
d5d0e03305 2023-07-11 371: cache_1 = function() --{
993a6dbc45 2023-07-13 372:
d5d0e03305 2023-07-11 373: Duel.SetChainLimit(aux.FALSE)
d5d0e03305 2023-07-11 374:
d5d0e03305 2023-07-11 375: return true
45478ef823 2023-07-13 376:
d5d0e03305 2023-07-11 377: end --}
993a6dbc45 2023-07-13 378:
d5d0e03305 2023-07-11 379: effect_1:SetTarget(cache_1)
d5d0e03305 2023-07-11 380:
d5d0e03305 2023-07-11 381: effect_1:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11 382:
d5d0e03305 2023-07-11 383: function print_hand(effect_event
d5d0e03305 2023-07-11 384: , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13 385:
d5d0e03305 2023-07-11 386: announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11 387:
d5d0e03305 2023-07-11 388: card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11 389: , announce_card)
d5d0e03305 2023-07-11 390:
d5d0e03305 2023-07-11 391: if str["当前印卡数"] <= str_2 then --{
993a6dbc45 2023-07-13 392:
d5d0e03305 2023-07-11 393: str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11 394:
d5d0e03305 2023-07-11 395: Duel.SendtoHand(card,nil,REASON_RULE)
45478ef823 2023-07-13 396:
d5d0e03305 2023-07-11 397: --}
993a6dbc45 2023-07-13 398:
d5d0e03305 2023-07-11 399: else --{
993a6dbc45 2023-07-13 400:
d5d0e03305 2023-07-11 401: if str["当前印卡数"] <= str_3 then --{
993a6dbc45 2023-07-13 402:
d5d0e03305 2023-07-11 403: str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11 404:
d5d0e03305 2023-07-11 405: Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11 406:
d5d0e03305 2023-07-11 407: Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
45478ef823 2023-07-13 408:
d5d0e03305 2023-07-11 409: --}
993a6dbc45 2023-07-13 410:
d5d0e03305 2023-07-11 411: else --{
993a6dbc45 2023-07-13 412:
d5d0e03305 2023-07-11 413: Debug.ShowHint("印卡过多!")
45478ef823 2023-07-13 414:
a30b9aba5d 2023-07-16 415: effect_event:Reset()
a30b9aba5d 2023-07-16 416:
d5d0e03305 2023-07-11 417: end --}
993a6dbc45 2023-07-13 418:
d5d0e03305 2023-07-11 419: end --}
993a6dbc45 2023-07-13 420:
d5d0e03305 2023-07-11 421: end --}
993a6dbc45 2023-07-13 422:
d5d0e03305 2023-07-11 423: effect_1:SetOperation(print_hand)
d5d0e03305 2023-07-11 424:
d5d0e03305 2023-07-11 425: str_1:RegisterEffect(effect_1)
45478ef823 2023-07-13 426:
d5d0e03305 2023-07-11 427: end --}
993a6dbc45 2023-07-13 428:
d5d0e03305 2023-07-11 429: fun["全部回到卡组"] = function() --{
993a6dbc45 2023-07-13 430:
d16316bada 2023-07-19 431: str["胜利条件表"][0] = str["胜利条件表"][1]
d5d0e03305 2023-07-11 432:
d5d0e03305 2023-07-11 433: effect_1 = Effect.GlobalEffect()
d5d0e03305 2023-07-11 434:
d5d0e03305 2023-07-11 435: effect_1:SetType(EFFECT_TYPE_FIELD
d5d0e03305 2023-07-11 436: + EFFECT_TYPE_CONTINUOUS)
d5d0e03305 2023-07-11 437:
d5d0e03305 2023-07-11 438: effect_1:SetCode(EVENT_ADJUST)
d5d0e03305 2023-07-11 439:
d5d0e03305 2023-07-11 440: cache_1 = function() --{
993a6dbc45 2023-07-13 441:
b6f1e1afe0 2023-07-19 442: cache_1 = Duel.GetFieldGroupCount(1,str["除卡组与额外卡组以外的区域"],0)
45478ef823 2023-07-13 443:
45478ef823 2023-07-13 444: if cache_1 == 0 then --{
993a6dbc45 2023-07-13 445:
45478ef823 2023-07-13 446: return true
45478ef823 2023-07-13 447:
45478ef823 2023-07-13 448: --}
993a6dbc45 2023-07-13 449:
45478ef823 2023-07-13 450: else --{
993a6dbc45 2023-07-13 451:
45478ef823 2023-07-13 452: return false
45478ef823 2023-07-13 453:
45478ef823 2023-07-13 454: end --}
993a6dbc45 2023-07-13 455:
45478ef823 2023-07-13 456: end --}
993a6dbc45 2023-07-13 457:
45478ef823 2023-07-13 458: effect_1:SetCondition(cache_1)
45478ef823 2023-07-13 459:
45478ef823 2023-07-13 460: cache_1 = function() --{
993a6dbc45 2023-07-13 461:
d16316bada 2023-07-19 462: Debug.ShowHint(str["达成胜利条件弹窗"])
45478ef823 2023-07-13 463:
45478ef823 2023-07-13 464: Duel.SetLP(1,0)
45478ef823 2023-07-13 465:
45478ef823 2023-07-13 466: end --}
993a6dbc45 2023-07-13 467:
45478ef823 2023-07-13 468: effect_1:SetOperation(cache_1)
45478ef823 2023-07-13 469:
45478ef823 2023-07-13 470: Duel.RegisterEffect(effect_1,0)
45478ef823 2023-07-13 471:
45478ef823 2023-07-13 472: end --}
993a6dbc45 2023-07-13 473: