Thread: Plunder!
View Single Post
Old 04-14-2006, 06:54 PM   #9 (permalink)
Octopor
I still play games
 
Octopor's Avatar
 
Join Date: Nov 2003
Posts: 1,715
Here you go if you want the gold to be distrubuted to all players:
Bandit Count
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Triggering unit)) Equal to Bandit
Actions
Set banditnumber //create this as an integer variable// = (banditnumber + 1)
Trigger - Turn on Gold <gen>


Gold (Initially off)
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
banditnumber Greater than or equal to 1
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add (20 x banditnumber) to (Picked player) Current gold
Else - Actions
Trigger - Turn off (This trigger)


Bandit Dies
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Bandit
Actions
Set banditnumber = (banditnumber - 1)
__________________
Quote:
My perception crit, now I can see why kids love Cinnamon Toast Crunch cereal.

Last edited by Octopor; 04-14-2006 at 07:20 PM.
Octopor is offline   Reply With Quote