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.
[2026-11-21. : 7:14 pm]
Symmetry -- so it shows the version history of temple siege
[2026-11-21. : 7:13 pm]
Symmetry -- I think he's trying to find the most popular versions of maps
[2026-11-21. : 9:24 am]
UndeadStar -- yes it helped...but I didn't understand what the picture was about lol
[2026-11-21. : 6:10 am]
NudeRaider -- UndeadStar
UndeadStar shouted: I somehow don't dare to look at an image without explanation from someone called Decency. Reverse psychology maybe?
does it help your fear when I tell you he used to call himself FaZ-?
[2026-11-20. : 5:02 pm]
UndeadStar -- I somehow don't dare to look at an image without explanation from someone called Decency. Reverse psychology maybe?
[2026-11-19. : 10:19 pm]
Decency -- https://i.imgur.com/DMFELQd.png
[2026-11-19. : 9:16 pm]
ihjel -- No bots online :omfg:
[2026-11-19. : 8:15 pm]
Moose -- o, I thought it was EUD, gg
[2026-11-19. : 3:58 am]
Symmetry -- Reindeer breeding 2 is not EUD and errors when I try to upload
[2026-11-19. : 12:26 am]
Moose -- Symmetry
Symmetry shouted: yeah uploading for me has been a 50/50 toss up here lately
certain EUD maps segfault the map parser, :farty: ignore me the last time I complain at him. :crybaby:
Please log in to shout.


Members Online: Soul Filcher