• 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.

Hero Revive Error

Status
Not open for further replies.
Level 7
Joined
Jan 22, 2013
Messages
293
I'm on the case.
However I can not read a single line of triggers on your youtube. Unfortunate youtube video.

Please post the trigger.
 
Level 8
Joined
Jul 18, 2012
Messages
136
post triggers or upload map

No way im not uploading map! i can post triggers only!
  • Revive Heroes
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • -------- Revives a hero after X seconds --------
      • Custom script: local unit u = GetTriggerUnit()
      • Custom script: local integer p = GetPlayerId(GetTriggerPlayer())
      • Wait 5.00 seconds
      • Custom script: call ReviveHeroLoc(u, udg_ReviveLoc, true)
      • Custom script: call PanCameraToTimedLocForPlayer(Player(p), udg_ReviveLoc, 0.)
      • Custom script: call SelectUnitForPlayerSingle(u, Player(p))
      • Custom script: set u = null
 
Level 7
Joined
Jan 22, 2013
Messages
293
No way im not uploading map! i can post triggers only!
  • Revive Heroes
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • -------- Revives a hero after X seconds --------
      • Custom script: local unit u = GetTriggerUnit()
      • Custom script: local integer p = GetPlayerId(GetTriggerPlayer())
      • Wait 5.00 seconds
      • Custom script: call ReviveHeroLoc(u, udg_ReviveLoc, true)
      • Custom script: call PanCameraToTimedLocForPlayer(Player(p), udg_ReviveLoc, 0.)
      • Custom script: call SelectUnitForPlayerSingle(u, Player(p))
      • Custom script: set u = null

can u explain what is happening. also it may be that ur reviveLoc is getting overwritten by another trigger. lol and theres no big deal about uploading map

Death I'm hopeing you can help him with this one. This trigger looks simple, its clearly needed for MUI and hes trying to grab then give every unit that is a hero individual 5 second respawn delays. Truly He should be using Timers ^_^


Well I see several problems, unfortunately I'm not going to touch that coding.

Some Problems:
1. Custom script: call ReviveHeroLoc(u, udg_ReviveLoc, true) Where the hell is the "set ReviveLoc" ?
2. Your Wait 5 seconds means if someone elses hero dies around the same time it will overlap the other person who had a hero die. So That's kinda a issue when you do get it to work lol.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Some Problems:
1. Custom script: call ReviveHeroLoc(u, udg_ReviveLoc, true) Where the hell is the "set ReviveLoc" ?
2. Your Wait 5 seconds means if someone elses hero dies around the same time it will overlap the other person who had a hero die. So That's kinda a issue when you do get it to work lol.
1) Don't worry: that variable's set correctly. In the video, you also see that the camera changes position. It also uses ReviveLoc, meaning that the variable is correct.
2) Local variables...

I should add: this works when I test it, but it doesn't for him and his friend (and maybe for other people as well).
The only differences I can spot, is that he might be using a protected version and Garena, while I used the unprotected version and just... regular Warcraft, no stupid stuff. I've never heard of those breaking a game, though (as long as the protection is done correctly :p).

Edit:
Truly He should be using Timers ^_^
Nah.
 
Level 7
Joined
Jan 22, 2013
Messages
293
1) Don't worry: that variable's set correctly. In the video, you also see that the camera changes position. It also uses ReviveLoc, meaning that the variable is correct.
2) Local variables...

I should add: this works when I test it, but it doesn't for him and his friend (and maybe for other people as well).
The only differences I can spot, is that he might be using a protected version and Garena, while I used the unprotected version and just... regular Warcraft, no stupid stuff. I've never heard of those breaking a game, though (as long as the protection is done correctly :p).

Edit:

Nah.

Local is alien to me <_>, I prefer Forign
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Next time, instead of posting video, you should tell us (via text) because not all people have the privilege to stream a video on youtube with a speed of light.

Also, @Orthane, you should be learning local variable as it is essential if you're gonna master coding (GUI or vJASS).
 
Status
Not open for further replies.
Top