Hi! =)
I just made an ability which creates some dust around the caster and spawns a wurm after that.
It's somehow not working because I use a local variable for the loop (at least I guess that's why), but I have to do so, otherwise other triggers will surely stop this one from working correctly.
I also read somewhere that you can declare just one local variable in GUI. Is that true?
Ah, and please tell me if I got any memory leaks in this.
Triax
I just made an ability which creates some dust around the caster and spawns a wurm after that.
It's somehow not working because I use a local variable for the loop (at least I guess that's why), but I have to do so, otherwise other triggers will surely stop this one from working correctly.
I also read somewhere that you can declare just one local variable in GUI. Is that true?
Ah, and please tell me if I got any memory leaks in this.
-
Dune Worm
-
Events
- Unit - A unit starts the effect of an ability
-
Conditions
- (Ability being cast) Gleich Dune Worm
-
Actions
- Custom script: local location udg_Point
- Custom script: local integer udg_Integer
- Animation - Play (Triggering unit)'s spell animation
- Set Point = (Position of (Triggering unit))
-
For each (Integer Integer) from 1 to 20, do (Actions)
-
Loop - Actions
- Set Point_2 = (Point offset by 256.00 towards ((Real(Integer)) x 18.00) degrees)
- Special Effect - Create a special effect at Point_2 using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
- Special Effect - Destroy (Last created special effect)
- Set Integer_2 = Integer
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer_2 Gleich 20
- (Terrain pathing at Point_2 of type Begehbarkeit is off) Gleich False
- (Point_2 is blighted) Gleich False
-
Then - Actions
- Unit - Create 1 Dune Worm for (Owner of (Triggering unit)) at Point_2 facing Preset for buildings degrees
- Else - Actions
-
If - Conditions
- Point - Remove Point_2
- Wait 0.01 seconds
-
Loop - Actions
- Point - Remove Point
-
Events
Triax
Last edited: