Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Autonauts

Make and teach robots to automate the world! · By Denki

Suggestion, bot programming loop multiple conditions

A topic by Demongornot created Sep 10, 2017 Views: 426 Replies: 2
Viewing posts 1 to 3

I tried a loop where if a steam bot have its inventory empty then he go get two logs and if its hand is empty then he go get another tool.

The issue is that, depending which one is inside the other, he either run out of wood but can grab another tool when needed or will get stuck if he loose his tool but can take wood when needed. The issue can also be seen when having the choice between getting another tool and stopping if storage is full for example, or even between those 3.

I know that this is not an a bug since he just carry the loop until the end condition is true.

So having multiple arguments for each loops will be really helpful.

With the famous AND and OR, (Loop until "hand empty" OR "inventory empty") for example.

Or (Loop until "Stone storage full" AND "Iron storage full") for example.

This will be really useful !

Developer

Yes at some point we'll be adding proper programming features in like branching and proper looping. Thanks

This night before sleeping I had another idea, rather than predetermined conditions, why not allow set like : 

Until [hand, inventory, storage etc] [not, is] [full, empty].

And great new, I can't wait to see how you implement proper programming !

So branching mean we will have IF and ELSE conditions ? :D