RangerX
I am justice!
- Reaction score
- 69
ok i need an event and an condition for a spell .. i need some actions to run after my hero have been revived by Reincarnation i will post my current trigger that for some reason don't work how i want :|
Trigger:
- Reincarnation
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Reincarnation
- Actions
- Set Temp_Point[2] = (Position of (Triggering unit))
- Set Group[2] = (Units within 500.00 of Temp_Point[1] matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)) and (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)))
- Set Integer = 0
- Unit Group - Pick every unit in Group[2] and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Integer Less than or equal to 5
- Then - Actions
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temp_Point[2] facing Default building facing degrees
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Add Acid Bomb to (Last created unit)
- Unit - Set level of Acid Bomb for (Last created unit) to (Level of Reincarnation for (Triggering unit))
- Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb (Triggering unit)
- Set Integer = (Integer + 1)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Custom script: call RemoveLocation (udg_Temp_Point[2])
- Custom script: call DestroyGroup (udg_Group[2])
- Set Integer = 0
- Events