Name | Topic | Used in | Type |
---|---|---|---|
include | Station | station | element |
Using this command, you can include one station in other ones.
Imagine you want to add a friend to the player, one that reacts differently in different rooms, but always has certain "features" (can be talked to, and so on). Instead of adding code to all the stations this person appears in, simply add a single station which defines the "scope" of this one. Uses of include can be:
You can use as many include commands as you want.
Imagine you want to add a friend to the player, one that reacts differently in different rooms, but always has certain "features" (can be talked to, and so on). Instead of adding code to all the stations this person appears in, simply add a single station which defines the "scope" of this one. Uses of include can be:
- The player is Sherlock Holmes, Dr. Watson will stand by his side and answer questions
- A bridge is slowly breaking apart, the player can walk on it and do different things in the meantime
- A library contains many locations, but the play always has the option to leave through the exit
- An automap feature, displaying a certain image through-out the game or certain sub-locations.
- A library of certain functionality, which needs to be shared across many stations
You can use as many include commands as you want.
Sample:
<include check="[player met dog]">
<in station="house"/>
<in station="woods*"/>
<in station="castle*"/>
</include>
<text><break type="strong"/>The dog is by your side.
</text>
<choice station="petDog">Pet the dog</choice>
Attributes: process