Run Time Error - Infinite Loop Detected by wh05herlock

To earn points and money write a program for your robot that gets it to navigate its way to a resource, pick it up, and return to base.
Simple, right?
See the scripting documentation in game for help with scripting.
Important to note: The custom programming language uses prefix notation for all functions. This means to write if (var0 < 2) requires the following code: If LessThan GetVar 0 2.
This order is required because the code gets compiled down to the following: If( LessThan( GetVar(0), 2) )
Another important note: If statements might not work the way you would expect. The language I created for the robots to follow is quite simple, and so all that an if statement does is skip the next line of code if the condition is not met. Else statements are similar in that the skip the next line if the last if statement had its condition met.
Whilst you can hard code a route for the robot to take, this is not recommended since it isn't very fun and kind of defeats the purpose of the game. Also this certainly won't work late in the game when you have to program the robot to dodge a large number of enemies.
| Youtube | https://github.com/Fermats-Fish/Ludum-Dare-47 |
| Youtube | https://fermatsfish.itch.io/ld47 |
| Original URL | https://ldjam.com/events/ludum-dare/47/run-time-error-infinite-loop-detected |
Ratings
| Given | 0🗳️ | 0🗨️ |