HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

income trigger

03-08-2004, 10:21 PM#1
13layde
Ok i've tried everything i could think of but i can't get it to work.. I want to make it so that when you build a farm, it spawns a citizen every 45 seconds. And i want the citizens to give 15 gold each every 60 seconds. so if you have 3 you'd get 45 gold a minute. Like the sheep and the sheep farms in farmers vs. hunters. Can anyone tell me how i can do this? ^_^
03-08-2004, 11:16 PM#2
ThyFlame
Quote:
Originally Posted by 13layde
Ok i've tried everything i could think of but i can't get it to work.. I want to make it so that when you build a farm, it spawns a citizen every 45 seconds. And i want the citizens to give 15 gold each every 60 seconds. so if you have 3 you'd get 45 gold a minute. Like the sheep and the sheep farms in farmers vs. hunters. Can anyone tell me how i can do this? ^_^

Well, I hope you don't intend to have more than one farm per person. That gets bloated fast.

Regardless,

e: Construction Completed
c: Building == Farm
a: Move region to farm
turn on trigger that creates a citizen every 45 seconds at region
when the citizen is created, also add 1 to a variable that keeps track of a players citizens, when player loses one, subtract 1 from that variable.
Every 60 seconds, player receieves number of citizens ((your variable) * 15) gold
03-09-2004, 03:56 AM#3
Zethiros
...
RIGHT, soooo... I didn't get that. ;)
Hopefully he will.

I was just thinking, maybe having a trigger that counts however many "farms" are in the playable map area owned by X player, then setting that number to a variable. Then all that's left to do is create a normal, reoccuring trigger that happens every 45 seconds, and gives gold to X player based on .15 x (variable)
To me, that's MUCH more simpler. ;)
03-09-2004, 07:09 AM#4
Kamux
Or you can make a trigger that fires every 45 sec. and let it pick every farm and create a unit near it for the owner of the farm. Then make a trigger that fires every 60 seconds and let it pick every unit that gives gold and let it give gold to the proper player.
03-09-2004, 07:50 PM#5
13layde
Heheh i've decided to change spawn to 180 seconds and each citizen gives 10. (because there will be more than one farm since it goes in a nation building option in my rpg) thanks for replies im gona try to get it going now :D