• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Respawn TRigger Help/Request

Status
Not open for further replies.
Level 2
Joined
Aug 26, 2008
Messages
15
Well. I didnt find anything anywhere but Here is my problem
It wont work...Can't figure out why. Take a lookie.

When hero build/uses the item Conquest hall(make castle item) and build the hall it sets the rez point at the hall. when a hero dies after 45 seconds it should revive full health and mana. It doesn't.
Code:
Intial Respawn
    Events
        Unit - A unit owned by Player 9 (Gray) Finishes construction
    Conditions
        (Unit-type of (Constructed structure)) Equal to Conquest Hall
    Actions
        Set WuRespawn = (Position of (Constructed structure))
Then This comes in
Code:
Wu Respawn 
    Events
        Unit - A unit owned by Player 10 (Light Blue) Dies
    Conditions
    Actions
        Game - Display to (All players) the text: A Hero Has Died. He...
        Wait 45.00 seconds
        Hero - Instantly revive (Revivable Hero) at WuRespawn, Show revival graphics
Yeah, Sooo??

Oh...Btw, that is the one i made lol...Here is the orig.
Code:
Wu Respawn
    Events
        Unit - A unit Dies
    Conditions
        (((Triggering unit) is A Hero) Equal to True) and ((Owner of (Dying unit)) Equal to (Random player from Wu))
    Actions
        Wait 45.00 seconds
        Hero - Instantly revive (Dying unit) at WuRespawn, Hide revival graphics
And this xD
Code:
Player Groups
    Events
        Map initialization
    Conditions
    Actions
        Set Wei = (All allies of Player 1 (Red))
        Set Shu = (All allies of Player 5 (Yellow))
        Set Wu = (All allies of Player 9 (Gray))
THANK YOU!! it would help amazingly.
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
1) If you want to revive a hero u need to add that condition:
Conditions
(((Triggering unit) is A Hero) Equal to True) and ((Owner of (Dying unit)) Equal to (Random player from Wu))
To check if it's a hero that gets killed or else it will run everytime a unit dies.
That will make your map more laggy I think. xD

2) This is your problem:
Hero - Instantly revive (Revivable Hero)
needs to be
Hero - Instantly revive (Dying unit)

Because the event is: A unit dies. Get it? ^^
 
Last edited:
Level 6
Joined
May 3, 2007
Messages
199
And I doubt it would really work unless variables are involved since you are using wait in your revive triggers. I think you need to run a variable for each player for their heroes. So that when other heroes die around the same time, it doesn't mess up the loop.
 
Level 2
Joined
Aug 26, 2008
Messages
15
Umm,See the peon in front of my Name, I didn't know that. besides, there are tons of sections here ans lots lead to the same exact section. Its a bid deal a moderator will approve it.

And, There is a variable.
Sence you know its DW and Snce you wrote my the first scrpit for it.
Its WEi, Wu, and Shu(All seperate of course) Repsawns.

Its raelly not working to well xD
 
Status
Not open for further replies.
Top