HomeFeature Requests

Use this forum to ask for new features or suggest changes to the game.

If-Goto logic for unit commands Messages in this topic - RSS

Tahujoe
Tahujoe
Posts: 25


5/30/2017
Tahujoe
Tahujoe
Posts: 25
It's the most basic logical command structure, since the unit programs already look like assembly. Basically, expand the loop command (goto n times/infinitely) with conditionals and allow it to point further ahead in the program.

Not sure if I can come up with a complete list of conditions to check, but comparing resources to each other would be a good start. Minor snippet as an example:

10 ifgoto beef < poultry 40
20 pickup beef all
30 ifgoto true 50 // alternatively loop 50 infinitely
40 pickup poultry all
50 ...


--
I swear I'm not trying to break things.
0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software