af6ca14c70 2024-02-13 1: local string = string
af6ca14c70 2024-02-13 2: local table = table
6fdfa2454c 2024-02-14 3: local Debug = Debug
6fdfa2454c 2024-02-14 4: local Effect = Effect
6fdfa2454c 2024-02-14 5: local Duel = Duel
6fdfa2454c 2024-02-14 6: local Card = Card
8388ccc6c5 2024-02-14 7: local s = {}
8388ccc6c5 2024-02-14 8: s["效牌之类排"] = {
8388ccc6c5 2024-02-14 9: TYPE_SPELL
8388ccc6c5 2024-02-14 10: , TYPE_TRAP
8388ccc6c5 2024-02-14 11: , TYPE_EFFECT
8388ccc6c5 2024-02-14 12: }
21cd94e151 2024-02-14 13: s["无效灵摆怪兽之卡编排"] = {
8388ccc6c5 2024-02-14 14: 28363749
8388ccc6c5 2024-02-14 15: , 19474136
8388ccc6c5 2024-02-14 16: , 17390179
8388ccc6c5 2024-02-14 17: , 83980492
ef7b6d6995 2024-02-14 18: }
ef7b6d6995 2024-02-14 19: s["全区"] = LOCATION_HAND + LOCATION_MZONE + LOCATION_SZONE + LOCATION_GRAVE + LOCATION_REMOVED + LOCATION_DECK + LOCATION_EXTRA
1301c8be40 2024-02-13 20: do
1301c8be40 2024-02-13 21: local h1
1301c8be40 2024-02-13 22: --~ 则对
1301c8be40 2024-02-13 23: h1 = {
1301c8be40 2024-02-13 24: [3] = "大师3 "
1301c8be40 2024-02-13 25: , [4] = "新大师 "
1301c8be40 2024-02-13 26: , [5] = "大师2020 "
1301c8be40 2024-02-13 27: }
1301c8be40 2024-02-13 28: s["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin
1301c8be40 2024-02-13 29: --~ 模
1301c8be40 2024-02-13 30: --~ 则数
1301c8be40 2024-02-13 31: function _G.Debug.ReloadFieldBegin(u1, u2)
719cb47a61 2024-02-13 32: s["伪洗牌"] = u1 & DUEL_PSEUDO_SHUFFLE
719cb47a61 2024-02-13 33: s["战段"] = u1 & DUEL_ATTACK_FIRST_TURN
1301c8be40 2024-02-13 34: s["机智"] = u1 & DUEL_SIMPLE_AI
1301c8be40 2024-02-13 35: if u2 then
1301c8be40 2024-02-13 36: s["则"] = h1[u2]
1301c8be40 2024-02-13 37: else
1301c8be40 2024-02-13 38: s["则"] = h1[5]
1301c8be40 2024-02-13 39: end
1301c8be40 2024-02-13 40: s["Debug.ReloadFieldBegin"](u1, u2)
1301c8be40 2024-02-13 41: end
1301c8be40 2024-02-13 42: end
ad8a165722 2024-02-14 43: do
ac819336b2 2024-02-14 44: local h1
14fe398ae9 2024-02-14 45: --~ “调该效果”的效果
ac819336b2 2024-02-14 46: function s["_开局洗牌抽牌"](u1)
ac819336b2 2024-02-14 47: Duel.ShuffleDeck(0)
ac819336b2 2024-02-14 48: --~ 抽卡之数
ac819336b2 2024-02-14 49: Duel.Draw(0, h1, REASON_RULE)
ac819336b2 2024-02-14 50: u1:Reset()
ac819336b2 2024-02-14 51: end
ad8a165722 2024-02-14 52: function s["开局洗牌抽牌"](u1)
ac819336b2 2024-02-14 53: local h2
ad8a165722 2024-02-14 54: s["开局洗牌抽牌之数"] = u1
ad8a165722 2024-02-14 55: --~ 效果
ac819336b2 2024-02-14 56: h2 = Effect.GlobalEffect()
ac819336b2 2024-02-14 57: h2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
ac819336b2 2024-02-14 58: h2:SetCode(EVENT_ADJUST)
ac819336b2 2024-02-14 59: h2:SetCondition(aux.TRUE)
ac819336b2 2024-02-14 60: h1 = u1
ac819336b2 2024-02-14 61: h2:SetOperation(s["_开局洗牌抽牌"])
ac819336b2 2024-02-14 62: Duel.RegisterEffect(h2, 0)
ad8a165722 2024-02-14 63: end
1301c8be40 2024-02-13 64: end
e14f5fd087 2024-02-14 65: function s.["不被连锁"]()
af6ca14c70 2024-02-13 66: Duel.SetChainLimit(aux.FALSE)
af6ca14c70 2024-02-13 67: return true
d3790b56e8 2024-02-13 68: end
951ea1b58f 2024-02-13 69: do
951ea1b58f 2024-02-13 70: local h1, h2
951ea1b58f 2024-02-13 71: --~ 原解邀请
951ea1b58f 2024-02-13 72: h1 = "残局群181175613"
951ea1b58f 2024-02-13 73: --~ 二解邀请,备用:圣魔术师
951ea1b58f 2024-02-13 74: h2 = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
14fe398ae9 2024-02-14 75: --~ 通关之邀
14fe398ae9 2024-02-14 76: function s["_通关之邀"]()
14fe398ae9 2024-02-14 77: local h3
14fe398ae9 2024-02-14 78: --~ 对方之血
14fe398ae9 2024-02-14 79: h3 = Duel.GetLP(1)
14fe398ae9 2024-02-14 80: if h3 <= 0 then
14fe398ae9 2024-02-14 81: if h3 == 0 then
14fe398ae9 2024-02-14 82: Debug.ShowHint(h1)
14fe398ae9 2024-02-14 83: else
14fe398ae9 2024-02-14 84: Debug.ShowHint(h2)
14fe398ae9 2024-02-14 85: end
14fe398ae9 2024-02-14 86: end
14fe398ae9 2024-02-14 87: end
14fe398ae9 2024-02-14 88: function s["通关之邀"]()
14fe398ae9 2024-02-14 89: local h1, h2
14fe398ae9 2024-02-14 90: --~ 效果
14fe398ae9 2024-02-14 91: h1 = Effect.GlobalEffect()
14fe398ae9 2024-02-14 92: h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
14fe398ae9 2024-02-14 93: h1:SetCode(EVENT_DAMAGE)
14fe398ae9 2024-02-14 94: h1:SetCondition(s["_通关之邀"])
14fe398ae9 2024-02-14 95: h1:SetOperation(aux.NULL)
14fe398ae9 2024-02-14 96: Duel.RegisterEffect(h1, 0)
f4490a058a 2024-02-14 97: end
f4490a058a 2024-02-14 98: end
f4490a058a 2024-02-14 99: function s.["是否效牌"](card)
f4490a058a 2024-02-14 100: for i = 1, #s["效牌之类排"] do
f4490a058a 2024-02-14 101: if Card.IsType(card, s["效牌之类排"][i]) then
f4490a058a 2024-02-14 102: return true
f4490a058a 2024-02-14 103: end
f4490a058a 2024-02-14 104: end
f4490a058a 2024-02-14 105: if Card.IsType(card, TYPE_PENDULUM) then
f4490a058a 2024-02-14 106: for i = 1, #s["无效灵摆怪兽之卡编排"] do
f4490a058a 2024-02-14 107: if Card.IsCode(card, s["无效灵摆怪兽之卡编排"][i]) then
f4490a058a 2024-02-14 108: else
f4490a058a 2024-02-14 109: return true
f4490a058a 2024-02-14 110: end
f4490a058a 2024-02-14 111: end
f4490a058a 2024-02-14 112: end
f4490a058a 2024-02-14 113: end
046e84141b 2024-02-14 114: do
046e84141b 2024-02-14 115: --~ “调该效果”的效果
046e84141b 2024-02-14 116: --~ “调该效果”的玩家
d1652d7fa4 2024-02-13 117: function h2(u2, u3)
d1652d7fa4 2024-02-13 118: local h3
d1652d7fa4 2024-02-13 119: --~ 玩家选定的牌
a6c06c688b 2024-02-13 120: h3 = Duel.SelectMatchingCard(u3, Card.IsAbleToHand, u3, LOCATION_DECK, 0, u1, u1, nil)
a6c06c688b 2024-02-13 121: Duel.SendtoHand(h3, nil, REASON_RULE)
a6c06c688b 2024-02-13 122: u2:Reset()
a6c06c688b 2024-02-13 123: end
046e84141b 2024-02-14 124: function s["开局选牌入手"](u1)
046e84141b 2024-02-14 125: local h1, h2
046e84141b 2024-02-14 126: str["开局选牌入手之数"] = u1
046e84141b 2024-02-14 127: --~ 效果
046e84141b 2024-02-14 128: h1 = Effect.GlobalEffect()
046e84141b 2024-02-14 129: h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
046e84141b 2024-02-14 130: h1:SetCode(EVENT_ADJUST)
046e84141b 2024-02-14 131: h1:SetCondition(aux.TRUE)
046e84141b 2024-02-14 132: --~ 调该效果的效果
046e84141b 2024-02-14 133: --~ 调该效果的玩家
046e84141b 2024-02-14 134: function h2(u2, u3)
046e84141b 2024-02-14 135: local h3
046e84141b 2024-02-14 136: --~ 玩家选定的牌
046e84141b 2024-02-14 137: h3 = Duel.SelectMatchingCard(u3, Card.IsAbleToHand, u3, LOCATION_DECK, 0, u1, u1, nil)
046e84141b 2024-02-14 138: Duel.SendtoHand(h3, nil, REASON_RULE)
046e84141b 2024-02-14 139: u2:Reset()
046e84141b 2024-02-14 140: end
046e84141b 2024-02-14 141: h1:SetOperation(h2)
046e84141b 2024-02-14 142: Duel.RegisterEffect(h1, 0)
046e84141b 2024-02-14 143: end
a6c06c688b 2024-02-13 144: end
fbb83a06ea 2024-02-13 145: function s["禁格"](u1)
f7d8ee14bc 2024-02-13 146: local h1
f7d8ee14bc 2024-02-13 147: s["禁格之数"] = u1
af6ca14c70 2024-02-13 148: --~ 效果
af6ca14c70 2024-02-13 149: h1 = Effect.GlobalEffect()
af6ca14c70 2024-02-13 150: h1:SetCode(EFFECT_USE_EXTRA_MZONE)
af6ca14c70 2024-02-13 151: h1:SetValue(u1)
af6ca14c70 2024-02-13 152: Duel.RegisterEffect(h1, 0)
af6ca14c70 2024-02-13 153: end
1301c8be40 2024-02-13 154: do
1301c8be40 2024-02-13 155: s["Debug.ReloadFieldEnd"] = _G.Debug.ReloadFieldEnd
d1652d7fa4 2024-02-13 156: --~ 开局洗牌抽牌之数
1301c8be40 2024-02-13 157: function _G.Debug.ReloadFieldEnd(u1)
1301c8be40 2024-02-13 158: s["Debug.ReloadFieldEnd"]()
1301c8be40 2024-02-13 159: if u1 then
d1652d7fa4 2024-02-13 160: s["开局洗牌抽牌"](u1)
d1652d7fa4 2024-02-13 161: end
d1652d7fa4 2024-02-13 162: end
d1652d7fa4 2024-02-13 163: end
fd436744e5 2024-02-14 164: do
fd436744e5 2024-02-14 165: local h1, h2, h3, h4
fd436744e5 2024-02-14 166: --~ 印牌过多之示
fd436744e5 2024-02-14 167: h1 = "印牌过多"
e14f5fd087 2024-02-14 168: --~ 现之印牌数
e14f5fd087 2024-02-14 169: h2 = 1
fd436744e5 2024-02-14 170: --~ 印手牌之上限
fd436744e5 2024-02-14 171: h3 = 0
fd436744e5 2024-02-14 172: --~ 总印牌之上限
fd436744e5 2024-02-14 173: h4 = 0
fd436744e5 2024-02-14 174: --~ 「调该效果」的效果
fd436744e5 2024-02-14 175: --~ 「调该效果」的玩家
fd436744e5 2024-02-14 176: function s["_印牌"](u1, u2)
fd436744e5 2024-02-14 177: local h5, h6
e14f5fd087 2024-02-14 178: --~ 印卡之卡编
fd436744e5 2024-02-14 179: h5 = Duel.AnnounceCard(u2)
fd436744e5 2024-02-14 180: --~ 卡
fd436744e5 2024-02-14 181: h6 = Duel.CreateToken(u2, h5)
fd436744e5 2024-02-14 182: if h2 <= h3 then
fd436744e5 2024-02-14 183: h2 = h2 + 1
fd436744e5 2024-02-14 184: Duel.SendtoHand(h6, nil, REASON_RULE)
fd436744e5 2024-02-14 185: else
fd436744e5 2024-02-14 186: if h2 <= h4 then
fd436744e5 2024-02-14 187: h2 = h2 + 1
fd436744e5 2024-02-14 188: Duel.Remove(h6, POS_FACEUP, REASON_RULE)
fd436744e5 2024-02-14 189: Duel.SendtoDeck(card, u2, 0, REASON_RULE)
e14f5fd087 2024-02-14 190: else
e14f5fd087 2024-02-14 191: Debug.ShowHint("印牌过多")
fd436744e5 2024-02-14 192: 4:Reset()
fd436744e5 2024-02-14 193: end
fd436744e5 2024-02-14 194: end
fd436744e5 2024-02-14 195: end
fd436744e5 2024-02-14 196: function s.["印牌"](u1, u2, u3)
fd436744e5 2024-02-14 197: local h1, h2, h3
fd436744e5 2024-02-14 198: u3 = u3 or u2
fd436744e5 2024-02-14 199: Debug.ShowHint("点击对方额外牌组可以进行印牌。\n手牌只能印 " .. u2 .. " 张。\n最多可以印 " .. u3 .. " 张")
fd436744e5 2024-02-14 200: h1 = Effect.CreateEffect(u1)
fd436744e5 2024-02-14 201: --~ 现之印牌数
fd436744e5 2024-02-14 202: h2 = 1
fd436744e5 2024-02-14 203: h1:SetType(EFFECT_TYPE_IGNITION)
fd436744e5 2024-02-14 204: h1:SetProperty(EFFECT_FLAG_BOTH_SIDE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_NEGATE + EFFECT_FLAG_CANNOT_DISABLE)
fd436744e5 2024-02-14 205: h1:SetTarget(s["不被连锁"])
fd436744e5 2024-02-14 206: h1:SetRange(LOCATION_EXTRA)
fd436744e5 2024-02-14 207: -- 印牌
fd436744e5 2024-02-14 208: --~ 调该效果的效果
fd436744e5 2024-02-14 209: --~ 调该效果的玩家
fd436744e5 2024-02-14 210: function h3(u4, u5)
fd436744e5 2024-02-14 211: local h4, h5
fd436744e5 2024-02-14 212: --~ 印卡之卡编
fd436744e5 2024-02-14 213: h4 = Duel.AnnounceCard(u5)
fd436744e5 2024-02-14 214: --~ 卡
fd436744e5 2024-02-14 215: h5 = Duel.CreateToken(u5, h4)
fd436744e5 2024-02-14 216: if h2 <= u2 then
fd436744e5 2024-02-14 217: h2 = h2 + 1
fd436744e5 2024-02-14 218: Duel.SendtoHand(h5, nil, REASON_RULE)
fd436744e5 2024-02-14 219: else
fd436744e5 2024-02-14 220: if h2 <= u3 then
fd436744e5 2024-02-14 221: h2 = h2 + 1
fd436744e5 2024-02-14 222: Duel.Remove(h5, POS_FACEUP, REASON_RULE)
fd436744e5 2024-02-14 223: Duel.SendtoDeck(card, u5, 0, REASON_RULE)
fd436744e5 2024-02-14 224: else
fd436744e5 2024-02-14 225: Debug.ShowHint("印牌过多")
fd436744e5 2024-02-14 226: u4:Reset()
fd436744e5 2024-02-14 227: end
e14f5fd087 2024-02-14 228: end
e14f5fd087 2024-02-14 229: end
fd436744e5 2024-02-14 230: h1:SetOperation(h3)
fd436744e5 2024-02-14 231: u1:RegisterEffect(h1)
e14f5fd087 2024-02-14 232: end
e14f5fd087 2024-02-14 233: end
e14f5fd087 2024-02-14 234: function s.["开局之示"]()
e14f5fd087 2024-02-14 235: local h1, h2, h3
e14f5fd087 2024-02-14 236: --~ 此局效牌之数
e14f5fd087 2024-02-14 237: h2 = Duel.GetMatchingGroupCount(s["是否效牌"], 0, s["全区"], s["全区"], nil)
ef7b6d6995 2024-02-14 238: --~ 超量材组
ef7b6d6995 2024-02-14 239: h3 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
ef7b6d6995 2024-02-14 240: for u1 in aux.Next(h3) do
e14f5fd087 2024-02-14 241: if s["是否效牌"](u1) then
ef7b6d6995 2024-02-14 242: h2 = h2 + 1
091f486d37 2024-02-13 243: end
091f486d37 2024-02-13 244: end
091f486d37 2024-02-13 245: --~ 开局说明
e14f5fd087 2024-02-14 246: h1 = h2 .. "牌 " .. s["则"]
719cb47a61 2024-02-13 247: if s["伪洗牌"] == 0 then
091f486d37 2024-02-13 248: else
091f486d37 2024-02-13 249: h1 = h1 .. "伪洗牌 "
091f486d37 2024-02-13 250: end
719cb47a61 2024-02-13 251: if s["战段"] == 0 then
719cb47a61 2024-02-13 252: h1 = h1 .. "无战段 "
d1652d7fa4 2024-02-13 253: end
ef7b6d6995 2024-02-14 254: if s["机智"] == 0 then
ef7b6d6995 2024-02-14 255: h1 = h1 .. "无机智 "
d1652d7fa4 2024-02-13 256: end
d1652d7fa4 2024-02-13 257: if s["开局选牌入手之数"] then
d1652d7fa4 2024-02-13 258: h1 = h1 .. "选" .. s["开局选牌入手之数"] .. "牌 "
f7d8ee14bc 2024-02-13 259: end
f7d8ee14bc 2024-02-13 260: if s["禁格之数"] then
f7d8ee14bc 2024-02-13 261: h1 = h1 .. "禁" .. s["禁格之数"] .. "格 "
f7d8ee14bc 2024-02-13 262: end
d1652d7fa4 2024-02-13 263: if s["开局洗牌抽牌之数"] then
d1652d7fa4 2024-02-13 264: h1 = h1 .. "抽" .. s["开局洗牌抽牌之数"] .. "牌 "
091f486d37 2024-02-13 265: end
091f486d37 2024-02-13 266: Debug.ShowHint(h1)
091f486d37 2024-02-13 267: end
1301c8be40 2024-02-13 268: do
1301c8be40 2024-02-13 269: s["aux.BeginPuzzle"] = _G.aux.BeginPuzzle
d1652d7fa4 2024-02-13 270: --~ 开局选牌入手之数
1301c8be40 2024-02-13 271: --~ 禁格之数
1301c8be40 2024-02-13 272: function _G.aux.BeginPuzzle(u1, u2)
1301c8be40 2024-02-13 273: s["aux.BeginPuzzle"]()
1301c8be40 2024-02-13 274: if u1 then
d1652d7fa4 2024-02-13 275: s["开局选牌入手"](u1)
1301c8be40 2024-02-13 276: end
1301c8be40 2024-02-13 277: if u2 then
1301c8be40 2024-02-13 278: s["禁格"](u2)
1301c8be40 2024-02-13 279: end
e14f5fd087 2024-02-14 280: s["开局之示"]()
1301c8be40 2024-02-13 281: s["通关之邀"]()
1301c8be40 2024-02-13 282: end
1301c8be40 2024-02-13 283: end