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