HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Combineing this into one

07-11-2009, 06:09 PM#1
kongfuman
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.

Trigger:
Collapse Events
Unit - A unit owned by Player 1 (Red) Acquires an item
Collapse Conditions
(Item-type of (Item being manipulated)) Equal to |cFF0080FFVacuole|r
Collapse Actions
Item - Remove (Item being manipulated)
Set Vacuoleinterger[1] = (Vacuoleinterger[1] + 1)
Collapse For each (Integer A) from 0 to Vacuoleinterger[1], do (Actions)
Collapse Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row (Player number of (Triggering player)) to (String((Integer A)))
07-11-2009, 08:32 PM#2
Anitarf
Try this:
Trigger:
Collapse Events
Unit - Any unit Acquires an item
Collapse Conditions
(Item-type of (Item being manipulated)) Equal to |cFF0080FFVacuole|r
Collapse Actions
Set Vacuoleinterger[Player number of (Owner of (Triggering unit))] = (Vacuoleinterger[Player number of (Owner of (Triggering unit))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2, row (Player number of (Owner of (Triggering unit))) to (String(Vacuoleinterger[Player number of (Owner of (Triggering unit))]))
Item - Remove (Item being manipulated)