Im trying to trigger a passive that does stuff whenever spells are cast, ONLY if the hero has already learned one of its abilities
the problem im having is that current level of ability for unit == 1, returns false when the ability is level 1 (i guess its checking the level index? which first level is technically 0)
however, if i say current level of ability for unit == 0, it also runs when the unit hasnt learnt the ability yet.
you can have one-shot triggers that set the custum value 1-5 for the abilities 1-5 from 0 to 1 (using the learn ability as trigger event). so when a spell is cast , you check the custom values from 1-5 if one of them is 1.
Im trying to trigger a passive that does stuff whenever spells are cast, ONLY if the hero has already learned one of its abilities
the problem im having is that current level of ability for unit == 1, returns false when the ability is level 1 (i guess its checking the level index? which first level is technically 0) however, if i say current level of ability for unit == 0, it also runs when the unit hasnt learnt the ability yet.
is there anyway around that?
@Grasshopper721: Go
you could try making a requirement that only lets you use the passive if the ability has been learned.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
@Grasshopper721: Go
you can have one-shot triggers that set the custum value 1-5 for the abilities 1-5 from 0 to 1 (using the learn ability as trigger event). so when a spell is cast , you check the custom values from 1-5 if one of them is 1.