Thursday, April 19, 2012

Income producing dtructure

how to you make a structure give u say 2 gold every 5 seconds w/o u doing anything but building it. Kind of like a money farm

what is trigger? i can't seem to get it|||This should work. Make an Integer variable for the players gold, call it "Gold" or something else memorable. Here are the triggers i made for you;


Code:
MoneyFarm
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Money Farm
Actions
Trigger - Turn on MoneyFarm2 <gen>

This next one should be set to initially off;


Code:
MoneyFarm2
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Set Gold = (Player 1 (Red) Current gold)
Player - Set Player 1 (Red) Current gold to (Gold + 2)

Hope this helps! |||it did indeed help, thank you for ur help :)

No comments:

Post a Comment