I've made a trigger to my map where a boss throws a debuff on a random player and after 5 seconds a unit will spawn called Desecration. Any unit that gets close to Desecration takes 1000 damage each second, and so far it works.
Here's the triggers:
The problem is however that this trigger happens every 15 seconds, repeating with a new Desecration spawning. The problem is that the old version of the unit doesn't damage a player unit that gets close, the variable has jumped over to the next unit. I've played around with integers and arrays but none seems to work properly, do you know what kind of variable I can use? I might also add that this trigger will keep going until a wipe, or the boss is dead, so it's infinate how many that can spawn.
Here's the triggers:
-
Prime Matron Desecration
-
Events
- Time - Every 10.00 seconds of game time
-
Conditions
- (Matron_of_the_Dead is alive) Equal to True
-
Actions
- Game - Display to (All players) for 3.00 seconds the text: |cffff0000Prime Mat...
- Set Prime_Matron_Desecration_Targe = (Random unit from Heroes)
- Trigger - Turn on Matron Sisters Floating Text <gen>
- Floating Text - Create floating text that reads |cffff0000Desecrati... above Prime_Matron_Desecration_Targe with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Set Matron_of_Suffering_Text[3] = (Last created floating text)
- Wait 5.00 seconds
- Trigger - Turn on Prime Matron Desecration Damage <gen>
- Unit - Create 1 Desecration for Neutral Passive at (Position of Prime_Matron_Desecration_Targe) facing Default building facing degrees
- Set Prime_Matron_Desecration = (Last created unit)
- Floating Text - Destroy Matron_of_Suffering_Text[3]
- Trigger - Turn off Matron Sisters Floating Text <gen>
-
Events
-
Prime Matron Desecration Damage
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units within 200.00 of (Position of Prime_Matron_Desecration)) and do (Actions)
-
Loop - Actions
- Unit - Cause Matron of Suffering 0042 <gen> to damage (Picked unit), dealing 1000.00 damage of attack type Spells and damage type Normal
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 200.00 of (Position of Prime_Matron_Desecration)) and do (Actions)
-
Events
Last edited by a moderator: