Skip to main content

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

Strictly speaking, you don't need to define treasure_room. You can use:

start_at = your_treasure_room

I've done it this way and it works fine.

And "imply_header_from_location_id = true" is optional. I don't use this, as my location ids are just room01, room02 and so on. I did it this way because I found that the location ids conflicted with the object ids when I wanted the location to be visible as scenery outside the location. (For example, I can see a barn when I'm outside the barn.) It also means that if I change the location name, I've only got to change it in one place.

I think you do have to define a treasure room if you want to be able to have simple "win game" logic. By default, defining a treasure room will add a win game condition and print out the treasures hunt win game message if all objects are present in the treasure room at the when on_tick {} runs. This can be disabled, but without defining a treasure room the treasure_deposited() function will not work, and so you will have to manually count objects.

Sorry. You're right. I was getting mixed up because I don't start at the treasure room and it's not called treasure room. You need:

start_at = your_start_room
treasure_room = your_treasure_room