Rez stone

Status
Not open for further replies.
Level 2
Joined
Jun 12, 2006
Messages
13
How do you make it so that when a hero eneters an area near a rez stone it glows and then the hero gets rezzed in that area? (Like in the Orc campaign in TFT)
 
This is how it is in campaign

Variable ResStone = unit

Code:
[b]Events[/b]
A unit comes within 128.00 of [i]Some of stones[/i]
[b]Conditions[/b]
((Triggering unit) is hero) == true
(Owner of (Triggering Unit)) == [i]required player[/i]
[b]Actions[/b]
Set ResStone = [i]Some of stones[/i]
Play ResStone's stand alternate animation
AddSpecialEffectTargetLoc(GetUnitLoc([i]Some of stones[/i]), Abilities\Spells\Items\BookOfRetraining\BookOfRetrainingCaster.mdl)  <--- Ask [b]Purple Poot[/b] to translate!  :lol: :lol:
Play ShimmeringPortalEntrance <gen> on Position of ResStone with 100% volume
A fragment of JASS code means that you have to create the special effect at position of stone

And then, if hero dies, you wait several seconds and revive him
Code:
Revive Dying unit instantly at position of ResStone, show revival graphics
That's only a noobish version, you can improve it if you want.
 
Status
Not open for further replies.
Back
Top