Special Effect - Create a special effect attached to the origin of US_Unit using (Load US_ID of 4 from US_Hashtable)
Special Effect - Destroy (Last created special effect)
Unit - Make US_Unit Vulnerable
Unit - Unpause US_Unit
Unit - Set life of US_Unit to 100.00%
Unit - Set mana of US_Unit to 100.00%
Animation - Reset US_Unit's animation
Special Effect - Destroy (Load US_ID of 5 in US_Hashtable)
Set US_String = <Empty String>
Custom script: if udg_US_Player == GetLocalPlayer() then
Floating Text - Change text of (Load US_ID of 2 in US_HashtableIf the label is not found, this function returns NULL.) to US_String using font size US_BarSize
Floating Text - Change the position of (Load US_ID of 2 in US_HashtableIf the label is not found, this function returns NULL.) to US_Unit with Z offset -5.50
Custom script: endif
Unit Group - Remove US_Unit from US_DyingGroup
-------- ================ --------
Set US_Event = 2.00
Set US_Event = 0.00
+ HOW TO USE:
US Test Add Unit
Set US_Unit = Footman 0000 <gen>
Set US_ReviveTime = 5.00
Set US_SFX = Abilities\Spells\Orc\Reincarnation\ReincarnationTarget.mdl
Set US_SFX = Abilities\Spells\Other\Awaken\Awaken.mdl
Set US_ReviveLoc = (Center of (Playable map area))
Trigger - Run US Add Unit <gen> (checking conditions)
Game - US_Event becomes Equal to 1.00
-> When a unit die (fake dying)
Game - US_Event becomes Equal to 1.50
-> A Unit is in reviving time.
Game - US_Event becomes Equal to 2.00
-> A unit revive.
- Change almost code.
- Use SetUnitX(udg_unit, LoadReal(...)) and SetUnitY(udg_unit, LoadReal(...)) instead of create a location by loading the coordinates from the hashtable and passing them to Point(x, y).
- Run code before Set US_Event.
- Fix some minor codes.
+ Credit: Bribe (Damage Engine and GUI Unit Indexer)
It would be even nicer if user can edit things (easily) such as:
Percentage/amount of hitpoints the dead unit's animation has
percentage/amount of hp the unit has after its revived
But i can see uppoints of your system:
For voting, i give: 4.5 (Since there's no 4.5, i voted 4)
Thanks, it was useful for me