disoriented wrote:
There is a Wait 0 Turns command at the end of every spawn, no matter the direction. I don't know why spawning S would behave any differently than any other direction.
What I think is happening is:
On the previous turn the northern virus spread S, then hit the wait 0 in that if clause
On the current turn, it starts from that wait 0, is unable to spawn SW or W, so goes back to the start of the main loop and hits the wait 0 there, so it never gets to the east check.
I think the solution might be to change the open move checks to "
Else If"
instead, then move the MyScript resets and the Wait 0 to the bottom of the loop, and move the first wait 0 to outside the loop.
<stuff>
Wait 0 turns
Loop:
If open move North
<spawn a virus there>
Else if open move NE
<spawn a virus there>
Else if open move E
<spawn a virus there>
...
Else if open move NW
<spawn a virus there>
If End
Set var _myscriptx,y = -9999
Wait 0 turns
Go to "Loop"
[Last edited by Rabscuttle at 02-28-2020 02:04 AM]