• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Multiboard Help

Status
Not open for further replies.
Level 5
Joined
Jul 11, 2007
Messages
152
Two questions, first I'd like to know if theres an easy way to fit this into one trigger because currently I have a variable for each player and a trigger for each player which works but it'd be nice for it to all be in one trigger. Theres 10 trigger and the only changes are underlined

RedKills
Events
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
Actions
Set RedKills = (RedKills + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(RedKills))

Also for my multiboard I want a simple system that can check which players have left/which players have lost their builder and which are still alive but I'm struggling making a trigger to fit it all in one column.
Alive - Dead - Left Game depending on if the player is there, and the status of their builder
 
It is surly possible to do that, the only thing you will need is an array

Would look like this
  • Variable Kills
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • Set Kills[Player Number of(Owner of(Killing Unit)] = (Kills[Player Number of(Owner of(Killing Unit)] + 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row (Kills[Player Number of (Owner of(Killing Unit))] +1) to (String(Kills[Player Number of(Owner of(Killing Unit)))
  • Builder Dies
    • Events
      • Unit - A Unit Dies
    • Conditions
      • Triggering Unit equal to YourBuilderUnit
    • Actions
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Player Number of (Owner of(Dieing Unit)) +1) to (Dead)
      • -------- You may want to change the column =) --------
  • Leaves Game
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • -------- You need to add all Players here --------
    • Actions
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player Number of (Triggering Player))+1) to (Left the Game)
      • -------- You may want to change the column =) --------
 
The second and third work great but I think there was something wrong with the first one, its okay because I can use what I have already (that one wasnt such a big deal)

Thanks for the help!
 
Status
Not open for further replies.
Back
Top