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

Trigger help mee!

Status
Not open for further replies.
Level 2
Joined
Dec 1, 2004
Messages
13
ok...lemme give you an example..
for mayor, they make it 'every x seconds of game' 'owner of mayor job gets x gold'
for stuff like the doctor...the creeps drop the gold
for others, either wait for a better reply, or check a loap..
-SLNR
 
Level 5
Joined
Jul 20, 2004
Messages
156
For the mayor:

Events:
A unit enters [region where he gets the job]

Conditions:
Owner of (entering unit) equal to Player 01 Red

Actions:
Set Player 01 Red = Mayor

Next trigger for mayor:

Events:
Player 01 Red = Mayor
Every [number of seconds you want him to get payed] of game

Conditions:

Actions:
Add [amount of gold/lumber/food you want to add to the player's total amount of gold/lumber/food] to Player 01 Red's total amount of gold/lumber/food.

Notes:
1. This was made just out of my head, I don't know if those are the exact functions.
2. You will have to make these two triggers for each of the players that can become mayor, just changing Player 01 Red to the color you want, i.e. Player 02 Blue.

Hope that helps.
Dragon_Lord
 
Status
Not open for further replies.
Top