• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Trigger help mee!

Status
Not open for further replies.

GreatCustomMapMaker

G

GreatCustomMapMaker

How do i make a certain character(like a peasant who is a player) get $$ for doing a certain deed or job kinda like the jobs on Loap well exactly like loap? Just like LOAP(Life Of A Peasant)plz help me somebody? :( :? :?: :?: :?: :?: :?:
 
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
 
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.
Back
Top