Hi,
I have the following issues with unit groups (simplified examples):
Why is this and how can I work around this?
For more context, I am trying to make a charge spell. Initially I was using a dummy thunder bolt to stun the caster with a custom buff, and checked Units in Playable Map Area that match condition Matching unit has Buff CustomBuff. This worked, however I wanted to "drag along" units found along the way with a similar dummy thunder bolt spell and what I found was that it took too long to cast the spell, and my unit would collide and stop in said units instead of draggin them along. So I'm trying to rework the spell to use unit groups because unit groups are faster, but it seems there is a synchronization issue between the two triggers.
Any and all help greatly appreciated!
I have the following issues with unit groups (simplified examples):
-
SpellName Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to SpellName
-
-
Actions
-
Unit Group - Add (Triggering unit) to UnitGroupName
-
-
-
SpellName Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in UnitGroupName and do (Actions)
-
// Some action to the unit, does not matter what
-
-
-
Why is this and how can I work around this?
For more context, I am trying to make a charge spell. Initially I was using a dummy thunder bolt to stun the caster with a custom buff, and checked Units in Playable Map Area that match condition Matching unit has Buff CustomBuff. This worked, however I wanted to "drag along" units found along the way with a similar dummy thunder bolt spell and what I found was that it took too long to cast the spell, and my unit would collide and stop in said units instead of draggin them along. So I'm trying to rework the spell to use unit groups because unit groups are faster, but it seems there is a synchronization issue between the two triggers.
Any and all help greatly appreciated!
Last edited: