TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Gemini monster help Mon May 12, 2014 12:48 am | |
| I'm basically just stumped as to how to have it check if it has been gemini summoned. I know that has to be put in the condition, but, that's currently being reserved for a special summon condition. - Code:
- Code:
-
function c60000006.initial_effect(c) aux.EnableDualAttribute(c) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_LEAVE_FIELD) e1:SetCondition(c60000006.spcon) e1:SetTarget(c60000006.sptg) e1:SetOperation(c60000006.spop) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(60000006,0)) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetCategory(CATEGORY_DESTROY) e2:SetRange(LOCATION_MZONE) e2:SetCondition(aux.IsDualState) e2:SetTarget(c60000006.destg) e2:SetOperation(c60000006.desop) c:RegisterEffect(e2) end function c60000006.spcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() return c:IsPreviousPosition(POS_FACEUP) and not c:IsLocation(LOCATION_DECK) end function c60000006.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) end function c60000006.spfilter(c,e,tp) return c:IsCode(60000007) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function c60000006.spop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstMatchingCard(c60000006.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,nil,e,tp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end end function c60000006.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsDestructable() end Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler(),1,0,0) end function c60000006.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end
Right now, the problem is that if that card is removed from the field (without having been gemini summoned), I still get the special summon. The 60000007 is on purpose btw. It's to summon another card which happens to be the next card in my list. |
|
StormWing0
Member Title : Over Creative Card Ideas Posts : 451 Join date : 2013-07-14 Age : 32 Location : Tacoma, WA
| Subject: Re: Gemini monster help Mon May 12, 2014 2:48 am | |
| Why not have a look at some of the Gemini cards and see what they got? |
|
TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Re: Gemini monster help Mon May 12, 2014 4:06 am | |
| Well I did copy local c=e:GetHandler() if not c:IsDualState() then return false end from skelesaurus and removed the existing get handler just now, but now I don't get the summon at all. I'll be trying other variations and checking out other gemini monsters with more than one ability. |
|
Sponsored content
| Subject: Re: Gemini monster help | |
| |
|