Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -1,7 +1,6 @@ local str = {} -local math = math local string = string local table = table _G.fun = {} --------------------------------- local cache_1 @@ -57,23 +56,26 @@ str["规则"] = str["规则表"][5] end fun["Debug.ReloadFieldBegin"](u1, u2) end fun["一_随机抽卡"] = function(u1) + local h1, h2 str["随机抽卡的数量"] = u1 - str["效果"] = Effect.GlobalEffect() - str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - str["效果"]:SetCode(EVENT_ADJUST) - str["效果"]:SetCondition(aux.TRUE) - function cache_1(effect_event, player_who_activate_the_effect) + --~ 效果 + h1 = Effect.GlobalEffect() + h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) + h1:SetCode(EVENT_ADJUST) + h1:SetCondition(aux.TRUE) + --~ 随机抽卡 + function h2(effect_event) Duel.ShuffleDeck(0) Duel.Draw(0, u1, REASON_RULE) effect_event:Reset() + end + h1:SetOperation(h2) + Duel.RegisterEffect(h1, 0) end - str["效果"]:SetOperation(cache_1) - Duel.RegisterEffect(str["效果"], 0) -end fun["一_该效果不能被连锁"] = function() Duel.SetChainLimit(aux.FALSE) return true end fun["一_通关邀请"] = function() @@ -85,16 +87,14 @@ str["效果"]:SetCode(EVENT_DAMAGE) function cache_1() cache_1 = Duel.GetLP(1) if cache_1 <= 0 then if cache_1 == 0 then - else Debug.ShowHint(str["二解邀请"]) end Debug.ShowHint(str["原解邀请"]) - else return false end end str["效果"]:SetCondition(cache_1) @@ -139,17 +139,19 @@ end str["效果"]:SetOperation(cache_1) Duel.RegisterEffect(str["效果"], 0) end fun["一_禁格"] = function(u1) + local h1 str["禁格"] = true str["禁格的数量"] = u1 - str["效果"] = Effect.GlobalEffect() - str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE) - str["效果"]:SetValue(u1) - Duel.RegisterEffect(str["效果"], 0) -end + --~ 效果 + h1 = Effect.GlobalEffect() + h1:SetCode(EFFECT_USE_EXTRA_MZONE) + h1:SetValue(u1) + Duel.RegisterEffect(h1, 0) + end --第二层------------------------------- local cache_1 local cache_2 local cache_3 local cache_4