TGAP-Trixie
Member Title : Trixie does not even... Posts : 273 Join date : 2014-04-17
| Subject: Zombie mlp support Thu Jun 19, 2014 11:48 pm | |
| So I've created some zombie-type support mlp cards, with continuous trigger and ignition effects in the GY. OFC, that just means lightsworn and anything that dumps monsters in the GY can abuse it. I'll provide a sample code for the one that I haven't finished scripting and the image should hopefully be large enough that I don't need to write the text. - Pic:
- Unfinished Code:
- Code:
-
function c60000108.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetRange(LOCATION_GRAVE) e1:SetCountLimit(1,60000108) e1:SetTarget(c60000108.target) e1:SetOperation(c60000108.operation) c:RegisterEffect(e1) end function c60000108.filter(c,e,tp) return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsHasEffect(EFFECT_NECRO_VALLEY) end function c60000108.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c60000108.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) end function c60000108.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,c60000108.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) if g:GetCount()>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end
In the code, I don't have the "Treat it as a zombie-type. Remove it from play when it is removed from the field" part yet. I also wanna give this one and the others the effect of "If this card is sent to the graveyard by your card effect, banish it" so they can't be abused by shaddolls, dark worlds, lightsworn, etc. |
|