Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I don't know if it's from Adventuron (version 1.0.0 Beta 28E) or the "Burgle, Burgle" game, but GET ALL allowed me to take items that I would only get with coins.
SHOP
SODA, POTION, SHOPKEEPER.
WEST.
-------------------------
? GET SODA
"CASH PLEASE."
? GET POTION
"CASH PLEASE."
? GET ALL

SHOP
SHOPKEEPER.
WEST.
-------------------------
? I
SODA, POTION.

Hmmm, interesting. This really should not be happening as the GET ALL implementation simply explodes out the targets of items that are present in the current location and submits them in separate ticks, including all the on_command {}  that should run in the exploded ticks.

I think this might be down to the implementation of the "CASH PLEASE" routine.

This is how it should be done (in this implementation there is no way to pay however):


start_at                 = my_location
start_theme              = two
redescribe               = auto_beta locations {
   my_location : location "You are in a room." ;
} objects {
   
   shopkeeper : scenery "shopkeeper" start_at = "my_location" ;
   soda : object "soda" start_at = "my_location" ;
   potion : object "potion" start_at = "my_location" ;
} on_command {
   : match "get potion"  {
      : print "CASH PLEASE" ;
      : done ; // Not strictly required here
   }
   
   : match "get soda"  {
      : print "CASH PLEASE" ;
      : done ; // Not strictly required here
   } }