0f75e3f03e 2023-08-02 顽雨沉风: local string = string
0f75e3f03e 2023-08-02 顽雨沉风: local table = table
6fdfa2454c 2024-02-14 顽雨沉风: local Debug = Debug
6fdfa2454c 2024-02-14 顽雨沉风: local Effect = Effect
6fdfa2454c 2024-02-14 顽雨沉风: local Duel = Duel
6fdfa2454c 2024-02-14 顽雨沉风: local Card = Card
511cb54144 2024-06-27 顽雨沉风: local d = {}
511cb54144 2024-06-27 顽雨沉风: local f = {}
6bc844fccc 2024-02-13 顽雨沉风: local s = {}
b05c665024 2024-02-14 顽雨沉风: s["效卡之类排"] = {
7da070fada 2024-06-27 顽雨沉风: TYPE_SPELL,
7da070fada 2024-06-27 顽雨沉风: TYPE_TRAP,
7da070fada 2024-06-27 顽雨沉风: TYPE_EFFECT,
7da070fada 2024-06-27 顽雨沉风: }
21cd94e151 2024-02-14 顽雨沉风: s["无效灵摆怪兽之卡编排"] = {
7da070fada 2024-06-27 顽雨沉风: 28363749,
7da070fada 2024-06-27 顽雨沉风: 19474136,
7da070fada 2024-06-27 顽雨沉风: 17390179,
7da070fada 2024-06-27 顽雨沉风: 83980492,
7da070fada 2024-06-27 顽雨沉风: }
ef7b6d6995 2024-02-14 顽雨沉风: s["全区"] = LOCATION_HAND + LOCATION_MZONE + LOCATION_SZONE + LOCATION_GRAVE + LOCATION_REMOVED + LOCATION_DECK + LOCATION_EXTRA
1301c8be40 2024-02-13 顽雨沉风: do
1301c8be40 2024-02-13 顽雨沉风: local h1
1301c8be40 2024-02-13 顽雨沉风: --~ 则对
1301c8be40 2024-02-13 顽雨沉风: h1 = {
632b8c0287 2024-06-27 顽雨沉风: [3] = "大师规则 ",
632b8c0287 2024-06-27 顽雨沉风: [4] = "新大师规则(2017) ",
632b8c0287 2024-06-27 顽雨沉风: [5] = "大师规则(2020) ",
1301c8be40 2024-02-13 顽雨沉风: }
1301c8be40 2024-02-13 顽雨沉风: s["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin
1301c8be40 2024-02-13 顽雨沉风: --~ 模
1301c8be40 2024-02-13 顽雨沉风: --~ 则数
1301c8be40 2024-02-13 顽雨沉风: function _G.Debug.ReloadFieldBegin(u1, u2)
b05c665024 2024-02-14 顽雨沉风: s["伪洗卡"] = u1 & DUEL_PSEUDO_SHUFFLE
719cb47a61 2024-02-13 顽雨沉风: s["战段"] = u1 & DUEL_ATTACK_FIRST_TURN
1301c8be40 2024-02-13 顽雨沉风: s["机智"] = u1 & DUEL_SIMPLE_AI
1301c8be40 2024-02-13 顽雨沉风: if u2 then
1301c8be40 2024-02-13 顽雨沉风: s["则"] = h1[u2]
1301c8be40 2024-02-13 顽雨沉风: else
1301c8be40 2024-02-13 顽雨沉风: s["则"] = h1[5]
1301c8be40 2024-02-13 顽雨沉风: end
1301c8be40 2024-02-13 顽雨沉风: s["Debug.ReloadFieldBegin"](u1, u2)
1301c8be40 2024-02-13 顽雨沉风: end
1301c8be40 2024-02-13 顽雨沉风: end
8ab63a7caf 2024-02-14 顽雨沉风: s["不被连锁"] = function()
d3790b56e8 2024-02-13 顽雨沉风: Duel.SetChainLimit(aux.FALSE)
d3790b56e8 2024-02-13 顽雨沉风: return true
d3790b56e8 2024-02-13 顽雨沉风: end
b05c665024 2024-02-14 顽雨沉风: s["是否效卡"] = function(card)
b05c665024 2024-02-14 顽雨沉风: for i = 1, #s["效卡之类排"] do
b05c665024 2024-02-14 顽雨沉风: if Card.IsType(card, s["效卡之类排"][i]) then
f4490a058a 2024-02-14 顽雨沉风: return true
f4490a058a 2024-02-14 顽雨沉风: end
f4490a058a 2024-02-14 顽雨沉风: end
f4490a058a 2024-02-14 顽雨沉风: if Card.IsType(card, TYPE_PENDULUM) then
f4490a058a 2024-02-14 顽雨沉风: for i = 1, #s["无效灵摆怪兽之卡编排"] do
f4490a058a 2024-02-14 顽雨沉风: if Card.IsCode(card, s["无效灵摆怪兽之卡编排"][i]) then
23eca3b462 2024-06-26 顽雨沉风: return false
033930309a 2024-02-14 顽雨沉风: else
033930309a 2024-02-14 顽雨沉风: end
033930309a 2024-02-14 顽雨沉风: end
540c3085ee 2024-06-26 顽雨沉风: return true
033930309a 2024-02-14 顽雨沉风: end
033930309a 2024-02-14 顽雨沉风: end
033930309a 2024-02-14 顽雨沉风: do
033930309a 2024-02-14 顽雨沉风: local h1
033930309a 2024-02-14 顽雨沉风: --~ “调该效果”的效果
033930309a 2024-02-14 顽雨沉风: --~ “调该效果”的玩家
b05c665024 2024-02-14 顽雨沉风: s["_开局选卡入手"] = function(u1, u2)
033930309a 2024-02-14 顽雨沉风: local h2
b05c665024 2024-02-14 顽雨沉风: --~ 玩家选定的卡
033930309a 2024-02-14 顽雨沉风: h2 = Duel.SelectMatchingCard(u2, Card.IsAbleToHand, u2, LOCATION_DECK, 0, h1, h1, nil)
033930309a 2024-02-14 顽雨沉风: Duel.SendtoHand(h2, nil, REASON_RULE)
033930309a 2024-02-14 顽雨沉风: u1:Reset()
033930309a 2024-02-14 顽雨沉风: end
b05c665024 2024-02-14 顽雨沉风: s["开局选卡入手"] = function(u1)
033930309a 2024-02-14 顽雨沉风: local h2
bb85d78743 2024-02-17 顽雨沉风: s["「开局选卡入手」之量"] = u1
bb85d78743 2024-02-17 顽雨沉风: --~ 「开局选卡入手」之量
033930309a 2024-02-14 顽雨沉风: h1 = u1
033930309a 2024-02-14 顽雨沉风: --~ 效果
033930309a 2024-02-14 顽雨沉风: h2 = Effect.GlobalEffect()
033930309a 2024-02-14 顽雨沉风: h2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
033930309a 2024-02-14 顽雨沉风: h2:SetCode(EVENT_ADJUST)
033930309a 2024-02-14 顽雨沉风: h2:SetCondition(aux.TRUE)
b05c665024 2024-02-14 顽雨沉风: h2:SetOperation(s["_开局选卡入手"])
b05c665024 2024-02-14 顽雨沉风: Duel.RegisterEffect(h2, 0)
b05c665024 2024-02-14 顽雨沉风: end
b05c665024 2024-02-14 顽雨沉风: end
2f6b499b2b 2024-06-27 顽雨沉风: --~ 禁几个怪兽格
2f6b499b2b 2024-06-27 顽雨沉风: f["禁格"] = function(o1)
2f6b499b2b 2024-06-27 顽雨沉风: local k1
2f6b499b2b 2024-06-27 顽雨沉风: d["禁几个怪兽格"] = o1
2f6b499b2b 2024-06-27 顽雨沉风: --~ 效果
2f6b499b2b 2024-06-27 顽雨沉风: k1 = Effect.GlobalEffect()
2f6b499b2b 2024-06-27 顽雨沉风: k1:SetCode(EFFECT_USE_EXTRA_MZONE)
2f6b499b2b 2024-06-27 顽雨沉风: k1:SetValue(k1)
2f6b499b2b 2024-06-27 顽雨沉风: Duel.RegisterEffect(k1, 0)
2f6b499b2b 2024-06-27 顽雨沉风: end
2f6b499b2b 2024-06-27 顽雨沉风: do
cb9ce9dc22 2024-06-27 顽雨沉风: local k1, k2, k3, k4
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 印卡过多时的提示
cb9ce9dc22 2024-06-27 顽雨沉风: k1 = "印卡过多"
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 现在的印卡数量
cb9ce9dc22 2024-06-27 顽雨沉风: k2 = 1
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 手卡印卡数量的上限
cb9ce9dc22 2024-06-27 顽雨沉风: k3 = 0
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 印卡总数量的上限
cb9ce9dc22 2024-06-27 顽雨沉风: k4 = 0
a82e37fd3f 2024-06-27 顽雨沉风: --~ 所调用这个效果的效果
a82e37fd3f 2024-06-27 顽雨沉风: --~ 所调用这个效果的玩家
cb9ce9dc22 2024-06-27 顽雨沉风: f["_印卡"] = function(o1, o2)
cb9ce9dc22 2024-06-27 顽雨沉风: local k5, k6
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 要印的卡的卡编
cb9ce9dc22 2024-06-27 顽雨沉风: k5 = Duel.AnnounceCard(o2)
a806df48aa 2024-06-27 顽雨沉风: --~ 卡
cb9ce9dc22 2024-06-27 顽雨沉风: k6 = Duel.CreateToken(o2, k5)
cb9ce9dc22 2024-06-27 顽雨沉风: if k2 <= k3 then
cb9ce9dc22 2024-06-27 顽雨沉风: k2 = k2 + 1
cb9ce9dc22 2024-06-27 顽雨沉风: Duel.SendtoHand(k6, nil, REASON_RULE)
cb9ce9dc22 2024-06-27 顽雨沉风: else
cb9ce9dc22 2024-06-27 顽雨沉风: if k2 <= k4 then
cb9ce9dc22 2024-06-27 顽雨沉风: k2 = k2 + 1
cb9ce9dc22 2024-06-27 顽雨沉风: Duel.SendtoDeck(k6, o2, 0, REASON_RULE)
cb9ce9dc22 2024-06-27 顽雨沉风: else
cb9ce9dc22 2024-06-27 顽雨沉风: Debug.ShowHint(k1)
cb9ce9dc22 2024-06-27 顽雨沉风: o1:Reset()
a806df48aa 2024-06-27 顽雨沉风: end
a806df48aa 2024-06-27 顽雨沉风: end
a806df48aa 2024-06-27 顽雨沉风: end
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 印卡的启动源
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 手卡印卡数量的上限
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 印卡总数量的上限
cb9ce9dc22 2024-06-27 顽雨沉风: f["印卡"] = function(o1, o2, o3)
cb9ce9dc22 2024-06-27 顽雨沉风: local k5
cb9ce9dc22 2024-06-27 顽雨沉风: k3 = o2
cb9ce9dc22 2024-06-27 顽雨沉风: k4 = o3 or o2
cb9ce9dc22 2024-06-27 顽雨沉风: Debug.ShowHint("点对方额外卡组,可印卡\n只能印手卡 " .. k3 .. " 张\n最多可印 " .. k4 .. " 张")
cb9ce9dc22 2024-06-27 顽雨沉风: k5 = Effect.CreateEffect(o1)
cb9ce9dc22 2024-06-27 顽雨沉风: k5:SetType(EFFECT_TYPE_IGNITION)
cb9ce9dc22 2024-06-27 顽雨沉风: k5:SetProperty(EFFECT_FLAG_BOTH_SIDE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_NEGATE + EFFECT_FLAG_CANNOT_DISABLE)
cb9ce9dc22 2024-06-27 顽雨沉风: k5:SetTarget(f["不被连锁"])
cb9ce9dc22 2024-06-27 顽雨沉风: k5:SetRange(LOCATION_EXTRA)
cb9ce9dc22 2024-06-27 顽雨沉风: k5:SetOperation(f["_印卡"])
cb9ce9dc22 2024-06-27 顽雨沉风: o1:RegisterEffect(k5)
b158c7a4ac 2024-02-17 顽雨沉风: end
b158c7a4ac 2024-02-17 顽雨沉风: end
b158c7a4ac 2024-02-17 顽雨沉风: s["开局示"] = function()
b05c665024 2024-02-14 顽雨沉风: local h1, h2, h3
b05c665024 2024-02-14 顽雨沉风: --~ 此局效卡之数
b05c665024 2024-02-14 顽雨沉风: h2 = Duel.GetMatchingGroupCount(s["是否效卡"], 0, s["全区"], s["全区"], nil)
b05c665024 2024-02-14 顽雨沉风: --~ 超量材组
b05c665024 2024-02-14 顽雨沉风: h3 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
b05c665024 2024-02-14 顽雨沉风: for u1 in aux.Next(h3) do
b05c665024 2024-02-14 顽雨沉风: if s["是否效卡"](u1) then
ef7b6d6995 2024-02-14 顽雨沉风: h2 = h2 + 1
091f486d37 2024-02-13 顽雨沉风: end
091f486d37 2024-02-13 顽雨沉风: end
091f486d37 2024-02-13 顽雨沉风: --~ 开局说明
b05c665024 2024-02-14 顽雨沉风: h1 = h2 .. "卡 " .. s["则"]
b05c665024 2024-02-14 顽雨沉风: if s["伪洗卡"] == 0 then
091f486d37 2024-02-13 顽雨沉风: else
b05c665024 2024-02-14 顽雨沉风: h1 = h1 .. "伪洗卡 "
719cb47a61 2024-02-13 顽雨沉风: end
719cb47a61 2024-02-13 顽雨沉风: if s["战段"] == 0 then
719cb47a61 2024-02-13 顽雨沉风: h1 = h1 .. "无战段 "
719cb47a61 2024-02-13 顽雨沉风: end
ef7b6d6995 2024-02-14 顽雨沉风: if s["机智"] == 0 then
ef7b6d6995 2024-02-14 顽雨沉风: h1 = h1 .. "无机智 "
ef7b6d6995 2024-02-14 顽雨沉风: end
bb85d78743 2024-02-17 顽雨沉风: if s["「开局选卡入手」之量"] then
bb85d78743 2024-02-17 顽雨沉风: h1 = h1 .. "选" .. s["「开局选卡入手」之量"] .. "卡 "
bb85d78743 2024-02-17 顽雨沉风: end
bb85d78743 2024-02-17 顽雨沉风: if s["「禁主怪格」之量"] then
bb85d78743 2024-02-17 顽雨沉风: h1 = h1 .. "禁" .. s["「禁主怪格」之量"] .. "怪格 "
bb85d78743 2024-02-17 顽雨沉风: end
bb85d78743 2024-02-17 顽雨沉风: if s["「禁魔陷格」之量"] then
bb85d78743 2024-02-17 顽雨沉风: h1 = h1 .. "禁" .. s["「禁魔陷格」之量"] .. "魔格 "
091f486d37 2024-02-13 顽雨沉风: end
091f486d37 2024-02-13 顽雨沉风: Debug.ShowHint(h1)
091f486d37 2024-02-13 顽雨沉风: end
1301c8be40 2024-02-13 顽雨沉风: do
1301c8be40 2024-02-13 顽雨沉风: s["aux.BeginPuzzle"] = _G.aux.BeginPuzzle
7a80b7fa09 2024-02-17 顽雨沉风: --~ 「开局选卡入手」之量
7a80b7fa09 2024-02-17 顽雨沉风: --~ 传入对方额外卡组最上面表侧卡,并将其作为印卡源
b158c7a4ac 2024-02-17 顽雨沉风: --~ 能印手卡几张
b158c7a4ac 2024-02-17 顽雨沉风: --~ 最多能印卡几张
5990d10d96 2024-06-27 顽雨沉风: function _G.aux.BeginPuzzle(o1, o2, o3, o4, o5)
e14f5fd087 2024-02-14 顽雨沉风: s["aux.BeginPuzzle"]()
5990d10d96 2024-06-27 顽雨沉风: if o1 then
5990d10d96 2024-06-27 顽雨沉风: s["开局选卡入手"](o1)
2f6b499b2b 2024-06-27 顽雨沉风: else
2f6b499b2b 2024-06-27 顽雨沉风: end
2f6b499b2b 2024-06-27 顽雨沉风: if o2 then
2f6b499b2b 2024-06-27 顽雨沉风: f["禁格"](o2)
2f6b499b2b 2024-06-27 顽雨沉风: else
ef8dd0e5a0 2024-02-17 顽雨沉风: end
5990d10d96 2024-06-27 顽雨沉风: if o3 then
5990d10d96 2024-06-27 顽雨沉风: s["印卡"](o3, o4, o5)
0f9865b09c 2024-02-14 顽雨沉风: else
0f9865b09c 2024-02-14 顽雨沉风: end
b158c7a4ac 2024-02-17 顽雨沉风: s["开局示"]()
e14f5fd087 2024-02-14 顽雨沉风: end
e14f5fd087 2024-02-14 顽雨沉风: end