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