H34DhUnT3r
Ultra Cool Member
- Reaction score
- 36
Hi,
This system makes a ghost at revival place and places a corpse at the dying position you have to walk to your corpse with the ghost to ressurect
(It's the same as the World of Warcraft Reviving system)
Hope that says enough anyways look at the map and if you see any problems or bugs or whatever lemme know
Codes:
Initialization
Hero Dies -> Ghost
Unit in range -> Ress
Greetings,
H34DhUnT3r[NL]
P.S. Yea i know that there are sytems of this, but whatever
This system makes a ghost at revival place and places a corpse at the dying position you have to walk to your corpse with the ghost to ressurect
(It's the same as the World of Warcraft Reviving system)
Hope that says enough anyways look at the map and if you see any problems or bugs or whatever lemme know
Codes:
Initialization
Code:
GhostInit
Events
Map initialization
Conditions
Actions
Set Heroes[1] = Demon Hunter
Set Heroes_Ghost[1] = Demon Hunter (Ghost)
Hero Dies -> Ghost
Code:
HeroDie
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Unit - Hide (Dying unit)
Set DyingUnit[(Player number of (Owner of (Dying unit)))] = (Dying unit)
Set DyingPos[(Player number of (Owner of (Dying unit)))] = (Position of (Dying unit))
Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at DyingPos[(Player number of (Owner of (Dying unit)))] facing (Facing of (Dying unit)) degrees
Unit - Change ownership of (Last created unit) to Neutral Passive and Retain color
Set Corpse[(Player number of (Owner of (Dying unit)))] = (Last created unit)
Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from DyingPos[(Player number of (Owner of (Dying unit)))] to a radius of 500.00
Animation - Play (Last created unit)'s death animation
Wait 10.00 seconds
Set RessPos = (Position of Circle of Power (medium) 0011 <gen>)
For each (Integer A) from 1 to 1, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Heroes[(Integer A)]
Then - Actions
Unit - Create 1 Heroes_Ghost[(Integer A)] for (Owner of (Dying unit)) at RessPos facing Default building facing degrees
Else - Actions
Set GhostForm[(Player number of (Owner of (Dying unit)))] = (Last created unit)
Selection - Clear selection for (Owner of (Dying unit))
Selection - Add GhostForm[(Player number of (Owner of (Dying unit)))] to selection for (Owner of (Dying unit))
Custom script: call RemoveLocation(udg_RessPos)
Camera - Apply Camera 001 <gen> for (Owner of (Dying unit)) over 0.00 seconds
Trigger - Add to HeroRess <gen> the event (Unit - A unit comes within 500.00 of DyingUnit[(Player number of (Owner of (Dying unit)))])
Unit in range -> Ress
Code:
HeroRess
Events
Conditions
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to GhostForm[(Integer A)]
Then - Actions
Set GhostPos = (Position of (Triggering unit))
Special Effect - Create a special effect at GhostPos using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Remove (Triggering unit) from the game
Hero - Instantly revive DyingUnit[(Integer A)] at GhostPos, Show revival graphics
Unit - Remove Corpse[(Integer A)] from the game
Custom script: call RemoveLocation(udg_GhostPos)
Else - Actions
Greetings,
H34DhUnT3r[NL]
P.S. Yea i know that there are sytems of this, but whatever