- Joined
- Nov 4, 2006
- Messages
- 1,241
Hi guys,
i have some problem with the following trigger. it works in general, but even though i always have 4 lightning ghosts, sometimes it does nothing, sometimes it casts 4 times, sometimes 3, 2 or 1 time, even though it fires 4 times (text is displayed).
I can't really narrow down the problem. i also tried using only 1 caster with a zero cooldown ability and let him cast, but the result is exactly the same.
Anyone sees a problem with this?
Edit: the dummy unit is based of locust, with disabled attack and added invulnerability
i have some problem with the following trigger. it works in general, but even though i always have 4 lightning ghosts, sometimes it does nothing, sometimes it casts 4 times, sometimes 3, 2 or 1 time, even though it fires 4 times (text is displayed).
I can't really narrow down the problem. i also tried using only 1 caster with a zero cooldown ability and let him cast, but the result is exactly the same.
Anyone sees a problem with this?
Edit: the dummy unit is based of locust, with disabled attack and added invulnerability
-
Forked Lightning
-

Events
-


Unit - A unit Starts the Effect of an ability
-
-

Conditions
-


(Number of units in (Units owned by (Owner of (Triggering unit)) of type Lightning Ghost)) greater or equal to 1
-


(Ability being cast) equal to Forked Lightning (Elemental Mage)
-
-

Actions
-


Set dummyinteger = (Number of units in (Units owned by (Owner of (Triggering unit)) of type Lightning Ghost))
-


Set lightningtarget = (Position of (Target unit of ability being cast))
-


For each (Integer A) from 1 to dummyinteger, do (Actions)
-



Loop - Actions
-




Wait 0.70 game-time seconds
-




Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at lightningtarget facing ...
-




Set lightningdummy = (Last created unit)
-




Unit - Add Forked lightning (Elemental Mage - dummy) to lightningdummy
-




Einheit - Set level of Forked lightning (Elemental Mage - dummy) for lightningdummy to (Level of Forked lightning (Elemental Mage) for (Triggering unit))
-




Unit - Add a 1.50 second Standard expiration timer to lightningdummy
-




Unit - Order lightningdummy to Neutral Naga-Seewitch - 'forked lightning' (Random unit from (Units in (Region centered at lightningtarget with size (700.00, 700.00))))
-




Game - Display to (All players) the text: test
-
-
-
-
Last edited:



