I'm having some trouble figuring out how to set an increased value of minerals per building, (In this case "Solor Panels"). So for each "Solor Panel" you would gain an extra 3 mineral per time cycle (Being every 20 sec).
Minerals Gained Per Cycle= 3 * x
(x= Player's Solor Panels)
So my question is, how would i set a buildings value in game? and then use a trigger to loop the cycle?
Uh, shouldn't need to even touch the trigger editor really, could just give your solar panel a behavior that gives minerals with a period of 20.
But if you are determined to use triggers, should be able to make a unit group, have an event whenever building progress of a solar panel is completed to add that solar panel to the group (group will be a global variable of type unit group). Then in the same event set x (pick a better name btw, as this will also be global) = number of units in unit group. Then in a periodic event of 20 game seconds, have it set resources to be x * 3 for said player.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm having some trouble figuring out how to set an increased value of minerals per building, (In this case "Solor Panels"). So for each "Solor Panel" you would gain an extra 3 mineral per time cycle (Being every 20 sec).
Minerals Gained Per Cycle= 3 * x
(x= Player's Solor Panels)
So my question is, how would i set a buildings value in game? and then use a trigger to loop the cycle?
@knif3r2: Go
Uh, shouldn't need to even touch the trigger editor really, could just give your solar panel a behavior that gives minerals with a period of 20.
But if you are determined to use triggers, should be able to make a unit group, have an event whenever building progress of a solar panel is completed to add that solar panel to the group (group will be a global variable of type unit group). Then in the same event set x (pick a better name btw, as this will also be global) = number of units in unit group. Then in a periodic event of 20 game seconds, have it set resources to be x * 3 for said player.