Arrow-navigation for individually named rooms

Laraqua
15 Jan 2018, 02:55

I'd like to keep the arrow compass up, but I'd also like to be able to name rooms as the Laboratory, etc. All of the doors in the game have labels so there's a good chance the player might type that, plus it makes it a little easier to note which direction goes where. For example, when I rename "south" to "Laboratory" then the arrow vanishes. How can I prevent this?


K.V.
15 Jan 2018, 04:31

You could do something like this:

<!--Saved by Quest 5.7.6404.15496-->
<asl version="550">
  <include ref="English.aslx" />
  <include ref="Core.aslx" />
  <game name="Exit Aliases">
    <gameid>cd738426-c13e-4805-92e1-24e8ff9d7626</gameid>
    <version>1.0</version>
    <firstpublished>2018</firstpublished>
    <attr name="autodescription_youcango" type="int">0</attr>
  </game>
  <object name="room">
    <inherit name="editor_room" />
    <enter type="script">
      game.autodescription_youcangobak = game.autodescription_youcango
      game.autodescription_youcango = 0
    </enter>
    <onexit type="script">
      game.autodescription_youcango = game.autodescription_youcangobak
    </onexit>
    <description>You can go to the {command:south:Laboratory}.</description>
    <object name="player">
      <inherit name="editor_object" />
      <inherit name="editor_player" />
    </object>
    <exit alias="south" to="Laboratory">
      <inherit name="southdirection" />
    </exit>
  </object>
  <object name="Laboratory">
    <inherit name="editor_room" />
    <exit alias="north" to="room">
      <inherit name="northdirection" />
    </exit>
  </object>
</asl>

That turns off the exits list when you are in the room with the exit to the Laboratory.


Laraqua
16 Jan 2018, 08:21

Thank you, that works a treat!