I'm looking to make timed effects for channeled spells in JASS. Namely, a channeled dummy spell is activated or being channeled, which will fulfill a condition. The condition, when true, will cause something to happen every x seconds, until the spell is no longer being channelled, at which point the condition is false. I could do this with three regular triggers, but that would require a global variable.
So, how could this be done? And can local variable be passed from function to function in JASS?
So, how could this be done? And can local variable be passed from function to function in JASS?