Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -141,10 +141,50 @@ end --} return false end --} + +fun["一_开局添加手卡"] = function(str_1) --{ + + str["开局添加手卡的数量"] = str_1 + + 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) --{ + + str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect + , Card.IsAbleToHand + , player_who_activate_the_effect + , LOCATION_DECK + , 0 + , str_1 + , str_1 + , nil) + + Duel.SendtoHand(str["玩家选定的卡"] + , nil + , REASON_RULE) + + effect_event:Reset() + + end --} + + str["效果"]:SetOperation(cache_1) + + Duel.RegisterEffect(str["效果"] + , 0) + + end --} --第二层------------------------------- local cache_1 local cache_2 @@ -319,50 +359,10 @@ -fun["开局添加手卡"] = function(str_1) --{ - - str["开局添加手卡的数量"] = str_1 - - 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) --{ - - str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect - , Card.IsAbleToHand - , player_who_activate_the_effect - , LOCATION_DECK - , 0 - , str_1 - , str_1 - , nil) - - Duel.SendtoHand(str["玩家选定的卡"] - , nil - , REASON_RULE) - - effect_event:Reset() - - end --} - - str["效果"]:SetOperation(cache_1) - - Duel.RegisterEffect(str["效果"] - , 0) - - end --} - fun["禁格"] = function(str_1) --{ str["禁格的数量"] = str_1 str["效果"] = Effect.GlobalEffect()