Before each while block you need to reset the respective loopCounter to 0. Otherwise once it does the first player, loopCounter 2 will still = 40. And once it does the first unit, loopcounter 3 will still be 9.
Hmmm, not that I know of. There is the "Set Unit State" action which can set the selectable state of a unit, but that changes the state for all players.
Other languages differ in how they handle the negative values in a modulus... But in this case I'm quite sure mod is simply the remainder of the division, therefore -1 mod 6 = -1.
You could either use the "Unit Property", "Movement Speed" function to get the current movement speed (as a real) of the unit, or perhaps get the catalog field value as a string, then convert it to a real.
Ok... so currentWaves is a global variable. You must be setting it to 2 somewhere else. You can search (Ctrl+F) your script for gv_currentWaves to find where else you set it.
Yes please show us a copy of the relevant code exactly as it appears, using Ctrl+F11 to preview the code joemart, so that we can reproduce/find the problem.
0
@joemart06: Go
Yep.
0
@joemart06: Go
For positive quotients it's the same, but for negative it's not. E.g. -3.4 floored is -4, -3.4 truncated is -3
0
@intanjir: Go
Hmm so basically he's used to Euclidean division, whereas galaxy uses truncated division...
0
Before each while block you need to reset the respective loopCounter to 0. Otherwise once it does the first player, loopCounter 2 will still = 40. And once it does the first unit, loopcounter 3 will still be 9.
E.g.
P.S. Why don't you just use FOR loops? Then you wouldn't have to do that reset to 0 thing because it does it automatically.
0
You could try this instead:
z = 5 - ((cw - 1) mod 6))
0
@Chris97Ong: Go
Hmmm, not that I know of. There is the "Set Unit State" action which can set the selectable state of a unit, but that changes the state for all players.
0
@joemart06: Go
Other languages differ in how they handle the negative values in a modulus... But in this case I'm quite sure mod is simply the remainder of the division, therefore -1 mod 6 = -1.
0
You could either use the "Unit Property", "Movement Speed" function to get the current movement speed (as a real) of the unit, or perhaps get the catalog field value as a string, then convert it to a real.
0
@joemart06: Go
Ok... so currentWaves is a global variable. You must be setting it to 2 somewhere else. You can search (Ctrl+F) your script for gv_currentWaves to find where else you set it.
0
Yes please show us a copy of the relevant code exactly as it appears, using Ctrl+F11 to preview the code joemart, so that we can reproduce/find the problem.
0
Haha looks like I missed a few.
The ones you're looking for are
0
@joemart06: Go
Can you post the code please?
0
@Chris97Ong: Go
If you use "Hide Game UI" it will force the leaderboard to stay hidden.
You will have to hide the UI elements you want hidden individually (Using Show/Hide UI Frame).
E.g.
0
Good idea! Will be helpful :)
Perhaps have a starcraft link for each one too?
0
@fishy77: Go
The offsets on the assets for that sound are messed up.