Ultimate_Nova_X
2014-08-19T04:40:17Z
Does the order of which effect is scripted actually matter? As in if the effect in e1 and e2 were to switch, would that affect the card in any way?
elitalianoverde
2014-08-19T09:58:15Z
Originally Posted by: Ultimate_Nova_X 

Does the order of which effect is scripted actually matter? As in if the effect in e1 and e2 were to switch, would that affect the card in any way?



Nope, I had mine e2, e1, e5, e3, and e4 all the effects work. Same goes for the rest of the scripts (target, cond.,oper.) they can go any way you want.
Name's elitalianoverde#3887 on Discord. I make Zombies from time to time but now I make Bleach for 2021.
Vertex
2014-08-19T15:28:15Z
To clarify, e1; e2; e3; etc, are variables (which are created with the line "local name = some value"), not only does the order not matter, but what you name them also doesn't matter. For example,
this

function c76103675.initial_effect(c)
local gnome=Effect.CreateEffect(c)
gnome:SetType(EFFECT_TYPE_ACTIVATE)
gnome:SetCategory(CATEGORY_DAMAGE)
gnome:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
gnome:SetCode(EVENT_FREE_CHAIN)
gnome:SetTarget(c76103675.damtg)
gnome:SetOperation(c76103675.damop)
c:RegisterEffect(gnome)
is completely valid, so long as you use "gnome" in every place you would normally use "e1".
Pika Rizard
2014-08-22T07:17:08Z
Can you script this for me:"When this card leaves the field, banish it".
Michael Lawrence Dee
2014-08-22T07:23:31Z
Originally Posted by: Pika Rizard 

Can you script this for me:"When this card leaves the field, banish it".



Check Quillbolt Hedgehog or Mine Mole. Just copy the REDIRECT or something similar into your main function.
Now this is how I play:
Eps
  • Eps
  • Advanced Member
2014-08-22T13:03:06Z
The order only matters if you need to pass one effect variable as a parameter to another. This is sometimes done via setEffectFlag in the more complex scripts. You obviously cannot pass something that has yet to be created in memory.

However, in most scripts the individual effects tend to be independent of one another, so you can change their order around freely without affecting anything.
Users browsing this topic