Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -337,10 +337,89 @@ local cache_7 local cache_8 local cache_9 local _ + +fun["印卡"] = function(str_1, str_2, str_3) --{ + + if str_3 then --{ + + --} + + else --{ + + str_3 = str_2 + + end --} + + Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 " + .. str_2 + .. " 张。\n最多可以印 " + .. str_3 + .. " 张") + + str["效果"] = Effect.CreateEffect(str_1) + + str["当前印卡数"] = 1 + + str["效果"]:SetType(EFFECT_TYPE_IGNITION) + + str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE + + EFFECT_FLAG_UNCOPYABLE + + EFFECT_FLAG_CANNOT_NEGATE + + EFFECT_FLAG_CANNOT_DISABLE) + + str["效果"]:SetTarget(fun["一_该效果不能被连锁"]) + + str["效果"]:SetRange(LOCATION_EXTRA) + + function print_hand(effect_event + , player_who_activate_the_effect) --{ + + announce_card = Duel.AnnounceCard(player_who_activate_the_effect) + + card = Duel.CreateToken(player_who_activate_the_effect + , announce_card) + + if str["当前印卡数"] <= str_2 then --{ + + str["当前印卡数"] = str["当前印卡数"] + 1 + + Duel.SendtoHand(card,nil,REASON_RULE) + + --} + + else --{ + + if str["当前印卡数"] <= str_3 then --{ + + str["当前印卡数"] = str["当前印卡数"] + 1 + + Duel.Remove(card,POS_FACEUP,REASON_RULE) + + Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE) + + --} + + else --{ + + Debug.ShowHint("印卡过多!") + + effect_event:Reset() + + end --} + + end --} + + end --} + + str["效果"]:SetOperation(print_hand) + + str_1:RegisterEffect(str["效果"]) + + end --} fun["二_开局说明"] = function() --{ str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"] , 0 @@ -502,88 +581,11 @@ -fun["印卡"] = function(str_1, str_2, str_3) --{ - - if str_3 then --{ - - --} - - else --{ - - str_3 = str_2 - - end --} - - Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 " - .. str_2 - .. " 张。\n最多可以印 " - .. str_3 - .. " 张") - - str["效果"] = Effect.CreateEffect(str_1) - - str["当前印卡数"] = 1 - - str["效果"]:SetType(EFFECT_TYPE_IGNITION) - - str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE - + EFFECT_FLAG_UNCOPYABLE - + EFFECT_FLAG_CANNOT_NEGATE - + EFFECT_FLAG_CANNOT_DISABLE) - - str["效果"]:SetTarget(fun["该效果不能被连锁"]) - - str["效果"]:SetRange(LOCATION_EXTRA) - - function print_hand(effect_event - , player_who_activate_the_effect) --{ - - announce_card = Duel.AnnounceCard(player_who_activate_the_effect) - - card = Duel.CreateToken(player_who_activate_the_effect - , announce_card) - - if str["当前印卡数"] <= str_2 then --{ - - str["当前印卡数"] = str["当前印卡数"] + 1 - - Duel.SendtoHand(card,nil,REASON_RULE) - - --} - - else --{ - - if str["当前印卡数"] <= str_3 then --{ - - str["当前印卡数"] = str["当前印卡数"] + 1 - - Duel.Remove(card,POS_FACEUP,REASON_RULE) - - Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE) - - --} - - else --{ - - Debug.ShowHint("印卡过多!") - - effect_event:Reset() - - end --} - - end --} - - end --} - - str["效果"]:SetOperation(print_hand) - - str_1:RegisterEffect(str["效果"]) - - end --} +