DoorLib

So... I made a door library.

It all started here:
http://textadventures.co.uk/forum/quest/topic/9m2lavmzregstombcuxrba/fun-with-doors


You will see the new tab on your exits.

Everything should be self-explanatory. (If not, let me know, please.)

I tested it out, but no one else has. So, post about any issues, please. (I'm sure I overlooked something or messed something up.)


DoorLib.aslx


The example game:
DoorLib Tester - Play online


The example game's code:

<!--Saved by Quest 5.7.6606.27193-->
<asl version="550">
  <include ref="English.aslx" />
  <include ref="Core.aslx" />
  <include ref="DoorLib.aslx" />
  <game name="DoorLib Tester">
    <gameid>ffba5fcf-8b93-4c6b-898d-08f1f1e0deb0</gameid>
    <version>0.0.1</version>
    <firstpublished>2018</firstpublished>
    <start type="script">
    </start>
    <author>K.V.</author>
    <description><![CDATA[A Quest adventure.<br/><br/>[EXAMPLE GAME]]]></description>
  </game>
  <object name="room1">
    <inherit name="editor_room" />
    <alias>room</alias>
    <exit alias="north" to="room2">
      <inherit name="northdirection" />
      <hasdoor />
      <hasotherside />
      <hasdoormsg />
    </exit>
    <object name="player">
      <inherit name="editor_object" />
      <inherit name="editor_player" />
      <object name="key">
        <inherit name="editor_object" />
        <take />
      </object>
    </object>
  </object>
  <object name="room2">
    <inherit name="editor_room" />
    <alias>second room</alias>
    <exit alias="south" to="room1">
      <inherit name="southdirection" />
      <hasdoor />
      <hasotherside />
    </exit>
    <exit alias="north" to="room3">
      <inherit name="northdirection" />
      <hasdoor />
      <hasotherside />
      <doorislockable />
      <doorkeycount type="int">1</doorkeycount>
      <doorlocked />
      <doorkey type="object">key</doorkey>
    </exit>
  </object>
  <object name="room3">
    <inherit name="editor_room" />
    <alias>third room</alias>
    <exit alias="south" to="room2">
      <inherit name="southdirection" />
    </exit>
    <exit alias="north" to="room4">
      <inherit name="northdirection" />
    </exit>
  </object>
  <object name="room4">
    <inherit name="editor_room" />
    <alias>fourth room</alias>
    <exit alias="south" to="room3">
      <inherit name="southdirection" />
    </exit>
  </object>
</asl>

Great. That's all you need in Quest. :-)


I shall be having a play around later this week as school is back - oh the peace :D

I love the old style feel in the demo. Thanks K.V

-=Darchy=-


Thanks for all the kind words! I'm glad it turned out to be useful!


I just added a couple of things to this library (thanks to Forgewright).

https://github.com/KVonGit/QuestStuff/blob/master/libraries/DoorLib.aslx


Whoever wrote this library sucks.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums