a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | .
 

 cannot set spell / traps

View previous topic View next topic Go down 
AuthorMessage
HurahItsHerald




Member Title : HeraldIsHereHoney
Posts : 15
Join date : 2015-08-25

PostSubject: cannot set spell / traps   Wed Sep 23, 2015 7:41 pm

a small effect i need help with :

You cannot activate Spell/Trap Cards that are Set, also you cannot Set Spell/Trap Cards from your hand



, except with a card effect.



How do I add the "Except with a card effect" to its script ? Do I need a condition function; if so, how should it look like?


--cannot sset
    local e12=Effect.CreateEffect(c)
    e12:SetType(EFFECT_TYPE_FIELD)
    e12:SetCode(EFFECT_CANNOT_SSET)
    e12:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
    e12:SetRange(LOCATION_SZONE)
    e12:SetTargetRange(LOCATION_SZONE,0)
    e12:SetTarget(c70000.distg)
    c:RegisterEffect(e12)





function c70000.distg(e,c)
    return c:IsLocation(LOCATION_HAND)
end





Thanks in advance!
Back to top Go down
View user profile
 

cannot set spell / traps

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» are there Cards (spell/traps) with similar effect to mystical space typhoon
» Lesson 18: Spell/Trap Effects [Activate and Spell Speed]
» Trap Reactor Y FI and Spell Reactor RE
» equip spell/warrior combo
» Hammer of Sigmar Spell

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Requests-