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.
[2025-11-12. : 4:38 pm]
UndeadStar -- :wob:
[2025-11-12. : 10:58 am]
Zycorax -- :wob:
[2025-11-11. : 1:41 am]
Ultraviolet -- :wob:
[2025-11-09. : 2:22 am]
Ultraviolet -- https://staredit.net/topic/18823/ get em big dog Ex
[2025-11-08. : 7:45 pm]
UndeadStar -- *gasp* then could it be Antitoxic was being...toxic?
[2025-11-08. : 6:00 pm]
NudeRaider -- Solstice245
Solstice245 shouted: "This isn't spam..." *looks inside* it's spam.
ya, if you think you need to point out something is not spam, it probably is spam.
[2025-11-07. : 7:09 pm]
IskatuMesk -- :wob:
[2025-11-07. : 5:24 pm]
lil-Inferno -- "ie, outwar" a game from 2002 lmao, shows when this shit was written
[2025-11-07. : 5:23 pm]
lil-Inferno -- "Do not solicit commercial or personal products, scams, chain letters, clan recruitments, marketing, or games (ie, outwar) for your personal gain." w/e
[2025-11-07. : 5:22 pm]
lil-Inferno -- I didn't know there was a self advertising rule
Please log in to shout.


Members Online: GGmano, Roy