e59d27b43b 2023-07-17 顽雨沉风: local str = {}
6f9888787e 2023-08-02 顽雨沉风: local string = string
6f9888787e 2023-08-02 顽雨沉风: local table = table
6bc844fccc 2024-02-13 顽雨沉风: local s = {}
6bc844fccc 2024-02-13 顽雨沉风: _G.fun = {}
ef7b6d6995 2024-02-14 顽雨沉风: s["效牌之类排"] = {
8388ccc6c5 2024-02-14 顽雨沉风: TYPE_SPELL
8388ccc6c5 2024-02-14 顽雨沉风: , TYPE_TRAP
8388ccc6c5 2024-02-14 顽雨沉风: , TYPE_EFFECT
8388ccc6c5 2024-02-14 顽雨沉风: }
8388ccc6c5 2024-02-14 顽雨沉风: s["无效灵摆怪兽之排"] = {
8388ccc6c5 2024-02-14 顽雨沉风: 28363749
8388ccc6c5 2024-02-14 顽雨沉风: , 19474136
8388ccc6c5 2024-02-14 顽雨沉风: , 17390179
8388ccc6c5 2024-02-14 顽雨沉风: , 83980492
ef7b6d6995 2024-02-14 顽雨沉风: }
ef7b6d6995 2024-02-14 顽雨沉风: s["全区"] = LOCATION_HAND + LOCATION_MZONE + LOCATION_SZONE + LOCATION_GRAVE + LOCATION_REMOVED + LOCATION_DECK + LOCATION_EXTRA
ad4e2a7693 2023-08-02 顽雨沉风: --第一层-------------------------------
dd1a253607 2023-08-02 顽雨沉风: local cache_1
dd1a253607 2023-08-02 顽雨沉风: local cache_2
dd1a253607 2023-08-02 顽雨沉风: local cache_3
dd1a253607 2023-08-02 顽雨沉风: local cache_4
dd1a253607 2023-08-02 顽雨沉风: local cache_5
dd1a253607 2023-08-02 顽雨沉风: local cache_6
dd1a253607 2023-08-02 顽雨沉风: local cache_7
dd1a253607 2023-08-02 顽雨沉风: local cache_8
dd1a253607 2023-08-02 顽雨沉风: local cache_9
70edc71d15 2023-08-02 顽雨沉风: local _
1301c8be40 2024-02-13 顽雨沉风: do
1301c8be40 2024-02-13 顽雨沉风: local h1
1301c8be40 2024-02-13 顽雨沉风: --~ 则对
1301c8be40 2024-02-13 顽雨沉风: h1 = {
1301c8be40 2024-02-13 顽雨沉风: [3] = "大师3 "
1301c8be40 2024-02-13 顽雨沉风: , [4] = "新大师 "
1301c8be40 2024-02-13 顽雨沉风: , [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)
719cb47a61 2024-02-13 顽雨沉风: 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
d1652d7fa4 2024-02-13 顽雨沉风: function s["开局洗牌抽牌"](u1)
1301c8be40 2024-02-13 顽雨沉风: local h1, h2
d1652d7fa4 2024-02-13 顽雨沉风: s["开局洗牌抽牌之数"] = u1
af6ca14c70 2024-02-13 顽雨沉风: --~ 效果
af6ca14c70 2024-02-13 顽雨沉风: h1 = Effect.GlobalEffect()
af6ca14c70 2024-02-13 顽雨沉风: h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
af6ca14c70 2024-02-13 顽雨沉风: h1:SetCode(EVENT_ADJUST)
af6ca14c70 2024-02-13 顽雨沉风: h1:SetCondition(aux.TRUE)
d1652d7fa4 2024-02-13 顽雨沉风: -- 随机抽牌
951ea1b58f 2024-02-13 顽雨沉风: --~ 调该效果的效果
951ea1b58f 2024-02-13 顽雨沉风: function h2(u2)
f56b114da9 2024-02-13 顽雨沉风: Duel.ShuffleDeck(0)
f56b114da9 2024-02-13 顽雨沉风: Duel.Draw(0, u1, REASON_RULE)
951ea1b58f 2024-02-13 顽雨沉风: u2:Reset()
af6ca14c70 2024-02-13 顽雨沉风: end
af6ca14c70 2024-02-13 顽雨沉风: h1:SetOperation(h2)
af6ca14c70 2024-02-13 顽雨沉风: Duel.RegisterEffect(h1, 0)
f56b114da9 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: fun["一_该效果不能被连锁"] = function()
674765ddf2 2024-02-13 顽雨沉风: Duel.SetChainLimit(aux.FALSE)
674765ddf2 2024-02-13 顽雨沉风: return true
d3790b56e8 2024-02-13 顽雨沉风: end
951ea1b58f 2024-02-13 顽雨沉风: do
951ea1b58f 2024-02-13 顽雨沉风: local h1, h2
951ea1b58f 2024-02-13 顽雨沉风: --~ 原解邀请
951ea1b58f 2024-02-13 顽雨沉风: h1 = "残局群181175613"
951ea1b58f 2024-02-13 顽雨沉风: --~ 二解邀请,备用:圣魔术师
951ea1b58f 2024-02-13 顽雨沉风: h2 = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
6bc844fccc 2024-02-13 顽雨沉风: function s["通关之邀"]()
951ea1b58f 2024-02-13 顽雨沉风: local h3, h4
951ea1b58f 2024-02-13 顽雨沉风: --~ 效果
951ea1b58f 2024-02-13 顽雨沉风: h3 = Effect.GlobalEffect()
951ea1b58f 2024-02-13 顽雨沉风: h3:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
951ea1b58f 2024-02-13 顽雨沉风: h3:SetCode(EVENT_DAMAGE)
951ea1b58f 2024-02-13 顽雨沉风: --~ 通关之邀
951ea1b58f 2024-02-13 顽雨沉风: function h4()
951ea1b58f 2024-02-13 顽雨沉风: local h5
951ea1b58f 2024-02-13 顽雨沉风: --~ 对方之血
951ea1b58f 2024-02-13 顽雨沉风: h5 = Duel.GetLP(1)
951ea1b58f 2024-02-13 顽雨沉风: if h5 <= 0 then
951ea1b58f 2024-02-13 顽雨沉风: if h5 == 0 then
951ea1b58f 2024-02-13 顽雨沉风: Debug.ShowHint(h1)
951ea1b58f 2024-02-13 顽雨沉风: else
951ea1b58f 2024-02-13 顽雨沉风: Debug.ShowHint(h2)
951ea1b58f 2024-02-13 顽雨沉风: end
951ea1b58f 2024-02-13 顽雨沉风: else
951ea1b58f 2024-02-13 顽雨沉风: return false
951ea1b58f 2024-02-13 顽雨沉风: end
951ea1b58f 2024-02-13 顽雨沉风: end
951ea1b58f 2024-02-13 顽雨沉风: h3:SetCondition(h4)
951ea1b58f 2024-02-13 顽雨沉风: h3:SetOperation(aux.NULL)
951ea1b58f 2024-02-13 顽雨沉风: Duel.RegisterEffect(h3, 0)
951ea1b58f 2024-02-13 顽雨沉风: end
951ea1b58f 2024-02-13 顽雨沉风: end
d1652d7fa4 2024-02-13 顽雨沉风: fun["一_是否效果牌"] = function(card)
d1652d7fa4 2024-02-13 顽雨沉风: for i = 1, #str["效果牌的种类表"] do
d1652d7fa4 2024-02-13 顽雨沉风: if Card.IsType(card, str["效果牌的种类表"][i]) then
46bd1a8cd5 2024-02-13 顽雨沉风: return true
46bd1a8cd5 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: if Card.IsType(card, TYPE_PENDULUM) then
46bd1a8cd5 2024-02-13 顽雨沉风: for i = 1, #str["无效果灵摆怪兽表"] do
46bd1a8cd5 2024-02-13 顽雨沉风: if Card.IsCode(card, str["无效果灵摆怪兽表"][i]) then
46bd1a8cd5 2024-02-13 顽雨沉风: else
46bd1a8cd5 2024-02-13 顽雨沉风: return true
46bd1a8cd5 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: end
f56b114da9 2024-02-13 顽雨沉风: end
d1652d7fa4 2024-02-13 顽雨沉风: function s["开局选牌入手"](u1)
a6c06c688b 2024-02-13 顽雨沉风: local h1, h2
d1652d7fa4 2024-02-13 顽雨沉风: str["开局选牌入手之数"] = u1
a6c06c688b 2024-02-13 顽雨沉风: --~ 效果
a6c06c688b 2024-02-13 顽雨沉风: h1 = Effect.GlobalEffect()
a6c06c688b 2024-02-13 顽雨沉风: h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
a6c06c688b 2024-02-13 顽雨沉风: h1:SetCode(EVENT_ADJUST)
a6c06c688b 2024-02-13 顽雨沉风: h1:SetCondition(aux.TRUE)
a6c06c688b 2024-02-13 顽雨沉风: --~ 调该效果的效果
a6c06c688b 2024-02-13 顽雨沉风: --~ 调该效果的玩家
a6c06c688b 2024-02-13 顽雨沉风: function h2(u2, u3)
a6c06c688b 2024-02-13 顽雨沉风: local h3
d1652d7fa4 2024-02-13 顽雨沉风: --~ 玩家选定的牌
a6c06c688b 2024-02-13 顽雨沉风: h3 = Duel.SelectMatchingCard(u3, Card.IsAbleToHand, u3, LOCATION_DECK, 0, u1, u1, nil)
a6c06c688b 2024-02-13 顽雨沉风: Duel.SendtoHand(h3, nil, REASON_RULE)
a6c06c688b 2024-02-13 顽雨沉风: u2:Reset()
a6c06c688b 2024-02-13 顽雨沉风: end
a6c06c688b 2024-02-13 顽雨沉风: h1:SetOperation(h2)
a6c06c688b 2024-02-13 顽雨沉风: Duel.RegisterEffect(h1, 0)
a6c06c688b 2024-02-13 顽雨沉风: end
fbb83a06ea 2024-02-13 顽雨沉风: function s["禁格"](u1)
f7d8ee14bc 2024-02-13 顽雨沉风: local h1
f7d8ee14bc 2024-02-13 顽雨沉风: s["禁格之数"] = u1
af6ca14c70 2024-02-13 顽雨沉风: --~ 效果
af6ca14c70 2024-02-13 顽雨沉风: h1 = Effect.GlobalEffect()
af6ca14c70 2024-02-13 顽雨沉风: h1:SetCode(EFFECT_USE_EXTRA_MZONE)
af6ca14c70 2024-02-13 顽雨沉风: h1:SetValue(u1)
af6ca14c70 2024-02-13 顽雨沉风: Duel.RegisterEffect(h1, 0)
af6ca14c70 2024-02-13 顽雨沉风: end
155b00bc3f 2024-01-23 顽雨沉风: --第二层-------------------------------
e59d27b43b 2023-07-17 顽雨沉风: local cache_1
e59d27b43b 2023-07-17 顽雨沉风: local cache_2
e59d27b43b 2023-07-17 顽雨沉风: local cache_3
e59d27b43b 2023-07-17 顽雨沉风: local cache_4
e59d27b43b 2023-07-17 顽雨沉风: local cache_5
27cb01cd8e 2023-07-17 顽雨沉风: local cache_6
27cb01cd8e 2023-07-17 顽雨沉风: local cache_7
27cb01cd8e 2023-07-17 顽雨沉风: local cache_8
27cb01cd8e 2023-07-17 顽雨沉风: local cache_9
89674b235f 2023-08-02 顽雨沉风: local _
1301c8be40 2024-02-13 顽雨沉风: do
1301c8be40 2024-02-13 顽雨沉风: s["Debug.ReloadFieldEnd"] = _G.Debug.ReloadFieldEnd
d1652d7fa4 2024-02-13 顽雨沉风: --~ 开局洗牌抽牌之数
1301c8be40 2024-02-13 顽雨沉风: function _G.Debug.ReloadFieldEnd(u1)
1301c8be40 2024-02-13 顽雨沉风: s["Debug.ReloadFieldEnd"]()
1301c8be40 2024-02-13 顽雨沉风: if u1 then
d1652d7fa4 2024-02-13 顽雨沉风: s["开局洗牌抽牌"](u1)
1301c8be40 2024-02-13 顽雨沉风: end
0dd37b287e 2024-02-13 顽雨沉风: end
0dd37b287e 2024-02-13 顽雨沉风: end
d1652d7fa4 2024-02-13 顽雨沉风: fun["二_印牌"] = function(u1, u2, u3)
43ea8c8217 2024-02-13 顽雨沉风: u3 = u3 or u2
674765ddf2 2024-02-13 顽雨沉风: Debug.ShowHint(
d1652d7fa4 2024-02-13 顽雨沉风: "点击对方额外牌组可以进行印牌。\n手牌只能印 "
f56b114da9 2024-02-13 顽雨沉风: .. u2
674765ddf2 2024-02-13 顽雨沉风: .. " 张。\n最多可以印 "
04eb866260 2024-02-13 顽雨沉风: .. u3
674765ddf2 2024-02-13 顽雨沉风: .. " 张"
674765ddf2 2024-02-13 顽雨沉风: )
f56b114da9 2024-02-13 顽雨沉风: str["效果"] = Effect.CreateEffect(u1)
d1652d7fa4 2024-02-13 顽雨沉风: str["当前印牌数"] = 1
674765ddf2 2024-02-13 顽雨沉风: str["效果"]:SetType(EFFECT_TYPE_IGNITION)
674765ddf2 2024-02-13 顽雨沉风: str["效果"]:SetProperty(
674765ddf2 2024-02-13 顽雨沉风: EFFECT_FLAG_BOTH_SIDE + EFFECT_FLAG_UNCOPYABLE + EFFECT_FLAG_CANNOT_NEGATE + EFFECT_FLAG_CANNOT_DISABLE
674765ddf2 2024-02-13 顽雨沉风: )
674765ddf2 2024-02-13 顽雨沉风: str["效果"]:SetTarget(fun["一_该效果不能被连锁"])
674765ddf2 2024-02-13 顽雨沉风: str["效果"]:SetRange(LOCATION_EXTRA)
46bd1a8cd5 2024-02-13 顽雨沉风: function print_hand(effect_event, player_who_activate_the_effect)
674765ddf2 2024-02-13 顽雨沉风: announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
674765ddf2 2024-02-13 顽雨沉风: card = Duel.CreateToken(player_who_activate_the_effect, announce_card)
d1652d7fa4 2024-02-13 顽雨沉风: if str["当前印牌数"] <= u2 then
d1652d7fa4 2024-02-13 顽雨沉风: str["当前印牌数"] = str["当前印牌数"] + 1
674765ddf2 2024-02-13 顽雨沉风: Duel.SendtoHand(card, nil, REASON_RULE)
46bd1a8cd5 2024-02-13 顽雨沉风: else
d1652d7fa4 2024-02-13 顽雨沉风: if str["当前印牌数"] <= u3 then
d1652d7fa4 2024-02-13 顽雨沉风: str["当前印牌数"] = str["当前印牌数"] + 1
674765ddf2 2024-02-13 顽雨沉风: Duel.Remove(card, POS_FACEUP, REASON_RULE)
674765ddf2 2024-02-13 顽雨沉风: Duel.SendtoDeck(card, player_who_activate_the_effect, 0, REASON_RULE)
46bd1a8cd5 2024-02-13 顽雨沉风: else
d1652d7fa4 2024-02-13 顽雨沉风: Debug.ShowHint("印牌过多!")
674765ddf2 2024-02-13 顽雨沉风: effect_event:Reset()
46bd1a8cd5 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: end
674765ddf2 2024-02-13 顽雨沉风: str["效果"]:SetOperation(print_hand)
f56b114da9 2024-02-13 顽雨沉风: u1:RegisterEffect(str["效果"])
46bd1a8cd5 2024-02-13 顽雨沉风: end
46bd1a8cd5 2024-02-13 顽雨沉风: fun["二_开局说明"] = function()
ef7b6d6995 2024-02-14 顽雨沉风: local h1, h2, h3
ef7b6d6995 2024-02-14 顽雨沉风: --~ 此局的效牌数
ef7b6d6995 2024-02-14 顽雨沉风: h2 = Duel.GetMatchingGroupCount(fun["是否效果牌"], 0, s["全区"], s["全区"], nil)
ef7b6d6995 2024-02-14 顽雨沉风: --~ 超量材组
ef7b6d6995 2024-02-14 顽雨沉风: h3 = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE)
ef7b6d6995 2024-02-14 顽雨沉风: for u1 in aux.Next(h3) do
ef7b6d6995 2024-02-14 顽雨沉风: if fun["一_是否效果牌"](u1) then
ef7b6d6995 2024-02-14 顽雨沉风: h2 = h2 + 1
091f486d37 2024-02-13 顽雨沉风: end
091f486d37 2024-02-13 顽雨沉风: end
091f486d37 2024-02-13 顽雨沉风: --~ 开局说明
d1652d7fa4 2024-02-13 顽雨沉风: h1 = str["这个残局的效果牌数量"] .. "牌 " .. str["规则"]
719cb47a61 2024-02-13 顽雨沉风: if s["伪洗牌"] == 0 then
091f486d37 2024-02-13 顽雨沉风: else
091f486d37 2024-02-13 顽雨沉风: h1 = h1 .. "伪洗牌 "
091f486d37 2024-02-13 顽雨沉风: end
719cb47a61 2024-02-13 顽雨沉风: if s["战段"] == 0 then
719cb47a61 2024-02-13 顽雨沉风: h1 = h1 .. "无战段 "
d1652d7fa4 2024-02-13 顽雨沉风: end
ef7b6d6995 2024-02-14 顽雨沉风: if s["机智"] == 0 then
ef7b6d6995 2024-02-14 顽雨沉风: h1 = h1 .. "无机智 "
d1652d7fa4 2024-02-13 顽雨沉风: end
d1652d7fa4 2024-02-13 顽雨沉风: if s["开局选牌入手之数"] then
d1652d7fa4 2024-02-13 顽雨沉风: h1 = h1 .. "选" .. s["开局选牌入手之数"] .. "牌 "
f7d8ee14bc 2024-02-13 顽雨沉风: end
f7d8ee14bc 2024-02-13 顽雨沉风: if s["禁格之数"] then
f7d8ee14bc 2024-02-13 顽雨沉风: h1 = h1 .. "禁" .. s["禁格之数"] .. "格 "
f7d8ee14bc 2024-02-13 顽雨沉风: end
d1652d7fa4 2024-02-13 顽雨沉风: if s["开局洗牌抽牌之数"] then
d1652d7fa4 2024-02-13 顽雨沉风: 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
d1652d7fa4 2024-02-13 顽雨沉风: --~ 开局选牌入手之数
1301c8be40 2024-02-13 顽雨沉风: --~ 禁格之数
1301c8be40 2024-02-13 顽雨沉风: function _G.aux.BeginPuzzle(u1, u2)
1301c8be40 2024-02-13 顽雨沉风: s["aux.BeginPuzzle"]()
1301c8be40 2024-02-13 顽雨沉风: if u1 then
d1652d7fa4 2024-02-13 顽雨沉风: s["开局选牌入手"](u1)
1301c8be40 2024-02-13 顽雨沉风: end
1301c8be40 2024-02-13 顽雨沉风: if u2 then
1301c8be40 2024-02-13 顽雨沉风: s["禁格"](u2)
1301c8be40 2024-02-13 顽雨沉风: end
1301c8be40 2024-02-13 顽雨沉风: fun["二_开局说明"]()
1301c8be40 2024-02-13 顽雨沉风: s["通关之邀"]()
1301c8be40 2024-02-13 顽雨沉风: end
1301c8be40 2024-02-13 顽雨沉风: end
091f486d37 2024-02-13 顽雨沉风: --兼容层-------------------------------
d1652d7fa4 2024-02-13 顽雨沉风: fun["印牌"] = fun["二_印牌"]
d1652d7fa4 2024-02-13 顽雨沉风: fun["开局添加手牌"] = s["开局选牌入手"]
d1652d7fa4 2024-02-13 顽雨沉风: fun["是否效果牌"] = fun["一_是否效果牌"]
fbb83a06ea 2024-02-13 顽雨沉风: fun["禁格"] = s["禁格"]
d1652d7fa4 2024-02-13 顽雨沉风: fun["随机抽牌"] = s["开局洗牌抽牌"]