Using libraries

From QuestWiki
Jump to: navigation, search

Libraries allow you to reuse elements in multiple games. That might be object types, functions, or even common objects. In fact, libraries are the basis of how Quest works - Core.aslx is a library, included by default in all Quest games. It handles much of the standard text adventure game functionality - working out which objects the player can see, handling player commands, implementing containers, and much more. This means that Quest's built-in functionality is extensible and indeed replaceable.

If you've created some functionality in your game that you think would be useful to others, consider turning it into a library. See Creating Libraries for more information.

You can download libraries from the Resources page. When you've downloaded a library, go to Included Libraries in the tree (under the Advanced section) and click Add to add it to your game.

Tutorial

Beginners

  1. Introduction
  2. Creating a simple game
  3. Interacting with objects

Intermediate

  1. Using scripts
  2. Custom attributes
  3. Custom commands
  4. More things to do with objects
  5. Using containers
  6. Moving objects during the game

Advanced

  1. Using timers and turn scripts
  2. Changing templates
  3. Text formatting
  4. Using lockable exits
  5. Using lockable containers
  6. Using walkthroughs
  7. Multiple choices - using a "switch" script
  8. Debugging your game
  9. Releasing your game

Elite

  1. Creating functions which return a value
  2. Using inherited types
  3. Using libraries
  4. Using Javascript
Personal tools
Namespaces
Variants
Actions
Navigation
Quest Documentation
Toolbox