Warcraft III resources & community, 2003–2006 · archived

Rez stone

2 posts
#1

Rez stone

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)
#2
This is how it is in campaign

Variable ResStone = unit


[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

Revive Dying unit instantly at position of ResStone, show revival graphics

That's only a noobish version, you can improve it if you want.