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
 
HomePortalLatest imagesSearchRegisterLog 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

cannot set spell / traps Empty
PostSubject: cannot set spell / traps   cannot set spell / traps Icon_minitimeWed 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
 

cannot set spell / traps

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

 Similar topics

-
» Pendulums and Spell Sanctuary
» Astral World - Field Spell
» Help with Number 4: Digital Spell Virus
» Entermate Circus Tent - Field Spell
» Soul Link quick play spell

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