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

The clock is being shown to all players.

Status
Not open for further replies.
Level 2
Joined
Mar 1, 2009
Messages
9
When a unit dies, the clock of how long it took for rebirth should show ONLY the owner of the trigger unit. But just showing all players. How can I solve this?

Thank you!
 
Level 2
Joined
Mar 1, 2009
Messages
9
This Tutorial will help you :)

Thank you brother! I read and understand, but I do not know how.

A unit dies

The unit is a hero - true

Display for all players "Reviver_Display"

Set Reviver_Display color = player killer player name matadir + + | + r + color pwnd player killed player name + dead + | r

Create a timer window for (last created timer window) with the text "The hero will respawn in ..."

Hide Last created timer window

Custom Script: set udg_Player GetLocalPlayer = ()

If / then / else

if
Equal to Player 1 Player

then
Show Last created multiboard


YES YES YES, but it will be only for player 1! And how to do when others die?

I'm not understand how to do this.

Please, help me brother!
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Display for all players "Reviver_Display"
No: hide it for all players.
Then show it for the local player only.

Something like this: (editor not open, I hope it'll work :p).
  • Hide "Reviver_Display"
  • Custom script: if GetLocalPlayer() == GetTriggerPlayer()
  • Show Reviver_Display
  • Custom script: endif
In case you're using a specific unit event (instead of a generic one), it should be "if GetLocalPlayer == GetOwningPlayer(GetTriggerUnit())".
 
Level 2
Joined
Mar 1, 2009
Messages
9
No: hide it for all players.
Then show it for the local player only.

Something like this: (editor not open, I hope it'll work :p).
  • Hide "Reviver_Display"
  • Custom script: if GetLocalPlayer() == GetTriggerPlayer()
  • Show Reviver_Display
  • Custom script: endif
In case you're using a specific unit event (instead of a generic one), it should be "if GetLocalPlayer == GetOwningPlayer(GetTriggerUnit())".


Please help me to do this from the beginning because I'm totally lost.

It is this: When a hero dies, the clock will appear showing how much time is left for him to revive. Equal in Hero Arena, or DotA. This clock will be shown ONLY to the player who had killed their hero.

I'm not able to do that. Teach me please, brother.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Player Death
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Countdown Timer - Start Timer as a One-shot timer that will expire in 15.00 seconds
      • Set Timer = (Last started timer)
      • Countdown Timer - Create a timer window for Timer with title Player Death
      • Set TimerWindow = (Last created timer window)
      • Countdown Timer - Hide TimerWindow
      • Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
      • Countdown Timer - Show TimerWindow
      • Custom script: endif
 
Level 2
Joined
Mar 1, 2009
Messages
9
  • player death
    • events
      • unit - a unit dies
    • conditions
    • actions
      • countdown timer - start timer as a one-shot timer that will expire in 15.00 seconds
      • set timer = (last started timer)
      • countdown timer - create a timer window for timer with title player death
      • set timerwindow = (last created timer window)
      • countdown timer - hide timerwindow
      • custom script: If getlocalplayer() == gettriggerplayer() then
      • countdown timer - show timerwindow
      • custom script: Endif


thanks!!
 
Status
Not open for further replies.
Top