Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

My bots won't exit repeat loop or i'm just doing it wrong?!

Until bot has some tool like axe or shovel everything is OK.

forever {   
 repeat until hands full     { find nearest pine tree ; move to pine tree;  use held item }   
move to general storage
take from general storage
}

tool breaks = infinite loop


edit:

this loop:

forever {   
move to general storage 
take from general storage 
repeat until hands empty     { find nearest pine tree ; move to pine tree;  use held item }   
}

works like previous one should 

This is exactly the same problem I was having, read my post! If you want to fix it, just save/load and your bot will be fine

Save/Load don't work for me

on the first one, it's on repeat untill full, which it should be on empty. I prefer the top script with it set to reapeat untill empty :)