-: (.) : Generator Show Number System : (.) :-
Hey, i wanna add to my map, each time a unit generates a Interger, or gold, lumber, it shows above the building how much it generated, every so often when it generates.
So a Lumber Mill for example, generates 100 Lumber every 4 seconds, want it to show +100 above the unit for a second or 2, every 4 seconds Depening on what type of Generator you got Tier I, II, III ect +100 per generator, for upto 12 players.
Hey, i wanna add to my map, each time a unit generates a Interger, or gold, lumber, it shows above the building how much it generated, every so often when it generates.
So a Lumber Mill for example, generates 100 Lumber every 4 seconds, want it to show +100 above the unit for a second or 2, every 4 seconds Depening on what type of Generator you got Tier I, II, III ect +100 per generator, for upto 12 players.
-
GenerateWood
-
Events
-
Time - Elapsed game time is 4.00 seconds
-
Time - GeneratorTimer expires
-
-
Conditions
-
Actions
-
Countdown Timer - Start GeneratorTimer as a One-shot timer that will expire in 4.00 seconds
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units owned by (Player((Integer A))) of type Generator1)) Equal to 1
-
-
Then - Actions
-
Player - Set (Player((Integer A))).Current lumber to (((Player((Integer A))) Current lumber) + 100)
-
Floating Text - Create floating text that reads +100 Lumber above (Generator1) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Floating Text - Destroy (Last created floating text)// After 1 Second
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units owned by (Player((Integer A))) of type Generator2)) Equal to 1
-
-
Then - Actions
-
Player - Set (Player((Integer A))).Current lumber to (((Player((Integer A))) Current lumber) + 200)
-
Floating Text - Create floating text that reads +200 Lumber above (Generator2) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Floating Text - Destroy (Last created floating text)// After 1 Second
-
-
Else - Actions
-
-
-
-
-
-
-
Last edited: