Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -46,11 +46,11 @@ else str["规则"] = str["规则表"][5] end fun["Debug.ReloadFieldBegin"](u1, u2) end -fun["一_随机抽卡"] = function(u1) +function s["开局随机抽卡"](u1) local h1, h2 str["随机抽卡的数量"] = u1 --~ 效果 h1 = Effect.GlobalEffect() h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) @@ -164,11 +164,11 @@ local _ fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd Debug.ReloadFieldEnd = function(u1) fun["Debug.ReloadFieldEnd"]() if u1 then - fun["一_随机抽卡"](u1) + s["开局随机抽卡"](u1) end end fun["二_印卡"] = function(u1, u2, u3) u3 = u3 or u2 Debug.ShowHint( @@ -205,40 +205,42 @@ end str["效果"]:SetOperation(print_hand) u1:RegisterEffect(str["效果"]) end fun["二_开局说明"] = function() + local h1 str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"], 0, str["所有区域"], str["所有区域"], nil) str["超量素材组"] = Duel.GetOverlayGroup(0, LOCATION_MZONE, LOCATION_MZONE) for k in aux.Next(str["超量素材组"]) do if fun["一_是否效果卡"](k) then str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1 + end end - end - str["开局说明"] = str["这个残局的效果卡数量"] .. "卡 " .. str["规则"] + --~ 开局说明 + h1 = str["这个残局的效果卡数量"] .. "卡 " .. str["规则"] if str["不洗牌"] == 0 then else - str["开局说明"] = str["开局说明"] .. "伪洗牌 " - end + h1 = h1 .. "伪洗牌 " + end if str["无BP"] == 0 then - str["开局说明"] = str["开局说明"] .. "无BP " - end + h1 = h1 .. "无BP " + end if str["无AI"] == 0 then - str["开局说明"] = str["开局说明"] .. "无AI " - end + h1 = h1 .. "无AI " + end if str["开局添加手卡"] then - str["开局说明"] = str["开局说明"] .. "选" .. str["开局添加手卡的数量"] .. "卡 " - end + h1 = h1 .. "选" .. str["开局添加手卡的数量"] .. "卡 " + end if str["禁格"] then - str["开局说明"] = str["开局说明"] .. "禁" .. str["禁格的数量"] .. "格 " - end + h1 = h1 .. "禁" .. str["禁格的数量"] .. "格 " + end if str["随机抽卡的数量"] then - str["开局说明"] = str["开局说明"] .. "抽" .. str["随机抽卡的数量"] .. "卡 " + h1 = h1 .. "抽" .. str["随机抽卡的数量"] .. "卡 " + end + Debug.ShowHint(h1) end - Debug.ShowHint(str["开局说明"]) -end fun["aux.BeginPuzzle"] = aux.BeginPuzzle aux.BeginPuzzle = function(u1, u2) fun["aux.BeginPuzzle"]() if u1 then fun["一_开局添加手卡"](u1) @@ -252,6 +254,6 @@ --兼容层------------------------------- fun["印卡"] = fun["二_印卡"] fun["开局添加手卡"] = fun["一_开局添加手卡"] fun["是否效果卡"] = fun["一_是否效果卡"] fun["禁格"] = fun["一_禁格"] -fun["随机抽卡"] = fun["一_随机抽卡"] +fun["随机抽卡"] = s["开局随机抽卡"]