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.
[09:05 pm]
Zoan -- beep beep
[09:05 pm]
Zoan -- btw speaking of movies we saw Coyote vs Acme last night; that movie was great imo
[09:04 pm]
Zoan -- I threw in more of my thoughts, get ur popcorn ready
[07:59 pm]
Zycorax -- Damn, the popcorn smiley was just in my imagination :hurr:
[07:32 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: An SD thread on AI? omg YES inject that shit directly into my veins
looks like a whole lot of popcorn is needed. Interesting how ai - that soulless thing - can stir so much emotion in us humans. :awesome:
[03:42 pm]
Vrael -- time to suppress its visibility by finally responding in the Free Will topic :D
[12:44 am]
Oh_Man -- An SD thread on AI? omg YES inject that shit directly into my veins
[12:20 am]
*Symmetry toots*
[2026-9-07. : 6:55 pm]
Moose -- Ya, might as well condense to one forum LMAO
[2026-9-07. : 6:21 pm]
Symmetry -- I mean let's be real he could've posted it in Introductions and it wouldn't have mattered
Please log in to shout.


Members Online: Zoan