BloodReaver
New Member
- Reaction score
- 2
Does anyone know how to make a ressurect ability for heros like in Impossible Bosses?
Deaths
Events
Unit - A unit Dies
Conditions
(Owner of (Triggering unit)) Not equal to Player 12 (Brown)
Actions
-------- Brown is enemy for my map --------
Set Alive[(Player number of (Owner of (Triggering unit)))] = False
Ressurect
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Animate Dead
Actions
-------- Replace your spell with animate dead --------
Dialog - Clear Rez
Dialog - Change the title of Rez to Ressurect Who?
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Alive[(Integer A)] Equal to False
Then - Actions
Dialog - Create a dialog button for Rez labelled (Name of (Player((Integer A))))
Set RezButton[(Integer A)] = (Last created dialog Button)
Else - Actions
Dialog - Show Rez for (Owner of (Triggering unit))
Rezing
Events
Dialog - A dialog button is clicked for Rez
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to RezButton[(Integer A)]
Then - Actions
Set Unit_Group = (Units owned by (Player(((Integer A) + 1))))
Unit Group - Pick every unit in Unit_Group and do (Actions)
Loop - Actions
Hero - Instantly revive (Picked unit) at (Position of (Triggering unit)), Show revival graphics
Custom script: call DestroyGroup (udg_Unit_Group)
Else - Actions