[Solved] AoE Trigger wants a target
Hello!
I looked at your different forums and got a bit confused if it was actually here or the other forum I had to post this...I already made a trigger that doesn't work. So I suppose it's here?
It's an AoE spell called Final Resort. Upon use it will reduce the casting units health to 1 and in return kill every single unit on a region called battlefield owned by an opposing player. You do not need to target anything it's just a one-press button that will spread mass destruction.
Back in the day I was pretty good at this stuff but it's been so long so I am rusty. I tried doing it with a dummy method but that seems to just crash the game when you increase the range it affects. The spell is based on Flame Strike that you get from Hero units.
So to cut it down:
It shouldn't ask for a target when used.
It should affect the entire region that I specified without problems.
Here is the trigger:
[TRIGGER=Final Resort]Final Resort
Events
Unit - MyUnit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Final Resort
Actions
Unit - Remove Final Resort from MyUnit
Unit - Set life of (Triggering unit) to 1.00
Unit Group - Pick every unit in (Units in Battlefield <gen> owned by Player 2(Blue)) and do (Actions)
Loop - Actions
Unit - Create 1 Dummy(Red) for (Owner of (Triggering Unit)) at (Position of (Picked unit)) facing (Random point in Battlefield <gen>)
Unit - Add Final Resort to (Last created unit)
Unit - Order (Last created unit) to Neutral - Kaboom! (Picked unit)
Unit -Add a 1.50 second Generic expiration timer to (Last created unit)[/TRIGGER]
Help greatly appreciated!
Hello!
I looked at your different forums and got a bit confused if it was actually here or the other forum I had to post this...I already made a trigger that doesn't work. So I suppose it's here?
It's an AoE spell called Final Resort. Upon use it will reduce the casting units health to 1 and in return kill every single unit on a region called battlefield owned by an opposing player. You do not need to target anything it's just a one-press button that will spread mass destruction.
Back in the day I was pretty good at this stuff but it's been so long so I am rusty. I tried doing it with a dummy method but that seems to just crash the game when you increase the range it affects. The spell is based on Flame Strike that you get from Hero units.
So to cut it down:
It shouldn't ask for a target when used.
It should affect the entire region that I specified without problems.
Here is the trigger:
[TRIGGER=Final Resort]Final Resort
Events
Unit - MyUnit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Final Resort
Actions
Unit - Remove Final Resort from MyUnit
Unit - Set life of (Triggering unit) to 1.00
Unit Group - Pick every unit in (Units in Battlefield <gen> owned by Player 2(Blue)) and do (Actions)
Loop - Actions
Unit - Create 1 Dummy(Red) for (Owner of (Triggering Unit)) at (Position of (Picked unit)) facing (Random point in Battlefield <gen>)
Unit - Add Final Resort to (Last created unit)
Unit - Order (Last created unit) to Neutral - Kaboom! (Picked unit)
Unit -Add a 1.50 second Generic expiration timer to (Last created unit)[/TRIGGER]
Help greatly appreciated!
Last edited:























