Flying Broom — 1 of 0

John Timmons

Release 1

"Flying Broom" by John Timmons

Release along with the source text and a website.

The story description is "A simple use of the rideable vehicle object where we create a flying broom. This uses the Rideable Vehicles extension written by Graham Nelson and is included with every copy of Inform 7."

Include Rideable Vehicles by Graham Nelson. [1]

The Meadow is a room. "The meadow spreads out in all directions beneath a beautiful blue sky."

Way Above the Meadow is up from the Meadow. "High above the meadow, you can see for miles."

[You can get onto a rideable vehicle by typing 'get on [rideable vehicle]', 'sit on [rideable vehicle]', or 'ride [rideable vehicle]'. To get off of a rideable vehicle, you can type 'get off', 'dismount', or 'exit'. To ride, simply type in the direction you wish to go just as you normally would.]

The old broom is a rideable vehicle in the Meadow. The description is "This old broom looks like something the Wicked Witch of the West used to fly around on."

[The action for getting on a rideable vehicle is 'mounting the [rideable vehicle]' and the action for getting off of a rideable vehicle is simply 'dismounting'.]

After mounting the old broom:

say "As you try to sit on the old broom, it suddenly rises flying you high into the air...";

now the old broom is in Way Above the Meadow; [2]

try silently looking.[3]

Before dismounting:

if location is Way Above the Meadow, end the game saying "'Not a wise move to get off of the old broom at such heights' you think to yourself as you plunge to your death.";

otherwise continue the action instead.

Notes

[1]. Just include this line exactly as written here. This extension is conveniently built into every copy of Inform 7.

[2]. Since the player is already riding the old broom, you only need to move the old broom to the new location and the player will go with it.

[3]. This will automatically print out the new location.