PYROMANIC
New Member
- Reaction score
- 0
I want to make a building that gives income, and that i can upgrade the building to get more income.
Like that: level 1 "Grates" give 1 gold per second. level 2 "Tent" give 2 gold per second.
so i made it like this:
-Events
Unit - A unit owned by Player 1 (red) Finishes construction
-Conditions
(Unit-type of (Constructed structure)) Equal to Grates
-Actions
Trigger - Turn on Red Income 1 <gen>
*(Red Income 1) is a trigger that gives 1 gold per second.
So it worked but if I try to upgrade the building the same way, it doesn't.
so i made it same way:
-Events
Unit - A unit owned by Player 1 (red) Finishes construction
-Conditions
(Unit-type of (Constructed structure)) Equal to Tent
-Actions
Trigger - Turn off Red Income 1 <gen>
Trigger - Turn on Red Income 2 <gen>
And now it doesn't work.
So my question is how to do this and i would also like to know why doesn't it work.
Like that: level 1 "Grates" give 1 gold per second. level 2 "Tent" give 2 gold per second.
so i made it like this:
-Events
Unit - A unit owned by Player 1 (red) Finishes construction
-Conditions
(Unit-type of (Constructed structure)) Equal to Grates
-Actions
Trigger - Turn on Red Income 1 <gen>
*(Red Income 1) is a trigger that gives 1 gold per second.
So it worked but if I try to upgrade the building the same way, it doesn't.
so i made it same way:
-Events
Unit - A unit owned by Player 1 (red) Finishes construction
-Conditions
(Unit-type of (Constructed structure)) Equal to Tent
-Actions
Trigger - Turn off Red Income 1 <gen>
Trigger - Turn on Red Income 2 <gen>
And now it doesn't work.
So my question is how to do this and i would also like to know why doesn't it work.