Staredit Network > Forums > SC2 Assistance > Topic: What is wrong with this?
What is wrong with this?
Mar 3 2014, 4:58 am
By: payne  

Mar 3 2014, 4:58 am payne Post #1

:payne:

http://pastebin.com/mwSKNyDy

Here is what I get in the Chat area when I execute the code:
Code
0.8799
0
133.8799
0
133.8799
0

Y coordinate[0] = 148.1201
Goal of the trigger: Spawn a "Tile" unit all over the Region area

Method used: Spawn a Tile unit right inthe middle of the region and build from there to ensure the symmetry of the whole process.
2nd step: Build a vertical line from that central unit. Both over and below it.
3rd step: Do so by moving by 1 'X' Tile size to the right until you hit the boundary.
4th step: Do the same from initial 'X' Tile position, moving 'X' Tile size to th eleft until you hit the boundary.


A friend of mine was able to rewrite the code so that it works, but he used a very different method. What I am looking for here, is why my code wasn't working.

Post has been edited 1 time(s), last time on Mar 3 2014, 5:03 am by payne.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Roy, jun3hong