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

Avatar during Chemical Rage

Status
Not open for further replies.
Level 10
Joined
Mar 17, 2012
Messages
582
Hi there. I have a hero respawn trigger:

  • HeroBlue
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
      • (Owner of (Entering unit)) Equal to Player 2 (Blue)
    • Actions
      • Set Hero_Blue = (Entering unit)
      • Multiboard - Set the text for Statistics_Blue item in column 5, row 3 to (|cff0066ff + ((Name of Hero_Blue) + |r))
  • Die Blue
    • Events
      • Unit - A unit owned by Player 2 (Blue) Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Player - Add -250 to Player 2 (Blue) Current gold
      • Game - Display to (All players) the text: (((|cff0066ff + (Name of (Triggering unit))) + |r) + погибает Рё теряет 250 золота! Игроки команды противника получают Р·Р° это РїРѕ 100 золота!)
      • Player - Add 100 to Player 8 (Pink) Current gold
      • Player - Add 100 to Player 9 (Gray) Current gold
      • Player - Add 100 to Player 11 (Dark Green) Current gold
      • Player - Add 100 to Player 12 (Brown) Current gold
      • Wait 3.00 seconds
      • Game - Display to Player Group - Player 2 (Blue) the text: Your hero will resp...
      • Countdown Timer - Start Death_timer_blue as a One-shot timer that will expire in (20.00 + (2.00 x (Real((Level of (Dying unit)))))) seconds
      • Countdown Timer - Create a timer window for Death_timer_blue with title Respawn:
      • Set Timer_window_blue = (Last created timer window)
      • Countdown Timer - Change the color of the time for Timer_window_blue to (10.00%, 30.00%, 100.00%) with 0.00% transparency
      • Countdown Timer - Hide Timer_window_blue
      • Countdown Timer - Show Timer_window_blue for Player 2 (Blue)
      • Countdown Timer - Show Timer_window_blue for Player 6 (Orange)
      • Countdown Timer - Show Timer_window_blue for Player 5 (Yellow)
      • Countdown Timer - Show Timer_window_blue for Player 4 (Purple)
      • Wait (20.00 + (2.00 x (Real((Level of (Dying unit)))))) seconds
      • Countdown Timer - Destroy Timer_window_blue
      • Camera - Apply Resurection Blue Orange <gen> for Player 2 (Blue) over 0.00 seconds
      • Hero - Instantly revive (Dying unit) at (Center of Blue Orange <gen>), Show revival graphics
When a hero uses Chemical Rage spell and then uses "Avatar" based item and dies in that state - he doesn't respawn any more... What's tha problem how do you think?
 
Level 10
Joined
Mar 17, 2012
Messages
582
Its because the system is not MUI.
Try putting two units in the map then kill one and kill the other one later before it respawns.
You will notice that the unit that was earlier killed didn't respawn

Yeap, I know that, but he died alone and didn't respawn... Is it because Chemical Rage changes a hero?

  • Die Blue
    • Events
      • Unit - A unit owned by Player 2 (Blue) Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Player - Add -250 to Player 2 (Blue) Current gold
      • Game - Display to (All players) the text: (((|cff0066ff + (Name of (Triggering unit))) + |r) + погибает Рё теряет 250 золота! Игроки команды противника получают Р·Р° это РїРѕ 100 золота!)
      • Player - Add 100 to Player 8 (Pink) Current gold
      • Player - Add 100 to Player 9 (Gray) Current gold
      • Player - Add 100 to Player 11 (Dark Green) Current gold
      • Player - Add 100 to Player 12 (Brown) Current gold
      • Wait 3.00 seconds
      • Game - Display to Player Group - Player 2 (Blue) the text: Your hero will resp...
      • Countdown Timer - Start Death_timer_blue as a One-shot timer that will expire in (20.00 + (2.00 x (Real((Level of (Dying unit)))))) seconds
      • Countdown Timer - Create a timer window for Death_timer_blue with title Respawn:
      • Set Timer_window_blue = (Last created timer window)
      • Countdown Timer - Change the color of the time for Timer_window_blue to (10.00%, 30.00%, 100.00%) with 0.00% transparency
      • Countdown Timer - Hide Timer_window_blue
      • Countdown Timer - Show Timer_window_blue for Player 2 (Blue)
      • Countdown Timer - Show Timer_window_blue for Player 6 (Orange)
      • Countdown Timer - Show Timer_window_blue for Player 5 (Yellow)
      • Countdown Timer - Show Timer_window_blue for Player 4 (Purple)
      • Wait (20.00 + (2.00 x (Real((Level of (Dying unit)))))) seconds
      • Countdown Timer - Destroy Timer_window_blue
      • Camera - Apply Resurection Blue Orange <gen> for Player 2 (Blue) over 0.00 seconds
      • Hero - Instantly revive Hero_Blue at (Center of Blue Orange <gen>), Show revival graphics
Will it be better how you think?:ogre_icwydt:
 
Status
Not open for further replies.
Top