6d182363a9 2023-06-30 1: str = {}
75bd4dfc8f 2023-07-11 2:
6d182363a9 2023-06-30 3: fun = {}
d95f494908 2023-06-30 4:
d95f494908 2023-06-30 5: str["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
d95f494908 2023-06-30 6:
6f45c2f05c 2023-07-11 7: Debug.ReloadFieldBegin = function(str_1, str_2) --{
29959a9986 2023-06-30 8: str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
5744929923 2023-07-11 9:
4be88097db 2023-07-05 10: str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
1fb42895ff 2023-07-11 11:
5744929923 2023-07-11 12: if str_2 then --{
5744929923 2023-07-11 13: if str_2 == 3 then --{
5744929923 2023-07-11 14: str["规则"] = "大师3 "
7c21defa68 2023-07-13 15:
45478ef823 2023-07-13 16: --}
45478ef823 2023-07-13 17:
5744929923 2023-07-11 18: elseif str_2 == 4 then --{
5744929923 2023-07-11 19: str["规则"] = "新大师 "
7c21defa68 2023-07-13 20:
45478ef823 2023-07-13 21: --}
45478ef823 2023-07-13 22:
5744929923 2023-07-11 23: elseif str_2 == 5 then --{
5744929923 2023-07-11 24: str["规则"] = "大师2020 "
45478ef823 2023-07-13 25:
8736d64183 2023-07-11 26: --}
45478ef823 2023-07-13 27:
8736d64183 2023-07-11 28: end --}
45478ef823 2023-07-13 29:
8736d64183 2023-07-11 30: else --{
8736d64183 2023-07-11 31: str["规则"] = "大师2020 "
45478ef823 2023-07-13 32:
8736d64183 2023-07-11 33: end --}
45478ef823 2023-07-13 34:
8736d64183 2023-07-11 35: str["Debug.ReloadFieldBegin"](str_1, str_2)
45478ef823 2023-07-13 36:
8736d64183 2023-07-11 37: end --}
45478ef823 2023-07-13 38:
8736d64183 2023-07-11 39: fun["通关邀请"] = function() --{
8736d64183 2023-07-11 40: effect_1 = Effect.GlobalEffect()
8736d64183 2023-07-11 41:
8736d64183 2023-07-11 42: effect_1:SetType(EFFECT_TYPE_FIELD
8736d64183 2023-07-11 43: + EFFECT_TYPE_CONTINUOUS)
8736d64183 2023-07-11 44:
8736d64183 2023-07-11 45: effect_1:SetCode(EVENT_DAMAGE)
1fb42895ff 2023-07-11 46:
588454a9f9 2023-07-11 47: function cache_1() --{
588454a9f9 2023-07-11 48: cache_1 = Duel.GetLP(1)
1fb42895ff 2023-07-11 49:
588454a9f9 2023-07-11 50: if cache_1 <= 0 then --{
588454a9f9 2023-07-11 51: if cache_1 < 0 then --{
588454a9f9 2023-07-11 52: Debug.ShowHint("QB:「你居然二解了,请加群告诉我怎么二解。」")
7c21defa68 2023-07-13 53:
45478ef823 2023-07-13 54: end --}
45478ef823 2023-07-13 55:
588454a9f9 2023-07-11 56: cache_1 = true
45478ef823 2023-07-13 57:
588454a9f9 2023-07-11 58: --}
45478ef823 2023-07-13 59:
588454a9f9 2023-07-11 60: else --{
588454a9f9 2023-07-11 61: cache_1 = false
45478ef823 2023-07-13 62:
588454a9f9 2023-07-11 63: end --}
45478ef823 2023-07-13 64:
588454a9f9 2023-07-11 65: return cache_1
45478ef823 2023-07-13 66:
588454a9f9 2023-07-11 67: end --}
45478ef823 2023-07-13 68:
588454a9f9 2023-07-11 69: effect_1:SetCondition(cache_1)
1fb42895ff 2023-07-11 70:
588454a9f9 2023-07-11 71: function cache_1() --{
588454a9f9 2023-07-11 72: Debug.ShowHint("残局群181175613")
45478ef823 2023-07-13 73:
588454a9f9 2023-07-11 74: end --}
45478ef823 2023-07-13 75:
588454a9f9 2023-07-11 76: effect_1:SetOperation(cache_1)
588454a9f9 2023-07-11 77:
588454a9f9 2023-07-11 78: Duel.RegisterEffect(effect_1
588454a9f9 2023-07-11 79: , 0)
45478ef823 2023-07-13 80:
588454a9f9 2023-07-11 81: end --}
45478ef823 2023-07-13 82:
588454a9f9 2023-07-11 83: fun["是否效果卡"] = function(card) --{
588454a9f9 2023-07-11 84: cache_1 = Card.IsType(card, TYPE_SPELL)
588454a9f9 2023-07-11 85:
588454a9f9 2023-07-11 86: cache_2 = Card.IsType(card, TYPE_TRAP)
588454a9f9 2023-07-11 87:
588454a9f9 2023-07-11 88: cache_3 = Card.IsType(card, TYPE_EFFECT)
ebd8dd9982 2023-07-11 89:
588454a9f9 2023-07-11 90: if cache_1
588454a9f9 2023-07-11 91: or cache_2
588454a9f9 2023-07-11 92: or cache_3 then --{
588454a9f9 2023-07-11 93: return true
45478ef823 2023-07-13 94:
588454a9f9 2023-07-11 95: end --}
45478ef823 2023-07-13 96:
588454a9f9 2023-07-11 97: cache_1 = Card.IsType(card, TYPE_PENDULUM)
ebd8dd9982 2023-07-11 98:
588454a9f9 2023-07-11 99: if cache_1 then --{
588454a9f9 2023-07-11 100: cache_1 = Card.IsCode(card, 28363749)
588454a9f9 2023-07-11 101:
588454a9f9 2023-07-11 102: cache_2 = Card.IsCode(card, 19474136)
588454a9f9 2023-07-11 103:
588454a9f9 2023-07-11 104: cache_3 = Card.IsCode(card, 17390179)
588454a9f9 2023-07-11 105:
588454a9f9 2023-07-11 106: cache_4 = Card.IsCode(card, 83980492)
ebd8dd9982 2023-07-11 107:
588454a9f9 2023-07-11 108: if cache_1
588454a9f9 2023-07-11 109: or cache_2
588454a9f9 2023-07-11 110: or cache_3
588454a9f9 2023-07-11 111: or cache_4 then --{
588454a9f9 2023-07-11 112: --}
45478ef823 2023-07-13 113:
1fb42895ff 2023-07-11 114: else --{
1fb42895ff 2023-07-11 115: return true
45478ef823 2023-07-13 116:
1fb42895ff 2023-07-11 117: end --}
45478ef823 2023-07-13 118:
1fb42895ff 2023-07-11 119: end --}
45478ef823 2023-07-13 120:
1fb42895ff 2023-07-11 121: return false
45478ef823 2023-07-13 122:
1fb42895ff 2023-07-11 123: end --}
45478ef823 2023-07-13 124:
1fb42895ff 2023-07-11 125: fun["开局说明"] = function() --{
1fb42895ff 2023-07-11 126: if str["开局说明吗"] == 1 then --{
1fb42895ff 2023-07-11 127: return
45478ef823 2023-07-13 128:
1fb42895ff 2023-07-11 129: --}
45478ef823 2023-07-13 130:
1fb42895ff 2023-07-11 131: else --{
1fb42895ff 2023-07-11 132: str["开局说明吗"] = 1
45478ef823 2023-07-13 133:
1fb42895ff 2023-07-11 134: end --}
45478ef823 2023-07-13 135:
1fb42895ff 2023-07-11 136: cache_1 = 0
1fb42895ff 2023-07-11 137: cache_1 = cache_1 + LOCATION_DECK
1fb42895ff 2023-07-11 138: cache_1 = cache_1 + LOCATION_HAND
1fb42895ff 2023-07-11 139: cache_1 = cache_1 + LOCATION_MZONE
1fb42895ff 2023-07-11 140: cache_1 = cache_1 + LOCATION_SZONE
1fb42895ff 2023-07-11 141: cache_1 = cache_1 + LOCATION_GRAVE
1fb42895ff 2023-07-11 142: cache_1 = cache_1 + LOCATION_REMOVED
1fb42895ff 2023-07-11 143: cache_1 = cache_1 + LOCATION_EXTRA
1fb42895ff 2023-07-11 144:
1fb42895ff 2023-07-11 145: str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,cache_1,cache_1,nil)
1fb42895ff 2023-07-11 146:
1fb42895ff 2023-07-11 147: cache_1 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
1fb42895ff 2023-07-11 148:
1fb42895ff 2023-07-11 149: for k in aux.Next(cache_1) do --{
1fb42895ff 2023-07-11 150: cache_1 = fun["是否效果卡"](k)
ebd8dd9982 2023-07-11 151:
1fb42895ff 2023-07-11 152: if cache_1 then --{
1fb42895ff 2023-07-11 153: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13 154:
1fb42895ff 2023-07-11 155: end --}
45478ef823 2023-07-13 156:
1fb42895ff 2023-07-11 157: end --}
45478ef823 2023-07-13 158:
1fb42895ff 2023-07-11 159: str["开局说明"] =""
1fb42895ff 2023-07-11 160: str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
1fb42895ff 2023-07-11 161: str["开局说明"] = str["开局说明"] .. "卡 "
1fb42895ff 2023-07-11 162: str["开局说明"] = str["开局说明"] .. str["规则"]
ebd8dd9982 2023-07-11 163:
1fb42895ff 2023-07-11 164: if str["不洗牌"] == 0 then --{
1fb42895ff 2023-07-11 165: --}
45478ef823 2023-07-13 166:
1fb42895ff 2023-07-11 167: else --{
1fb42895ff 2023-07-11 168: str["开局说明"] = str["开局说明"] .. "伪洗牌 "
45478ef823 2023-07-13 169:
1fb42895ff 2023-07-11 170: end --}
45478ef823 2023-07-13 171:
1fb42895ff 2023-07-11 172: if str["无BP"] == 0 then --{
1fb42895ff 2023-07-11 173: str["开局说明"] = str["开局说明"] .. "无BP "
45478ef823 2023-07-13 174:
1fb42895ff 2023-07-11 175: end --}
45478ef823 2023-07-13 176:
1fb42895ff 2023-07-11 177: if str["开局添加手卡"] then --{
1fb42895ff 2023-07-11 178: str["开局说明"] = str["开局说明"] .. "选"
1fb42895ff 2023-07-11 179: str["开局说明"] = str["开局说明"] .. str["开局添加手卡"]
1fb42895ff 2023-07-11 180: str["开局说明"] = str["开局说明"] .. "卡 "
45478ef823 2023-07-13 181:
1fb42895ff 2023-07-11 182: end --}
45478ef823 2023-07-13 183:
1fb42895ff 2023-07-11 184: if str["禁格"] then --{
1fb42895ff 2023-07-11 185: str["开局说明"] = str["开局说明"] .. "禁"
1fb42895ff 2023-07-11 186: str["开局说明"] = str["开局说明"] .. str["禁格"]
1fb42895ff 2023-07-11 187: str["开局说明"] = str["开局说明"] .. "格 "
45478ef823 2023-07-13 188:
1fb42895ff 2023-07-11 189: end --}
45478ef823 2023-07-13 190:
1fb42895ff 2023-07-11 191: if str["印卡"] then --{
1fb42895ff 2023-07-11 192: str["开局说明"] = str["开局说明"] .. "印卡 "
7c21defa68 2023-07-13 193:
45478ef823 2023-07-13 194: end --}
45478ef823 2023-07-13 195:
ebd8dd9982 2023-07-11 196: Debug.ShowHint(str["开局说明"])
ebd8dd9982 2023-07-11 197:
ebd8dd9982 2023-07-11 198: fun["通关邀请"]()
45478ef823 2023-07-13 199:
4e8f89ad97 2023-07-11 200: end --}
45478ef823 2023-07-13 201:
4e8f89ad97 2023-07-11 202: fun["开局添加手卡"] = function(str_1) --{
4e8f89ad97 2023-07-11 203: str["开局添加手卡"] = str_1
4e8f89ad97 2023-07-11 204:
4e8f89ad97 2023-07-11 205: effect_1 = Effect.GlobalEffect()
4e8f89ad97 2023-07-11 206:
4e8f89ad97 2023-07-11 207: effect_1:SetType(EFFECT_TYPE_FIELD
4e8f89ad97 2023-07-11 208: + EFFECT_TYPE_CONTINUOUS)
4e8f89ad97 2023-07-11 209:
4e8f89ad97 2023-07-11 210: effect_1:SetCode(EVENT_ADJUST)
4e8f89ad97 2023-07-11 211:
4e8f89ad97 2023-07-11 212: effect_1:SetCountLimit(1)
4e8f89ad97 2023-07-11 213:
4e8f89ad97 2023-07-11 214: function cache_1() --{
4e8f89ad97 2023-07-11 215: if str["已添加手卡"] == 1 then --{
4e8f89ad97 2023-07-11 216: return false
45478ef823 2023-07-13 217:
4e8f89ad97 2023-07-11 218: --}
45478ef823 2023-07-13 219:
4e8f89ad97 2023-07-11 220: else --{
4e8f89ad97 2023-07-11 221: str["已添加手卡"] = 1
4e8f89ad97 2023-07-11 222:
4e8f89ad97 2023-07-11 223: return true
45478ef823 2023-07-13 224:
4e8f89ad97 2023-07-11 225: end --}
45478ef823 2023-07-13 226:
4e8f89ad97 2023-07-11 227: end--}
45478ef823 2023-07-13 228:
4e8f89ad97 2023-07-11 229: effect_1:SetCondition(cache_1)
4e8f89ad97 2023-07-11 230:
4e8f89ad97 2023-07-11 231: function cache_1(effect_event
4e8f89ad97 2023-07-11 232: , player_who_activate_the_effect) --{
4e8f89ad97 2023-07-11 233: str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11 234: , Card.IsAbleToHand
4e8f89ad97 2023-07-11 235: , player_who_activate_the_effect
4e8f89ad97 2023-07-11 236: , LOCATION_DECK
4e8f89ad97 2023-07-11 237: , 0
4e8f89ad97 2023-07-11 238: , str_1
4e8f89ad97 2023-07-11 239: , str_1
4e8f89ad97 2023-07-11 240: , nil)
4e8f89ad97 2023-07-11 241:
4e8f89ad97 2023-07-11 242: Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11 243: , nil
4e8f89ad97 2023-07-11 244: , REASON_RULE)
45478ef823 2023-07-13 245:
4e8f89ad97 2023-07-11 246: end --}
45478ef823 2023-07-13 247:
4e8f89ad97 2023-07-11 248: effect_1:SetOperation(cache_1)
4e8f89ad97 2023-07-11 249:
4e8f89ad97 2023-07-11 250: Duel.RegisterEffect(effect_1
4e8f89ad97 2023-07-11 251: , 0)
4e8f89ad97 2023-07-11 252:
4e8f89ad97 2023-07-11 253: fun["开局说明"]()
45478ef823 2023-07-13 254:
4e8f89ad97 2023-07-11 255: end --}
45478ef823 2023-07-13 256:
4e8f89ad97 2023-07-11 257: fun["禁格"] = function(str_1) --{
4e8f89ad97 2023-07-11 258: str["禁格"] = str_1
4e8f89ad97 2023-07-11 259:
4e8f89ad97 2023-07-11 260: effect_1 = Effect.GlobalEffect()
4e8f89ad97 2023-07-11 261:
4e8f89ad97 2023-07-11 262: effect_1:SetType(EFFECT_TYPE_FIELD)
4e8f89ad97 2023-07-11 263:
4e8f89ad97 2023-07-11 264: effect_1:SetCode(EFFECT_USE_EXTRA_MZONE)
4e8f89ad97 2023-07-11 265:
4e8f89ad97 2023-07-11 266: effect_1:SetValue(str_1)
4e8f89ad97 2023-07-11 267:
4e8f89ad97 2023-07-11 268: Duel.RegisterEffect(effect_1,0)
45478ef823 2023-07-13 269:
d5d0e03305 2023-07-11 270: end --}
45478ef823 2023-07-13 271:
d5d0e03305 2023-07-11 272: fun["印卡"] = function(str_1, str_2, str_3) --{
d5d0e03305 2023-07-11 273: str["印卡"] = 1
d5d0e03305 2023-07-11 274:
d5d0e03305 2023-07-11 275: if str_3 then --{
d5d0e03305 2023-07-11 276: --}
45478ef823 2023-07-13 277:
d5d0e03305 2023-07-11 278: else --{
d5d0e03305 2023-07-11 279: str_3 = str_2
45478ef823 2023-07-13 280:
d5d0e03305 2023-07-11 281: end --}
45478ef823 2023-07-13 282:
d5d0e03305 2023-07-11 283: str["当前印卡数"] = 1
d5d0e03305 2023-07-11 284:
d5d0e03305 2023-07-11 285: effect_1 = Effect.CreateEffect(str_1)
d5d0e03305 2023-07-11 286:
d5d0e03305 2023-07-11 287: effect_1:SetType(EFFECT_TYPE_IGNITION)
d5d0e03305 2023-07-11 288:
d5d0e03305 2023-07-11 289: effect_1:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11 290: + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11 291: + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11 292: + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11 293:
d5d0e03305 2023-07-11 294: cache_1 = function() --{
d5d0e03305 2023-07-11 295: Duel.SetChainLimit(aux.FALSE)
d5d0e03305 2023-07-11 296:
d5d0e03305 2023-07-11 297: return true
45478ef823 2023-07-13 298:
d5d0e03305 2023-07-11 299: end --}
45478ef823 2023-07-13 300:
d5d0e03305 2023-07-11 301: effect_1:SetTarget(cache_1)
d5d0e03305 2023-07-11 302:
d5d0e03305 2023-07-11 303: effect_1:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11 304:
d5d0e03305 2023-07-11 305: function print_hand(effect_event
d5d0e03305 2023-07-11 306: , player_who_activate_the_effect) --{
d5d0e03305 2023-07-11 307: announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11 308:
d5d0e03305 2023-07-11 309: card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11 310: , announce_card)
d5d0e03305 2023-07-11 311:
d5d0e03305 2023-07-11 312: if str["当前印卡数"] <= str_2 then --{
d5d0e03305 2023-07-11 313: str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11 314:
d5d0e03305 2023-07-11 315: Duel.SendtoHand(card,nil,REASON_RULE)
7c21defa68 2023-07-13 316:
45478ef823 2023-07-13 317: --}
45478ef823 2023-07-13 318:
d5d0e03305 2023-07-11 319: else --{
d5d0e03305 2023-07-11 320: if str["当前印卡数"] <= str_3 then --{
d5d0e03305 2023-07-11 321: str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11 322:
d5d0e03305 2023-07-11 323: Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11 324:
d5d0e03305 2023-07-11 325: Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
7c21defa68 2023-07-13 326:
45478ef823 2023-07-13 327: --}
45478ef823 2023-07-13 328:
d5d0e03305 2023-07-11 329: else --{
d5d0e03305 2023-07-11 330: Debug.ShowHint("印卡过多!")
7c21defa68 2023-07-13 331:
45478ef823 2023-07-13 332: end --}
7c21defa68 2023-07-13 333:
45478ef823 2023-07-13 334: end --}
45478ef823 2023-07-13 335:
d5d0e03305 2023-07-11 336: end --}
45478ef823 2023-07-13 337:
d5d0e03305 2023-07-11 338: effect_1:SetOperation(print_hand)
d5d0e03305 2023-07-11 339:
d5d0e03305 2023-07-11 340: str_1:RegisterEffect(effect_1)
45478ef823 2023-07-13 341:
ebd8dd9982 2023-07-11 342: end --}
45478ef823 2023-07-13 343:
d5d0e03305 2023-07-11 344: fun["全部回到卡组"] = function() --{
d5d0e03305 2023-07-11 345: Debug.ShowHint("胜利条件:让对方的卡回到卡组。")
d5d0e03305 2023-07-11 346:
d5d0e03305 2023-07-11 347: effect_1 = Effect.GlobalEffect()
d5d0e03305 2023-07-11 348:
d5d0e03305 2023-07-11 349: effect_1:SetType(EFFECT_TYPE_FIELD
d5d0e03305 2023-07-11 350: + EFFECT_TYPE_CONTINUOUS)
d5d0e03305 2023-07-11 351:
d5d0e03305 2023-07-11 352: effect_1:SetCode(EVENT_ADJUST)
d5d0e03305 2023-07-11 353:
d5d0e03305 2023-07-11 354: cache_1 = function() --{
d5d0e03305 2023-07-11 355: cache_1 = 0
d5d0e03305 2023-07-11 356: cache_1 = cache_1 + LOCATION_HAND
d5d0e03305 2023-07-11 357: cache_1 = cache_1 + LOCATION_MZONE
d5d0e03305 2023-07-11 358: cache_1 = cache_1 + LOCATION_SZONE
d5d0e03305 2023-07-11 359: cache_1 = cache_1 + LOCATION_GRAVE
d5d0e03305 2023-07-11 360: cache_1 = cache_1 + LOCATION_REMOVED
d5d0e03305 2023-07-11 361:
d5d0e03305 2023-07-11 362: cache_1 = Duel.GetFieldGroupCount(1,cache_1,0)
d5d0e03305 2023-07-11 363:
d5d0e03305 2023-07-11 364: if cache_1 == 0 then --{
d5d0e03305 2023-07-11 365: return true
7c21defa68 2023-07-13 366:
45478ef823 2023-07-13 367: --}
45478ef823 2023-07-13 368:
d5d0e03305 2023-07-11 369: else --{
d5d0e03305 2023-07-11 370: return false
7c21defa68 2023-07-13 371:
45478ef823 2023-07-13 372: end --}
45478ef823 2023-07-13 373:
d5d0e03305 2023-07-11 374: end --}
d5d0e03305 2023-07-11 375:
d5d0e03305 2023-07-11 376: effect_1:SetCondition(cache_1)
d5d0e03305 2023-07-11 377:
d5d0e03305 2023-07-11 378: cache_1 = function() --{
d5d0e03305 2023-07-11 379: Debug.ShowHint("目标已达成!")
45478ef823 2023-07-13 380:
d5d0e03305 2023-07-11 381: Duel.SetLP(1,0)
45478ef823 2023-07-13 382:
d5d0e03305 2023-07-11 383: end --}
d5d0e03305 2023-07-11 384:
d5d0e03305 2023-07-11 385: effect_1:SetOperation(cache_1)
d5d0e03305 2023-07-11 386:
d5d0e03305 2023-07-11 387: Duel.RegisterEffect(effect_1,0)
45478ef823 2023-07-13 388:
d5d0e03305 2023-07-11 389: end --}
45478ef823 2023-07-13 390:
1fb42895ff 2023-07-11 391: