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.
[03:57 pm]
Echo -- ty
[11:00 pm]
jjf28 -- Echo
Echo shouted: Excalibur What's the discord?
https://discord.gg/HwfNecXz
[2024-12-13. : 8:28 pm]
Echo -- I might be moving out of private banking soon. I got a job offer from the US Treasury as an examiner. DOGE won't be able to touch them since OCC is self-funded
[2024-12-13. : 8:26 pm]
Echo -- l)ark_ssj9kevin
l)ark_ssj9kevin shouted: Echo Voy does
Nice! Time going by fast
[2024-12-13. : 8:26 pm]
Echo -- dumbducky
dumbducky shouted: Echo Tired of moving every few years, hoping to move closer to extended family so my kids can be with their cousins
Yeah I feel you. I've moved quite a bit the past 5 years too.
[2024-12-13. : 8:25 pm]
Echo -- Excalibur
Excalibur shouted: Holy shit its Echo! :O Join the discord you fuck.
What's the discord?
[2024-12-13. : 8:25 pm]
Echo -- Oh wow it's (U)Bolt_Head LOL
[2024-12-13. : 9:33 am]
Oh_Man -- this guy could become america's Ned Kelly
[2024-12-13. : 1:30 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: Oh_Man Not really sure what you mean part of it lol. Seriously doubt anyone here is plotting to kill insurance company executives. I dunno how to feel about the event. On the one hand, fuck insurance companies and UHC is one of the worst. On the other hand, vigilante justice isn't ideal. Definitely not shedding any tears for the fallen CEO, and most likely wouldn't have reported the killer if I had been the one to spot him. There will always be another stooge to take his place though.
"part of the zeitgeist" probably means "approves of"
[2024-12-12. : 11:50 pm]
Ultraviolet -- Themselves or each other? I guess both are true
Please log in to shout.


Members Online: Roy, lil-Inferno