HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

unable to revive custom heroes at custom altars...

07-18-2003, 09:25 AM#1
birdfoot
hi guyz, been cracking over this problem for about 4 hrs now... *yawnz* so thought i seek out some expert advice... :P

i've created some custom heroes and a custom altar for their revival... i haven't got problem spawning the heroes from there though, but they just refused to revive... this was what i did:

event:
when a unit becomes revivable

actions:
order <altar> to revive hero <triggering unit>

the above doesn't work... i've tried storing the unit into a variable and then replacing <triggering unit> with it as well... doesn't work too... i've look over and over again at my custom units and buildings and made sure their revival prerequisites are intact but still unsuccessful... i did some debugging and set certain breakpoints before and after the action... seems to me like the action i have there isn't correct...

do let me know if you've any idea what's going on... thanks in advance! :D
07-18-2003, 10:29 AM#2
DragonZombie
Does your alter have revive hero? If so is the unit you are trying to make revive a hero?
07-18-2003, 01:17 PM#3
Fragmentation
make sure revive hero is on the altar

its listed under abilities/skills

for a trigger to spawn a dead hero you can use


Event - Unit dies

Condition - Unit = Hero

Action - Revive dying unit at (said region, you can make a region near the altar) and show/hide revival graphics


a hero dying then reviving it doesnt have to be so complicated for you to go make variables and such




though if this is some melee map or you are able to revive your own hero from this custom altar, revive hero is all you need on the altar to revive it yourself


EDIT : I just noticed something you put

"actions:
order <altar> to revive hero <triggering unit>"

see where it says triggering unit, change that to dying unit, if that doesnt work check to see if there is "revivable unit", dont remember if theres a trigger action revivable unit though


all in all if this doesnt work, just maybe AI is conflicting with you telling this altar to revive a hero, the altar may not be say that advanced (errrr dunno what I just said lol) so you basically should make it easy on yourself and use the first trigger example i laid out for u
07-18-2003, 05:59 PM#4
Method
Well, do you want the hero to instant revive? or do you want the player to have to issue the order to revive the hero?

1) Trigger Instant revive.
Events
Unit - A unit Becomes revivable
Conditions
((Triggering unit) is A Hero) Equal to True
((Triggering unit) is an illusion) Equal to False
Actions
Hero - Instantly revive (Triggering unit) at (Center of region <gen>), Show revival graphics

or

2) Go to the Object Editor. Look at the techtree part of your custom alter and make sure two things are checked.
Techtree-Revives Dead Heros: True
Techtree-Units Trained: "Your custom hero"

Method
07-18-2003, 10:24 PM#5
birdfoot
hi all,

thanks for the all input... all the above have been tried before... i have no problem with instant reviving... sorry ought to have made my point clear... :P i was trying to issue an order to the altar to revive the hero that just died...

all 'triggering unit', 'dying unit' and 'reviving hero' doesn't seem to work... i tried doing a string conversion to display the name of tat unit using the stated 3 properties and have no problem displaying their unit names though... im pretty sure 'triggering unit' and 'reviving hero' points to the unit tat i want the altar to revive....

the 2 fields in the altar have always been set to:
techtree - revives dead hero = true
techtree - units trained = <my custom heroes list>

in fact, i've also tried giving my player the altar, spawning the heroes and then getting them killed and reviving them... works out pretty alrite if done manually... dang i'm getting vexed... :P not many people seem to be having this problem eh?
07-19-2003, 03:02 AM#6
qmrcool
i rember seeing a field in the editor for eithet the hero or the alter but it said specificlly if the hero could revive at that alter. look around for that...
07-20-2003, 03:48 AM#7
birdfoot
hi qmrcool, ya referring to the "revival locations" field for the custom hero? it's been set to the altar... doesn't work still... very few people are having this problem... not sure if its because very few have the need for it... however, i read some threads in which a couple mentioned that the revive hero at altar thing may be a bug and is currently looked into by blizzard... not sure how true that is either... emote_sweat