- Joined
- Feb 20, 2020
- Messages
- 220
The problem with this one is, sometimes it doesnt revive all the monster the player have... :
-
Healing and Reviving
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Heal Monsters
-
-
Actions
-
Set VariableSet TempPlayer = (Owner of (Hero manipulating item))
-
Set VariableSet PNRES = (Player number of TempPlayer)
-
-------- --------
-
Set VariableSet TempPoint = (Position of (Hero manipulating item))
-
Special Effect - Create a special effect at TempPoint using Abilities\Spells\NightElf\MoonWell\MoonWellCasterArt.mdl
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Set VariableSet Delayed_Duration = 2.00
-
Trigger - Run Delayed Destroy Effect <gen> (ignoring conditions)
-
-------- --------
-
Set VariableSet MonsterOutsideBall[PNRES] = 0
-
Set VariableSet TempGroup = (Units owned by TempPlayer.)
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet ChosenMonster = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of ChosenMonster) Not equal to Tamer
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(ChosenMonster is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet TempPoint = (Center of Player_Region[PNRES])
-
Hero - Instantly revive ChosenMonster at TempPoint, Hide revival graphics
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Unit - Set life of ChosenMonster to 100.00%
-
Unit - Set mana of ChosenMonster to 100.00%
-
-
Else - Actions
-
Unit - Set life of ChosenMonster to 100.00%
-
Unit - Set mana of ChosenMonster to 100.00%
-
-
-
-
Else - Actions
-
-
-------- --------
-
-------- Move Chosen Monster --------
-
-
-
Custom script: call DestroyGroup (udg_TempGroup)
-
-