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

Combining this into one

Status
Not open for further replies.
Level 4
Joined
Jun 12, 2009
Messages
57
I have this trigger all made out for each player in the game. What I want is to know how can I combine these triggers into one so that it will work for every player and I don't have to make each their own.

  • Events
    • Unit - A unit owned by Player 1 (Red) Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to |cFF0080FFVacuole|r
  • Actions
    • Item - Remove (Item being manipulated)
    • Set Vacuoleinterger[1] = (Vacuoleinterger[1] + 1)
    • For each (Integer A) from 0 to Vacuoleinterger[1], do (Actions)
      • Loop - Actions
        • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Player number of (Triggering player)) to (String((Integer A)))
 
That doesn't work. That causes another problem. Sure it will work for an individual player but, if lets say player 1 has 4 vacuoles and player 2 has 0 if player 2 picks up one they will have 5 because of the math. How do I make the Vacuoleinteger tell one person from another?
 
Status
Not open for further replies.
Back
Top