hello ive searched the forums for about 40 min and i havent found anything that answers my question, so ill ask now:
im making this map where you can make a gold mine, and upgrade to either an upgrade of the original gold mine, or one that produces gold faster but less, or one that produces more, but more slowly like this:
starting gold mine: 10 gold/10 sec
fast:7 gold/5 sec normal:15 gold/10 sec slow:25 gold/15 sec
fast:9 gold/5 sec normal:20 gold/10 sec slow:35 gold/15 sec
fast:11 gold/5 sec normal:25 gold/10 sec slow:42 gold/15 sec
so thats the table of my gold mines, and the trigger ive used (i just use the starting gold mine as example)
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Minor Ore Farm
Actions
Trigger - Turn on minor gold income <gen>
Set GoldBuilding = (Constructed structure)
and the second trigger (which is turned on by the first one) is like this:
Events
Time - Every 10.00 seconds of game time
Actions
Player - Add 10 to (Owner of GoldBuilding) Current gold
but when i enter the map and make the first gold building, it seems like i get gold as if i had all the gold mines... is it because im using the same variable? im really bad at variables, so please fix this for me
im making this map where you can make a gold mine, and upgrade to either an upgrade of the original gold mine, or one that produces gold faster but less, or one that produces more, but more slowly like this:
starting gold mine: 10 gold/10 sec
fast:7 gold/5 sec normal:15 gold/10 sec slow:25 gold/15 sec
fast:9 gold/5 sec normal:20 gold/10 sec slow:35 gold/15 sec
fast:11 gold/5 sec normal:25 gold/10 sec slow:42 gold/15 sec
so thats the table of my gold mines, and the trigger ive used (i just use the starting gold mine as example)
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Minor Ore Farm
Actions
Trigger - Turn on minor gold income <gen>
Set GoldBuilding = (Constructed structure)
and the second trigger (which is turned on by the first one) is like this:
Events
Time - Every 10.00 seconds of game time
Actions
Player - Add 10 to (Owner of GoldBuilding) Current gold
but when i enter the map and make the first gold building, it seems like i get gold as if i had all the gold mines... is it because im using the same variable? im really bad at variables, so please fix this for me