Ok so this spell I am making, I am trying to make it MUI. What it does is this:
Caster casts it
A "storm" follows the caster around for 6 seconds and shoots a random bolt of lightning at the ground somewhere nearby every 0.16 seconds
I have it working in GUI, but it would only work one instance at a time. I am trying to make it MUI. My problem is this:
There is one trigger which assigns various GLOBAL VARIABLES when the spell is cast, and then turns on the periodic trigger.
The periodic trigger takes the globals and turns them into locals (so that the actual spell only uses global variables for a split second). The problem here is this trigger is "Every 0.16 seconds of game time" then "local unit C = udg_CASTER." This completely fucks up the reason for using locals, since the local will now change to the global every 0.16 seconds! Is there a way to assign locals in a trigger outside of the "every 0.16 seconds" event? Keep in mind, this trigger MUST fire bolts every 0.16 seconds, but the local variable nust not change every 0.16 seconds.
I have a really inefficient solution of having a separate, identical trigger and global arrays indexed to each player, but there must be some better way.
Caster casts it
A "storm" follows the caster around for 6 seconds and shoots a random bolt of lightning at the ground somewhere nearby every 0.16 seconds
I have it working in GUI, but it would only work one instance at a time. I am trying to make it MUI. My problem is this:
There is one trigger which assigns various GLOBAL VARIABLES when the spell is cast, and then turns on the periodic trigger.
The periodic trigger takes the globals and turns them into locals (so that the actual spell only uses global variables for a split second). The problem here is this trigger is "Every 0.16 seconds of game time" then "local unit C = udg_CASTER." This completely fucks up the reason for using locals, since the local will now change to the global every 0.16 seconds! Is there a way to assign locals in a trigger outside of the "every 0.16 seconds" event? Keep in mind, this trigger MUST fire bolts every 0.16 seconds, but the local variable nust not change every 0.16 seconds.
I have a really inefficient solution of having a separate, identical trigger and global arrays indexed to each player, but there must be some better way.