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 = {}
738c457e01 2024-07-17 顽雨沉风: d["排_效果卡之类型"] = {
7da070fada 2024-06-27 顽雨沉风: TYPE_SPELL,
7da070fada 2024-06-27 顽雨沉风: TYPE_TRAP,
7da070fada 2024-06-27 顽雨沉风: TYPE_EFFECT,
8a913822c3 2024-07-21 顽雨沉风: TYPE_DUAL,
7da070fada 2024-06-27 顽雨沉风: }
738c457e01 2024-07-17 顽雨沉风: d["排_非效果灵摆怪兽之卡片编号"] = {
7da070fada 2024-06-27 顽雨沉风: 28363749,
7da070fada 2024-06-27 顽雨沉风: 19474136,
7da070fada 2024-06-27 顽雨沉风: 17390179,
7da070fada 2024-06-27 顽雨沉风: 83980492,
7da070fada 2024-06-27 顽雨沉风: }
7e1849c15c 2024-06-27 顽雨沉风: d["数_所有区域"] = LOCATION_HAND + LOCATION_MZONE + LOCATION_SZONE + LOCATION_GRAVE + LOCATION_REMOVED + LOCATION_DECK + LOCATION_EXTRA
1301c8be40 2024-02-13 顽雨沉风: do
7e1849c15c 2024-06-27 顽雨沉风: f["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin
738c457e01 2024-07-17 顽雨沉风: --~ 数_这一局的模式
738c457e01 2024-07-17 顽雨沉风: --~ 数_规则参数
7e1849c15c 2024-06-27 顽雨沉风: function _G.Debug.ReloadFieldBegin(o1, o2)
5da02f9613 2024-07-18 顽雨沉风: --~ 这一局所适用规则的对
5da02f9613 2024-07-18 顽雨沉风: local k1
5da02f9613 2024-07-18 顽雨沉风: k1 = {
5da02f9613 2024-07-18 顽雨沉风: [3] = "大师规则三(2014) ",
5da02f9613 2024-07-18 顽雨沉风: [4] = "新大师规则(2017) ",
5da02f9613 2024-07-18 顽雨沉风: [5] = "大师规则(2020) ",
5da02f9613 2024-07-18 顽雨沉风: }
7e1849c15c 2024-06-27 顽雨沉风: d["数_假洗卡"] = o1 & DUEL_PSEUDO_SHUFFLE
7e1849c15c 2024-06-27 顽雨沉风: d["数_战斗阶段"] = o1 & DUEL_ATTACK_FIRST_TURN
7e1849c15c 2024-06-27 顽雨沉风: d["数_人工智能"] = o1 & DUEL_SIMPLE_AI
7e1849c15c 2024-06-27 顽雨沉风: if o2 then
a5616b998c 2024-06-27 顽雨沉风: d["字_这一局的规则"] = k1[o2]
1301c8be40 2024-02-13 顽雨沉风: else
a5616b998c 2024-06-27 顽雨沉风: d["字_这一局的规则"] = k1[5]
ef8dd0e5a0 2024-02-17 顽雨沉风: end
a5616b998c 2024-06-27 顽雨沉风: f["Debug.ReloadFieldBegin"](o1, o2)
ef8dd0e5a0 2024-02-17 顽雨沉风: end
ef8dd0e5a0 2024-02-17 顽雨沉风: end
b06c61ebbe 2024-06-27 顽雨沉风: f["不被连锁"] = function()
d3790b56e8 2024-02-13 顽雨沉风: Duel.SetChainLimit(aux.FALSE)
d3790b56e8 2024-02-13 顽雨沉风: return true
d3790b56e8 2024-02-13 顽雨沉风: end
a5616b998c 2024-06-27 顽雨沉风: f["是否有效果卡"] = function(card)
a6497b9644 2024-07-18 顽雨沉风: for k1 = 1, #d["排_效果卡之类型"] do
a6497b9644 2024-07-18 顽雨沉风: if Card.IsType(card, d["排_效果卡之类型"][k1]) then
1bc6d12501 2024-06-27 顽雨沉风: return true
f4490a058a 2024-02-14 顽雨沉风: end
f4490a058a 2024-02-14 顽雨沉风: end
1bc6d12501 2024-06-27 顽雨沉风: if Card.IsType(card, TYPE_PENDULUM) then
a6497b9644 2024-07-18 顽雨沉风: for k1 = 1, #d["排_非效果灵摆怪兽之卡片编号"] do
a6497b9644 2024-07-18 顽雨沉风: if Card.IsCode(card, d["排_非效果灵摆怪兽之卡片编号"][k1]) then
1bc6d12501 2024-06-27 顽雨沉风: return false
1bc6d12501 2024-06-27 顽雨沉风: else
1bc6d12501 2024-06-27 顽雨沉风: end
1bc6d12501 2024-06-27 顽雨沉风: end
1bc6d12501 2024-06-27 顽雨沉风: return true
1bc6d12501 2024-06-27 顽雨沉风: end
540c3085ee 2024-06-26 顽雨沉风: end
540c3085ee 2024-06-26 顽雨沉风: do
d64decbe1d 2024-07-17 顽雨沉风: --~ 量_从卡组选几张卡加入手卡
7e1849c15c 2024-06-27 顽雨沉风: local k1
07dff49316 2024-07-17 顽雨沉风: --~ 效果_所调用这个效果的效果
d64decbe1d 2024-07-17 顽雨沉风: --~ 数_所调用这个效果的玩家
d64decbe1d 2024-07-17 顽雨沉风: f["_从卡组选卡加入手卡"] = function(o1, o2)
d64decbe1d 2024-07-17 顽雨沉风: --~ 卡_玩家选定的卡
33a7684417 2024-07-18 顽雨沉风: local k11
33a7684417 2024-07-18 顽雨沉风: k11 = Duel.SelectMatchingCard(o2, Card.IsAbleToHand, o2, LOCATION_DECK, 0, k1, k1, nil)
33a7684417 2024-07-18 顽雨沉风: Duel.SendtoHand(k11, nil, REASON_RULE)
d64decbe1d 2024-07-17 顽雨沉风: o1:Reset()
d64decbe1d 2024-07-17 顽雨沉风: end
d64decbe1d 2024-07-17 顽雨沉风: --~ 量_从卡组选几张卡加入手卡
d64decbe1d 2024-07-17 顽雨沉风: f["从卡组选卡加入手卡"] = function(o1)
d64decbe1d 2024-07-17 顽雨沉风: --~ 效果
33a7684417 2024-07-18 顽雨沉风: local k11
d64decbe1d 2024-07-17 顽雨沉风: d["量_从卡组选几张卡加入手卡"] = o1
d64decbe1d 2024-07-17 顽雨沉风: k1 = o1
33a7684417 2024-07-18 顽雨沉风: k11 = Effect.GlobalEffect()
33a7684417 2024-07-18 顽雨沉风: k11:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
33a7684417 2024-07-18 顽雨沉风: k11:SetCode(EVENT_ADJUST)
33a7684417 2024-07-18 顽雨沉风: k11:SetCondition(aux.TRUE)
33a7684417 2024-07-18 顽雨沉风: k11:SetCountLimit(1)
33a7684417 2024-07-18 顽雨沉风: k11:SetOperation(f["_从卡组选卡加入手卡"])
33a7684417 2024-07-18 顽雨沉风: Duel.RegisterEffect(k11, 0)
d64decbe1d 2024-07-17 顽雨沉风: end
d64decbe1d 2024-07-17 顽雨沉风: end
43ab064a47 2024-07-17 顽雨沉风: --~ 量_禁用几个我方主要怪兽区域
d64decbe1d 2024-07-17 顽雨沉风: f["禁用我方主要怪兽区域"] = function(o1)
d64decbe1d 2024-07-17 顽雨沉风: --~ 效果
d64decbe1d 2024-07-17 顽雨沉风: local k1
43ab064a47 2024-07-17 顽雨沉风: d["量_禁用几个我方主要怪兽区域"] = o1
cb9ce9dc22 2024-06-27 顽雨沉风: k1 = Effect.GlobalEffect()
cb9ce9dc22 2024-06-27 顽雨沉风: k1:SetCode(EFFECT_USE_EXTRA_MZONE)
72a706f479 2024-06-27 顽雨沉风: k1:SetValue(o1)
cb9ce9dc22 2024-06-27 顽雨沉风: Duel.RegisterEffect(k1, 0)
cb9ce9dc22 2024-06-27 顽雨沉风: end
cb9ce9dc22 2024-06-27 顽雨沉风: do
d64decbe1d 2024-07-17 顽雨沉风: --~ 字_印卡过多时的文字提示
ad5fabcb17 2024-07-17 顽雨沉风: --~ 量_现在的印卡数量
d64decbe1d 2024-07-17 顽雨沉风: --~ 量_手卡印卡数量的上限
d64decbe1d 2024-07-17 顽雨沉风: --~ 量_印卡总数量的上限
d64decbe1d 2024-07-17 顽雨沉风: local k1, k2, k3, k4
d64decbe1d 2024-07-17 顽雨沉风: k1 = "印卡过多"
cb9ce9dc22 2024-06-27 顽雨沉风: k2 = 1
cb9ce9dc22 2024-06-27 顽雨沉风: k3 = 0
cb9ce9dc22 2024-06-27 顽雨沉风: k4 = 0
ad5fabcb17 2024-07-17 顽雨沉风: --~ 效果_所调用这个效果的效果
ad5fabcb17 2024-07-17 顽雨沉风: --~ 数_所调用这个效果的玩家
cb9ce9dc22 2024-06-27 顽雨沉风: f["_印卡"] = function(o1, o2)
d64decbe1d 2024-07-17 顽雨沉风: --~ 数_玩家宣言要印的卡之卡片编号
cb9ce9dc22 2024-06-27 顽雨沉风: --~ 卡
27a22e0f7e 2024-07-18 顽雨沉风: local k11, k12
27a22e0f7e 2024-07-18 顽雨沉风: k11 = Duel.AnnounceCard(o2)
27a22e0f7e 2024-07-18 顽雨沉风: k6 = Duel.CreateToken(o2, k11)
cb9ce9dc22 2024-06-27 顽雨沉风: if k2 <= k3 then
cb9ce9dc22 2024-06-27 顽雨沉风: k2 = k2 + 1
27a22e0f7e 2024-07-18 顽雨沉风: Duel.SendtoHand(k12, nil, REASON_RULE)
cb9ce9dc22 2024-06-27 顽雨沉风: else
cb9ce9dc22 2024-06-27 顽雨沉风: if k2 <= k4 then
cb9ce9dc22 2024-06-27 顽雨沉风: k2 = k2 + 1
27a22e0f7e 2024-07-18 顽雨沉风: Duel.SendtoDeck(k12, o2, 0, REASON_RULE)
cb9ce9dc22 2024-06-27 顽雨沉风: else
cb9ce9dc22 2024-06-27 顽雨沉风: Debug.ShowHint(k1)
cb9ce9dc22 2024-06-27 顽雨沉风: o1:Reset()
cb9ce9dc22 2024-06-27 顽雨沉风: end
cb9ce9dc22 2024-06-27 顽雨沉风: end
cb9ce9dc22 2024-06-27 顽雨沉风: end
ad5fabcb17 2024-07-17 顽雨沉风: --~ 卡_印卡的启动源
ad5fabcb17 2024-07-17 顽雨沉风: --~ 量_手卡印卡数量的上限
ad5fabcb17 2024-07-17 顽雨沉风: --~ 量_印卡总数量的上限
bb9bb3e958 2024-06-27 顽雨沉风: f["印卡"] = function(o1, o2, o3)
d64decbe1d 2024-07-17 顽雨沉风: --~ 效果
27a22e0f7e 2024-07-18 顽雨沉风: local k11
bb9bb3e958 2024-06-27 顽雨沉风: k3 = o2
bb9bb3e958 2024-06-27 顽雨沉风: k4 = o3 or o2
b047672e79 2024-07-18 顽雨沉风: Debug.ShowHint("点击对方额外卡组,可以印卡\n只能印 " .. k3 .. " 张手卡\n最多可印 " .. k4 .. " 张卡")
27a22e0f7e 2024-07-18 顽雨沉风: k11 = Effect.CreateEffect(o1)
27a22e0f7e 2024-07-18 顽雨沉风: k11:SetType(EFFECT_TYPE_IGNITION)
27a22e0f7e 2024-07-18 顽雨沉风: k11:SetProperty(EFFECT_FLAG_BOTH_SIDE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_DISABLE)
27a22e0f7e 2024-07-18 顽雨沉风: k11:SetTarget(f["不被连锁"])
27a22e0f7e 2024-07-18 顽雨沉风: k11:SetRange(LOCATION_EXTRA)
27a22e0f7e 2024-07-18 顽雨沉风: k11:SetOperation(f["_印卡"])
27a22e0f7e 2024-07-18 顽雨沉风: o1:RegisterEffect(k11)
bb9bb3e958 2024-06-27 顽雨沉风: end
bb9bb3e958 2024-06-27 顽雨沉风: end
56066f42fa 2024-07-01 顽雨沉风: f["开局说明"] = function()
20dfebb117 2024-07-04 顽雨沉风: --~ 字_开局说明
20dfebb117 2024-07-04 顽雨沉风: --~ 量_我方的效果卡
20dfebb117 2024-07-04 顽雨沉风: --~ 组_我方超量素材
20dfebb117 2024-07-04 顽雨沉风: --~ 量_对方的效果卡
20dfebb117 2024-07-04 顽雨沉风: --~ 组_对方超量素材
20dfebb117 2024-07-04 顽雨沉风: --~ 量_效果卡
20dfebb117 2024-07-04 顽雨沉风: local k1, k2, k3, k4, k5, k6
20dfebb117 2024-07-04 顽雨沉风: k2 = Duel.GetMatchingGroupCount(f["是否有效果卡"], 0, d["数_所有区域"], nil, nil)
20dfebb117 2024-07-04 顽雨沉风: k3 = Duel.GetOverlayGroup(0, LOCATION_MZONE, nil)
bb9bb3e958 2024-06-27 顽雨沉风: for o1 in aux.Next(k3) do
1bc6d12501 2024-06-27 顽雨沉风: if f["是否有效果卡"](o1) then
bb9bb3e958 2024-06-27 顽雨沉风: k2 = k2 + 1
bb9bb3e958 2024-06-27 顽雨沉风: end
bb9bb3e958 2024-06-27 顽雨沉风: end
20dfebb117 2024-07-04 顽雨沉风: k4 = Duel.GetMatchingGroupCount(f["是否有效果卡"], 0, nil, d["数_所有区域"], nil)
20dfebb117 2024-07-04 顽雨沉风: k5 = Duel.GetOverlayGroup(0, nil, LOCATION_MZONE)
20dfebb117 2024-07-04 顽雨沉风: for o1 in aux.Next(k5) do
20dfebb117 2024-07-04 顽雨沉风: if f["是否有效果卡"](o1) then
20dfebb117 2024-07-04 顽雨沉风: k4 = k4 + 1
20dfebb117 2024-07-04 顽雨沉风: end
20dfebb117 2024-07-04 顽雨沉风: end
20dfebb117 2024-07-04 顽雨沉风: k6 = k2 + k4
15cf256272 2024-07-24 顽雨沉风: k1 = "" .. k6 .. "张 " .. k4 .. "张 " .. d["字_这一局的规则"]
7e1849c15c 2024-06-27 顽雨沉风: if d["数_假洗卡"] == 0 then
bb9bb3e958 2024-06-27 顽雨沉风: else
221188e89a 2024-06-27 顽雨沉风: k1 = k1 .. "假洗卡 "
7e1849c15c 2024-06-27 顽雨沉风: end
7e1849c15c 2024-06-27 顽雨沉风: if d["数_战斗阶段"] == 0 then
221188e89a 2024-06-27 顽雨沉风: k1 = k1 .. "无战斗阶段 "
7e1849c15c 2024-06-27 顽雨沉风: end
7e1849c15c 2024-06-27 顽雨沉风: if d["数_人工智能"] == 0 then
221188e89a 2024-06-27 顽雨沉风: k1 = k1 .. "无人工智能 "
7e1849c15c 2024-06-27 顽雨沉风: end
d64decbe1d 2024-07-17 顽雨沉风: if d["量_从卡组选几张卡加入手卡"] then
d64decbe1d 2024-07-17 顽雨沉风: k1 = k1 .. "选" .. d["量_从卡组选几张卡加入手卡"] .. "卡加入手卡 "
7e1849c15c 2024-06-27 顽雨沉风: end
43ab064a47 2024-07-17 顽雨沉风: if d["量_禁用几个我方主要怪兽区域"] then
43ab064a47 2024-07-17 顽雨沉风: k1 = k1 .. "禁用" .. d["量_禁用几个我方主要怪兽区域"] .. "个我方主要怪兽区域 "
bb9bb3e958 2024-06-27 顽雨沉风: end
bb9bb3e958 2024-06-27 顽雨沉风: Debug.ShowHint(k1)
88a69b97e2 2024-06-27 顽雨沉风: end
88a69b97e2 2024-06-27 顽雨沉风: do
88a69b97e2 2024-06-27 顽雨沉风: f["aux.BeginPuzzle"] = _G.aux.BeginPuzzle
d64decbe1d 2024-07-17 顽雨沉风: --~ 量_从卡组选几张卡加入手卡
ad5fabcb17 2024-07-17 顽雨沉风: --~ 量_禁几个我方主要怪兽格
ad5fabcb17 2024-07-17 顽雨沉风: --~ 卡_传入对方额外卡组最上面的表侧卡,并将其作为印卡源
ad5fabcb17 2024-07-17 顽雨沉风: --~ 量_能印几张手卡
ad5fabcb17 2024-07-17 顽雨沉风: --~ 量_最多能印几张卡
88a69b97e2 2024-06-27 顽雨沉风: function _G.aux.BeginPuzzle(o1, o2, o3, o4, o5)
88a69b97e2 2024-06-27 顽雨沉风: f["aux.BeginPuzzle"]()
88a69b97e2 2024-06-27 顽雨沉风: if o1 then
d64decbe1d 2024-07-17 顽雨沉风: f["从卡组选卡加入手卡"](o1)
cb9ce9dc22 2024-06-27 顽雨沉风: else
cb9ce9dc22 2024-06-27 顽雨沉风: end
cb9ce9dc22 2024-06-27 顽雨沉风: if o2 then
d64decbe1d 2024-07-17 顽雨沉风: f["禁用我方主要怪兽区域"](o2)
cb9ce9dc22 2024-06-27 顽雨沉风: else
cb9ce9dc22 2024-06-27 顽雨沉风: end
cb9ce9dc22 2024-06-27 顽雨沉风: if o3 then
88a69b97e2 2024-06-27 顽雨沉风: f["印卡"](o3, o4, o5)
cb9ce9dc22 2024-06-27 顽雨沉风: else
cb9ce9dc22 2024-06-27 顽雨沉风: end
56066f42fa 2024-07-01 顽雨沉风: f["开局说明"]()
929971b270 2024-07-01 顽雨沉风: end
929971b270 2024-07-01 顽雨沉风: end
929971b270 2024-07-01 顽雨沉风: Auxiliary.PuzzleOp = function()
929971b270 2024-07-01 顽雨沉风: Duel.SetLP(0,0)
5eab3312e8 2024-07-15 顽雨沉风: for i = 1, #d["排_局末提示"] do
5eab3312e8 2024-07-15 顽雨沉风: Debug.ShowHint(d["排_局末提示"][i])
929971b270 2024-07-01 顽雨沉风: end
929971b270 2024-07-01 顽雨沉风: end
929971b270 2024-07-01 顽雨沉风: do
929971b270 2024-07-01 顽雨沉风: f["Debug.ReloadFieldEnd"] = _G.Debug.ReloadFieldEnd
c5bcca479f 2024-07-17 顽雨沉风: --~ 局末提示
929971b270 2024-07-01 顽雨沉风: function _G.Debug.ReloadFieldEnd(...)
929971b270 2024-07-01 顽雨沉风: f["Debug.ReloadFieldEnd"]()
5eab3312e8 2024-07-15 顽雨沉风: d["排_局末提示"] = {...}
e14f5fd087 2024-02-14 顽雨沉风: end
e14f5fd087 2024-02-14 顽雨沉风: end