wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 07-11-2009, 06:09 PM   #1
kongfuman
User
 
Join Date: Jun 2009
Posts: 1

kongfuman has little to show at this moment (0)

Default Combineing this into one

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)))
kongfuman is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 07-11-2009, 08:32 PM   #2
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,190

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

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)
__________________
Anitarf is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 11:40 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services