• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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