Hey again~
I have a trigger that spawns a dummy caster at targeted unit whenever a (Previous) dummy unit casts chain lightning, and then that dummy unit is ordered to cast chain lightning at a random unit around him, checking for enemy and and dead units. (Once the initial chain lighting is cast, an expiration timer is set on that unit)
The result is a near instant chain of lighting that infinitely loops until everything is dead... except its not actually infinite...?
It just randomly stops, and my dummy caster doesn't actually get issued an order to cast an ability. (Or maybe it does and targets something I'm not aware of?) and the strangest thing, if I cast it again, it may bounce one or two times, and thats it. It completely breaks, even when there are several units in range. The most times I have seen it chain is maybe 25 times, and then it stops and breaks!
Is it possible to create an infinite chain lighting? (At least until everything is dead anyways) is this a limitation or is there an oversight i need to be aware of?
Trigger Below:
I would love any input on this, it would be a key mechanic in a campaign I'm making if its possible. And if anyone would like a test map, just let me know and I'll arrange one for you guys to tinker with!
I have a trigger that spawns a dummy caster at targeted unit whenever a (Previous) dummy unit casts chain lightning, and then that dummy unit is ordered to cast chain lightning at a random unit around him, checking for enemy and and dead units. (Once the initial chain lighting is cast, an expiration timer is set on that unit)
The result is a near instant chain of lighting that infinitely loops until everything is dead... except its not actually infinite...?
It just randomly stops, and my dummy caster doesn't actually get issued an order to cast an ability. (Or maybe it does and targets something I'm not aware of?) and the strangest thing, if I cast it again, it may bounce one or two times, and thats it. It completely breaks, even when there are several units in range. The most times I have seen it chain is maybe 25 times, and then it stops and breaks!
Is it possible to create an infinite chain lighting? (At least until everything is dead anyways) is this a limitation or is there an oversight i need to be aware of?
Trigger Below:
-
cl2
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Instant Chain Lightning
-
Actions
- Set Dummy_Chain_Lightning_TARGET = (Target unit of ability being cast)
- Unit - Add a 0.02 second Generic expiration timer to (Triggering unit)
- Unit - Create 1 Dummy Caster for Player 1 (Red) at (Position of Dummy_Chain_Lightning_TARGET) facing (Facing of Dummy_Chain_Lightning_TARGET) degrees
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 50.00 damage of attack type Spells and damage type Normal
- Set Dummy_Chain_Lightning = (Last created unit)
- Unit Group - Pick every unit in (Units within 512.00 of (Position of Dummy_Chain_Lightning_TARGET)) and do (Unit Group - Add (Picked unit) to Tempgroup)
- Unit Group - Remove all units of (Units owned by Player 1 (Red)) from Tempgroup
-
Unit Group - Pick every unit in Tempgroup and do (Actions)
-
Loop - Actions
- If (((Picked unit) is dead) Equal to True) then do (Unit Group - Remove (Matching unit) from Tempgroup) else do (Do nothing)
-
Loop - Actions
- Unit - Order Dummy_Chain_Lightning to Orc Far Seer - Chain Lightning (Random unit from Tempgroup)
-
Events
I would love any input on this, it would be a key mechanic in a campaign I'm making if its possible. And if anyone would like a test map, just let me know and I'll arrange one for you guys to tinker with!
Last edited: