Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

What is auto-re-describe? Where is it found in the sample code?

A topic by Phantosler created Feb 11, 2020 Views: 123 Replies: 3
Viewing posts 1 to 3
Submitted


Can someone describe to me what this means? i'm a little confused.

Host

Sorry for the ambiguity, I'll add this to the FAQ.

Auto redescribe is a mode of adventuron where every time the object list or exit list changes in a room, the room description will automatically redescribe (as seen in TWO).

To enable it, add the following line to the top of your source code:

redescribe          = auto_beta

It is also recommended to use the minimal TWO theme as a baseline:

start_theme         = two

Chris

Submitted(+1)

As Adventuron said, use the two theme or extend it as described in this thread.

Add redescribe = auto_beta at the top of your file. Once you've done this, the impact (as best as I can work out) is as follow:

  • When you enter a new location using compass commands, it is automatically redescribed. (It always does this anyway.)
  • If you add or delete exits, perhaps due to a barrier, the location is automatically redescribed.
  • When you get or drop an object, the location is automatically redescribed.
  • If you print anything before a location is automatically redescribed, you automatically get the press_any_key prompt (blinking cursor) so that you can read the message, then you press any key and the location is automatically redescribed.

I've struck lots of situations where the redescribe does not occur automatically, so you'll have to keep an eye on this during testing and force a redescribe manually if needed using a sequence of print, press_any_key and redescribe statements.

Host

Nice description.

As of beta 23, Adventuron will also auto-redescribe if the name of an object changes (in a location too).