6d182363a9 2023-06-30 1: str = {}
6d182363a9 2023-06-30 2: fun = {}
d95f494908 2023-06-30 3:
d95f494908 2023-06-30 4: str["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
d95f494908 2023-06-30 5:
6f45c2f05c 2023-07-11 6: Debug.ReloadFieldBegin = function(str_1, str_2) --{
6f45c2f05c 2023-07-11 7: str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
5744929923 2023-07-11 8:
6f45c2f05c 2023-07-11 9: str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
5744929923 2023-07-11 10:
5744929923 2023-07-11 11: if str_2 then --{
5744929923 2023-07-11 12: if str_2 == 3 then --{
5744929923 2023-07-11 13: str["规则"] = "大师3 "
8736d64183 2023-07-11 14:
5744929923 2023-07-11 15: --}
5744929923 2023-07-11 16: elseif str_2 == 4 then --{
5744929923 2023-07-11 17: str["规则"] = "新大师 "
8736d64183 2023-07-11 18:
5744929923 2023-07-11 19: --}
5744929923 2023-07-11 20: elseif str_2 == 5 then --{
5744929923 2023-07-11 21: str["规则"] = "大师2020 "
8736d64183 2023-07-11 22:
8736d64183 2023-07-11 23: --}
8736d64183 2023-07-11 24: end --}
8736d64183 2023-07-11 25: else --{
8736d64183 2023-07-11 26: str["规则"] = "大师2020 "
8736d64183 2023-07-11 27:
8736d64183 2023-07-11 28: end --}
8736d64183 2023-07-11 29: str["Debug.ReloadFieldBegin"](str_1, str_2)
8736d64183 2023-07-11 30:
8736d64183 2023-07-11 31: end --}
8736d64183 2023-07-11 32:
8736d64183 2023-07-11 33: fun["通关邀请"] = function() --{
8736d64183 2023-07-11 34: effect_1 = Effect.GlobalEffect()
8736d64183 2023-07-11 35:
8736d64183 2023-07-11 36: effect_1:SetType(EFFECT_TYPE_FIELD
8736d64183 2023-07-11 37: + EFFECT_TYPE_CONTINUOUS)
8736d64183 2023-07-11 38:
8736d64183 2023-07-11 39: effect_1:SetCode(EVENT_DAMAGE)
8736d64183 2023-07-11 40:
8736d64183 2023-07-11 41: function cache_1() --{
8736d64183 2023-07-11 42: cache_1 = Duel.GetLP(1)
8736d64183 2023-07-11 43:
8736d64183 2023-07-11 44: if cache_1 <= 0 then --{
8736d64183 2023-07-11 45: if cache_1 < 0 then --{
8736d64183 2023-07-11 46: Debug.ShowHint("QB:「你居然二解了,请加群告诉我怎么二解。」")
8736d64183 2023-07-11 47:
8736d64183 2023-07-11 48: end --}
8736d64183 2023-07-11 49: cache_1 = true
8736d64183 2023-07-11 50:
8736d64183 2023-07-11 51: --}
8736d64183 2023-07-11 52: else --{
8736d64183 2023-07-11 53: cache_1 = false
8736d64183 2023-07-11 54:
8736d64183 2023-07-11 55: end --}
8736d64183 2023-07-11 56: return cache_1
8736d64183 2023-07-11 57:
8736d64183 2023-07-11 58: end --}
8736d64183 2023-07-11 59: effect_1:SetCondition(cache_1)
8736d64183 2023-07-11 60:
8736d64183 2023-07-11 61: function cache_1() --{
8736d64183 2023-07-11 62: Debug.ShowHint("残局群181175613")
8736d64183 2023-07-11 63:
8736d64183 2023-07-11 64: return
8736d64183 2023-07-11 65: end --}
8736d64183 2023-07-11 66: effect_1:SetOperation(cache_1)
8736d64183 2023-07-11 67:
8736d64183 2023-07-11 68: Duel.RegisterEffect(effect_1
8736d64183 2023-07-11 69: , 0)
8736d64183 2023-07-11 70:
8736d64183 2023-07-11 71: end --}
6f45c2f05c 2023-07-11 72:
6f45c2f05c 2023-07-11 73: fun["是否效果卡"] = function(card)
6f45c2f05c 2023-07-11 74: cache_1 = Card.IsType(card, TYPE_SPELL)
6f45c2f05c 2023-07-11 75: cache_2 = Card.IsType(card, TYPE_TRAP)
6f45c2f05c 2023-07-11 76: cache_3 = Card.IsType(card, TYPE_EFFECT)
6f45c2f05c 2023-07-11 77: if cache_1
6f45c2f05c 2023-07-11 78: or cache_2
6f45c2f05c 2023-07-11 79: or cache_3 then
6f45c2f05c 2023-07-11 80: return true
6f45c2f05c 2023-07-11 81: end
6f45c2f05c 2023-07-11 82: cache_1 = Card.IsType(card, TYPE_PENDULUM)
6f45c2f05c 2023-07-11 83: if cache_1 then
6f45c2f05c 2023-07-11 84: cache_1 = Card.IsCode(card, 28363749)
6f45c2f05c 2023-07-11 85: cache_2 = Card.IsCode(card, 19474136)
6f45c2f05c 2023-07-11 86: cache_3 = Card.IsCode(card, 17390179)
6f45c2f05c 2023-07-11 87: cache_4 = Card.IsCode(card, 83980492)
6f45c2f05c 2023-07-11 88: if cache_1
6f45c2f05c 2023-07-11 89: or cache_2
6f45c2f05c 2023-07-11 90: or cache_3
6f45c2f05c 2023-07-11 91: or cache_4 then
6f45c2f05c 2023-07-11 92: else
6f45c2f05c 2023-07-11 93: return true
6f45c2f05c 2023-07-11 94: end
6f45c2f05c 2023-07-11 95: end
6f45c2f05c 2023-07-11 96: return false
6f45c2f05c 2023-07-11 97: end
6f45c2f05c 2023-07-11 98:
6f45c2f05c 2023-07-11 99: fun["开局说明"] = function()
6f45c2f05c 2023-07-11 100: if str["开局说明吗"] == 1 then
6f45c2f05c 2023-07-11 101: return
6f45c2f05c 2023-07-11 102: else
6f45c2f05c 2023-07-11 103: str["开局说明吗"] = 1
6f45c2f05c 2023-07-11 104: end
6f45c2f05c 2023-07-11 105: cache_1 = 0
6f45c2f05c 2023-07-11 106: cache_1 = cache_1 + LOCATION_DECK
6f45c2f05c 2023-07-11 107: cache_1 = cache_1 + LOCATION_HAND
6f45c2f05c 2023-07-11 108: cache_1 = cache_1 + LOCATION_MZONE
6f45c2f05c 2023-07-11 109: cache_1 = cache_1 + LOCATION_SZONE
6f45c2f05c 2023-07-11 110: cache_1 = cache_1 + LOCATION_GRAVE
6f45c2f05c 2023-07-11 111: cache_1 = cache_1 + LOCATION_REMOVED
6f45c2f05c 2023-07-11 112: cache_1 = cache_1 + LOCATION_EXTRA
6f45c2f05c 2023-07-11 113: str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,cache_1,cache_1,nil)
6f45c2f05c 2023-07-11 114: cache_1 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
6f45c2f05c 2023-07-11 115: for k in aux.Next(cache_1) do
6f45c2f05c 2023-07-11 116: cache_1 = fun["是否效果卡"](k)
6f45c2f05c 2023-07-11 117: if cache_1 then
6f45c2f05c 2023-07-11 118: str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
6f45c2f05c 2023-07-11 119: end
6f45c2f05c 2023-07-11 120: end
6f45c2f05c 2023-07-11 121: str["开局说明"] =""
6f45c2f05c 2023-07-11 122: str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
6f45c2f05c 2023-07-11 123: str["开局说明"] = str["开局说明"] .. "卡 "
6f45c2f05c 2023-07-11 124: str["开局说明"] = str["开局说明"] .. str["规则"]
6f45c2f05c 2023-07-11 125: if str["不洗牌"] == 0 then
6f45c2f05c 2023-07-11 126: else
6f45c2f05c 2023-07-11 127: str["开局说明"] = str["开局说明"] .. "伪洗牌 "
6f45c2f05c 2023-07-11 128: end
6f45c2f05c 2023-07-11 129: if str["无BP"] == 0 then
6f45c2f05c 2023-07-11 130: str["开局说明"] = str["开局说明"] .. "无BP "
6f45c2f05c 2023-07-11 131: end
6f45c2f05c 2023-07-11 132: if str["开局添加手卡"] then
6f45c2f05c 2023-07-11 133: str["开局说明"] = str["开局说明"] .. "选"
6f45c2f05c 2023-07-11 134: str["开局说明"] = str["开局说明"] .. str["开局添加手卡"]
6f45c2f05c 2023-07-11 135: str["开局说明"] = str["开局说明"] .. "卡 "
6f45c2f05c 2023-07-11 136: end
6f45c2f05c 2023-07-11 137: if str["禁格"] then
6f45c2f05c 2023-07-11 138: str["开局说明"] = str["开局说明"] .. "禁"
6f45c2f05c 2023-07-11 139: str["开局说明"] = str["开局说明"] .. str["禁格"]
6f45c2f05c 2023-07-11 140: str["开局说明"] = str["开局说明"] .. "格 "
6f45c2f05c 2023-07-11 141: end
6f45c2f05c 2023-07-11 142: if str["印卡"] then
6f45c2f05c 2023-07-11 143: str["开局说明"] = str["开局说明"] .. "印卡 "
6f45c2f05c 2023-07-11 144: end
6f45c2f05c 2023-07-11 145: Debug.ShowHint(str["开局说明"])
6f45c2f05c 2023-07-11 146: fun["通关邀请"]()
6f45c2f05c 2023-07-11 147: end
6f45c2f05c 2023-07-11 148:
6f45c2f05c 2023-07-11 149: fun["开局添加手卡"] = function(str_1)
6f45c2f05c 2023-07-11 150: str["开局添加手卡"] = str_1
6f45c2f05c 2023-07-11 151: effect_1 = Effect.GlobalEffect()
6f45c2f05c 2023-07-11 152: effect_1:SetType(EFFECT_TYPE_FIELD
6f45c2f05c 2023-07-11 153: + EFFECT_TYPE_CONTINUOUS)
6f45c2f05c 2023-07-11 154: effect_1:SetCode(EVENT_ADJUST)
6f45c2f05c 2023-07-11 155: effect_1:SetCountLimit(1)
6f45c2f05c 2023-07-11 156: function cache_1()
6f45c2f05c 2023-07-11 157: if str["已添加手卡"] == 1 then
6f45c2f05c 2023-07-11 158: return false
6f45c2f05c 2023-07-11 159: else
6f45c2f05c 2023-07-11 160: str["已添加手卡"] = 1
6f45c2f05c 2023-07-11 161: return true
6f45c2f05c 2023-07-11 162: end
6f45c2f05c 2023-07-11 163: end
6f45c2f05c 2023-07-11 164: effect_1:SetCondition(cache_1)
6f45c2f05c 2023-07-11 165: function cache_1(effect_event
6f45c2f05c 2023-07-11 166: , player_who_activate_the_effect)
6f45c2f05c 2023-07-11 167: str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
6f45c2f05c 2023-07-11 168: , Card.IsAbleToHand
6f45c2f05c 2023-07-11 169: , player_who_activate_the_effect
6f45c2f05c 2023-07-11 170: , LOCATION_DECK
6f45c2f05c 2023-07-11 171: , 0
6f45c2f05c 2023-07-11 172: , str_1
6f45c2f05c 2023-07-11 173: , str_1
6f45c2f05c 2023-07-11 174: , nil)
6f45c2f05c 2023-07-11 175: Duel.SendtoHand(str["玩家选定的卡"]
6f45c2f05c 2023-07-11 176: , nil
6f45c2f05c 2023-07-11 177: , REASON_RULE)
6f45c2f05c 2023-07-11 178: end
6f45c2f05c 2023-07-11 179: effect_1:SetOperation(cache_1)
6f45c2f05c 2023-07-11 180: Duel.RegisterEffect(effect_1
6f45c2f05c 2023-07-11 181: , 0)
6f45c2f05c 2023-07-11 182: fun["开局说明"]()
6f45c2f05c 2023-07-11 183: end
6f45c2f05c 2023-07-11 184:
6f45c2f05c 2023-07-11 185: fun["禁格"] = function(str_1)
6f45c2f05c 2023-07-11 186: str["禁格"] = str_1
6f45c2f05c 2023-07-11 187: effect_1 = Effect.GlobalEffect()
6f45c2f05c 2023-07-11 188: effect_1:SetType(EFFECT_TYPE_FIELD)
6f45c2f05c 2023-07-11 189: effect_1:SetCode(EFFECT_USE_EXTRA_MZONE)
6f45c2f05c 2023-07-11 190: effect_1:SetValue(str_1)
6f45c2f05c 2023-07-11 191: Duel.RegisterEffect(effect_1,0)
6f45c2f05c 2023-07-11 192: end
6f45c2f05c 2023-07-11 193:
6f45c2f05c 2023-07-11 194: fun["印卡"] = function(str_1, str_2, str_3)
6f45c2f05c 2023-07-11 195: str["印卡"] = 1
6f45c2f05c 2023-07-11 196: if str_3 then
6f45c2f05c 2023-07-11 197: else
6f45c2f05c 2023-07-11 198: str_3 = str_2
6f45c2f05c 2023-07-11 199: end
6f45c2f05c 2023-07-11 200: str["当前印卡数"] = 1
6f45c2f05c 2023-07-11 201: effect_1 = Effect.CreateEffect(str_1)
6f45c2f05c 2023-07-11 202: effect_1:SetType(EFFECT_TYPE_IGNITION)
6f45c2f05c 2023-07-11 203: effect_1:SetProperty(EFFECT_FLAG_BOTH_SIDE
6f45c2f05c 2023-07-11 204: + EFFECT_FLAG_UNCOPYABLE
6f45c2f05c 2023-07-11 205: + EFFECT_FLAG_CANNOT_NEGATE
6f45c2f05c 2023-07-11 206: + EFFECT_FLAG_CANNOT_DISABLE)
6f45c2f05c 2023-07-11 207: cache_1 = function()
6f45c2f05c 2023-07-11 208: Duel.SetChainLimit(aux.FALSE)
6f45c2f05c 2023-07-11 209: return true
6f45c2f05c 2023-07-11 210: end
6f45c2f05c 2023-07-11 211: effect_1:SetTarget(cache_1)
6f45c2f05c 2023-07-11 212: effect_1:SetRange(LOCATION_EXTRA)
6f45c2f05c 2023-07-11 213: function print_hand(effect_event
6f45c2f05c 2023-07-11 214: , player_who_activate_the_effect)
6f45c2f05c 2023-07-11 215: announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
6f45c2f05c 2023-07-11 216: card = Duel.CreateToken(player_who_activate_the_effect
6f45c2f05c 2023-07-11 217: , announce_card)
6f45c2f05c 2023-07-11 218: if str["当前印卡数"] <= str_2 then
6f45c2f05c 2023-07-11 219: str["当前印卡数"] = str["当前印卡数"] + 1
6f45c2f05c 2023-07-11 220: Duel.SendtoHand(card,nil,REASON_RULE)
6f45c2f05c 2023-07-11 221: else
6f45c2f05c 2023-07-11 222: if str["当前印卡数"] <= str_3 then
6f45c2f05c 2023-07-11 223: str["当前印卡数"] = str["当前印卡数"] + 1
6f45c2f05c 2023-07-11 224: Duel.Remove(card,POS_FACEUP,REASON_RULE)
6f45c2f05c 2023-07-11 225: Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
6f45c2f05c 2023-07-11 226: else
6f45c2f05c 2023-07-11 227: Debug.ShowHint("印卡过多!")
6f45c2f05c 2023-07-11 228: end
6f45c2f05c 2023-07-11 229: end
6f45c2f05c 2023-07-11 230: end
6f45c2f05c 2023-07-11 231: effect_1:SetOperation(print_hand)
6f45c2f05c 2023-07-11 232: str_1:RegisterEffect(effect_1)
6f45c2f05c 2023-07-11 233: end
6f45c2f05c 2023-07-11 234:
6f45c2f05c 2023-07-11 235: fun["全部回到卡组"] = function()
6f45c2f05c 2023-07-11 236: Debug.ShowHint("胜利条件:让对方的卡回到卡组。")
6f45c2f05c 2023-07-11 237:
6f45c2f05c 2023-07-11 238: effect_1 = Effect.GlobalEffect()
6f45c2f05c 2023-07-11 239:
6f45c2f05c 2023-07-11 240: effect_1:SetType(EFFECT_TYPE_FIELD
6f45c2f05c 2023-07-11 241: + EFFECT_TYPE_CONTINUOUS)
6f45c2f05c 2023-07-11 242:
6f45c2f05c 2023-07-11 243: effect_1:SetCode(EVENT_ADJUST)
6f45c2f05c 2023-07-11 244:
6f45c2f05c 2023-07-11 245: cache_1 = function()
6f45c2f05c 2023-07-11 246: cache_1 = 0
6f45c2f05c 2023-07-11 247: cache_1 = cache_1 + LOCATION_HAND
6f45c2f05c 2023-07-11 248: cache_1 = cache_1 + LOCATION_MZONE
6f45c2f05c 2023-07-11 249: cache_1 = cache_1 + LOCATION_SZONE
6f45c2f05c 2023-07-11 250: cache_1 = cache_1 + LOCATION_GRAVE
6f45c2f05c 2023-07-11 251: cache_1 = cache_1 + LOCATION_REMOVED
6f45c2f05c 2023-07-11 252:
6f45c2f05c 2023-07-11 253: cache_1 = Duel.GetFieldGroupCount(1,cache_1,0)
6f45c2f05c 2023-07-11 254:
6f45c2f05c 2023-07-11 255: if cache_1 == 0 then
6f45c2f05c 2023-07-11 256: return true
6f45c2f05c 2023-07-11 257: else
6f45c2f05c 2023-07-11 258: return false
6f45c2f05c 2023-07-11 259: end
6f45c2f05c 2023-07-11 260: end
6f45c2f05c 2023-07-11 261:
6f45c2f05c 2023-07-11 262: effect_1:SetCondition(cache_1)
6f45c2f05c 2023-07-11 263:
6f45c2f05c 2023-07-11 264: cache_1 = function()
6f45c2f05c 2023-07-11 265: Debug.ShowHint("目标已达成!")
6f45c2f05c 2023-07-11 266: Duel.SetLP(1,0)
6f45c2f05c 2023-07-11 267: end
6f45c2f05c 2023-07-11 268:
6f45c2f05c 2023-07-11 269: effect_1:SetOperation(cache_1)
6f45c2f05c 2023-07-11 270:
6f45c2f05c 2023-07-11 271: Duel.RegisterEffect(effect_1,0)
6f45c2f05c 2023-07-11 272: end
8736d64183 2023-07-11 273:
8736d64183 2023-07-11 274:
8736d64183 2023-07-11 275:
8736d64183 2023-07-11 276:
8736d64183 2023-07-11 277:
8736d64183 2023-07-11 278:
5744929923 2023-07-11 279:
5744929923 2023-07-11 280:
5744929923 2023-07-11 281:
6f45c2f05c 2023-07-11 282: