Periodic Fix Status
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
Temporary Integer = 0 <Integer>
IncomeTMP = 0 <Integer>
EnergyTMP = 0 <Integer>
WorkTMP = 0 <Integer>
Conditions
Actions
General - For each integer Temporary Integer from 1 to 3 with increment 1, do (Actions)
Actions
Variable - Set Player Income[Temporary Integer] = 150
Variable - Set Energy Available[Temporary Integer] = 10
Variable - Set Workers Available[Temporary Integer] = 5
Unit Group - Pick each unit in Player Income producing Units[Temporary Integer] and do (Actions)
Unit Group - Pick each unit in Energy Producing Units[Temporary Integer] and do (Actions)
Actions
UI - Display (Text((Custom value 1 of (Picked unit))) with Any Precision decimal places) for (All players) to Chat area
Variable - Set Energy Available[Temporary Integer] = (Energy Available[Temporary Integer] + (Integer((Custom value 1 of (Picked unit)))))
UI - Display (Text(Energy Available[Temporary Integer])) for (All players) to Chat area
UI - Display (Text(Energy Available[Temporary Integer])) for (All players) to Chat area
Unit Group - Pick each unit in Energy Consuming Units[Temporary Integer] and do (Actions)
Actions
UI - Display (Text(Energy Available[Temporary Integer])) for (All players) to Chat area
Variable - Set Energy Available[Temporary Integer] = (Energy Available[Temporary Integer] - (Integer((Custom value 1 of (Picked unit)))))
UI - Display (Text(Energy Available[Temporary Integer])) for (All players) to Chat area
Unit Group - Pick each unit in Worker Producing Units[Temporary Integer] and do (Actions)
Actions
Variable - Set Workers Available[Temporary Integer] = (Workers Available[Temporary Integer] + (Integer((Custom value 2 of (Picked unit)))))
Unit Group - Pick each unit in Worker Consuming Units[Temporary Integer] and do (Actions)
Actions
Variable - Set Workers Available[Temporary Integer] = (Workers Available[Temporary Integer] - (Integer((Custom value 2 of (Picked unit)))))
Player - Modify player Temporary Integer Terrazine: Set To Energy Available[Temporary Integer]
Player - Modify player Temporary Integer Custom Resource: Set To Workers Available[Temporary Integer]
i have a few units that have a custom value 1 of 25 and are in Energy Producers
the debugs in that return
25
35
35
35
10
10
10
Where is the problem here? (changing the delay to something like 2 or 3)
If you cant tell by the trigger, i have certain buildings that produce a resource and certain buildings that consume a resource. On construction, those are grouped and the custom resource / terrazine are determined via this trigger
What you say the trigger is spose to do, and what I read that the trigger is doing are two completely different things....
why are you setting terrizene = Energy available?
some of your actions in there seem pointless..... can you screen shot your actual triggers and maybe give a better explanation as to what your trying to do and why you are doing it the way you are?
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
Good question. But that's us who should ask you about that >.>
What a mess. Use generally accepted 'i' instead of 'Temporary Integer'
If you mean it lags then try to optimize it.
First the major part is under 'Pick each unit in Player Income producing Units' then obviously its bit too much. depends on actual amount of units
Also instead of calling 5 times UI - Display text, you should create something like "TempText <Text>", reset before main loop, inside modify it and display it at end of loop. you can use </n> for new line or enter in text editor.
Good question. But that's us who should ask you about that >.>
What a mess. Use generally accepted 'i' instead of 'Temporary Integer'
If you mean it lags then try to optimize it. First the major part is under 'Pick each unit in Player Income producing Units' then obviously its bit too much. depends on actual amount of units
Also instead of calling 5 times UI - Display text, you should create something like "TempText <Text>", reset before main loop, inside modify it and display it at end of loop. you can use </n> for new line or enter in text editor.
It doesnt do anything!!! thats the problem!!! somewhere between when it sets the energytemp to when it sets the resource, it resets to 10
i have a few units that have a custom value 1 of 25 and are in Energy Producers the debugs in that return
25 35 35 35 10 10 10
Where is the problem here? (changing the delay to something like 2 or 3)
If you cant tell by the trigger, i have certain buildings that produce a resource and certain buildings that consume a resource. On construction, those are grouped and the custom resource / terrazine are determined via this trigger
@illidans911: Go
What you say the trigger is spose to do, and what I read that the trigger is doing are two completely different things....
why are you setting terrizene = Energy available?
some of your actions in there seem pointless..... can you screen shot your actual triggers and maybe give a better explanation as to what your trying to do and why you are doing it the way you are?
Good question. But that's us who should ask you about that >.>
What a mess. Use generally accepted 'i' instead of 'Temporary Integer'
If you mean it lags then try to optimize it. First the major part is under 'Pick each unit in Player Income producing Units' then obviously its bit too much. depends on actual amount of units
Also instead of calling 5 times UI - Display text, you should create something like "TempText <Text>", reset before main loop, inside modify it and display it at end of loop. you can use </n> for new line or enter in text editor.
It doesnt do anything!!! thats the problem!!! somewhere between when it sets the energytemp to when it sets the resource, it resets to 10