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

Trigger Help please!!!

Status
Not open for further replies.
Level 2
Joined
Feb 24, 2012
Messages
8
Can someone help me please with this type of trigger.

I want to make a simple table that shows me how many players are still alive.

Example: The game starts, 3 Players are choosing theire prefered heroes and then, the chosed hereoes are teleported on the arena.
After 1 Minute, the fight in the arena begins.
When they start fighting each other and one of them dies, I want in that table to show me from (3 Alive Heroes to 2 Alive Heroes).

How can I do that?
 
Level 2
Joined
May 28, 2019
Messages
13
This is just a really simple multiboard so you will probably still want to mess with it to pretty things up but this is an approach you could take.

Create an integer variable for "PlayersAlive"

  • Untitled Trigger 003
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 1 columns and 1 rows, titled Players Remaining
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String(PlayersAlive))
  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Arena <gen>
    • Conditions
    • Actions
      • Set PlayersAlive = (PlayersAlive + 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String(PlayersAlive))
  • Untitled Trigger 002
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set PlayersAlive = (PlayersAlive - 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String(PlayersAlive))
 
Status
Not open for further replies.
Top