Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I think I'll do the manual test anyway, as I'm pocketing an item when removing it from a container and I don't want it to appear in the room if my inventory is full, as this implies that I've removed it from the container first, but I couldn't remove it from the container because my hands were full. Catch 22.

Er, did I explain that properly?

Assuming weight is not an issue ...

   : if (items_carried () < carry_limit()) {
      : pocket "sword" ;
   }

Exactly. And add appropriate text messages depending on whether test is true or false. Weight is not an issue.