ohyoullfindout
2015-01-17T20:53:26Z
So i checked a lot of cards with similar restrictioncs, tried copy/paste/change and all that, but still can't get it done. My monster can special summon itself (from hand or grave) by revealing a "Bounzer" monster in my hand. Problem is that it would be hella broken if I could use the effect more than once a turn, I could basically loop rank 4s out of nowhere. So I want to add "you can only use this effect once per turn" clause to make it more balanced.

Here's the script without the once per turn clause:

Quote:

--Pet Bounzer
function c57108786.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(57108786,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetCost(c57108786.spcost)
e1:SetTarget(c57108786.sptg)
e1:SetOperation(c57108786.spop)
c:RegisterEffect(e1)
end
function c57108786.cffilter(c)
return c:IsSetCard(0x6B) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
end
function c57108786.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c57108786.cffilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,c57108786.cffilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp)
end
function c57108786.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c57108786.spop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end

Train#7
2015-01-18T18:55:27Z
Set a limit
example:
e1:SetCountLimit(1,xxxxxxx)
xxxxxxx=number of the card

e1:SetCountLimit(1,xxxxxxx) will have it that all same copy of cards can only use it once per turn

e1:SetCountLimit(1,) will be that each copy you can use it once per turn
ohyoullfindout
2015-01-20T20:31:27Z
Originally Posted by: Train#7 

Set a limit
example:
e1:SetCountLimit(1,xxxxxxx)
xxxxxxx=number of the card

e1:SetCountLimit(1,xxxxxxx) will have it that all same copy of cards can only use it once per turn

e1:SetCountLimit(1,) will be that each copy you can use it once per turn



It worked lol
To think it was something so simple, I just placed the SetCountLimit command under SetType,