Help

BEHAVIOR-EXAMPLES-3

For immortals

How to create timed drawbridge.

OK, you want to create a drawbridge that opens during certain hours of a day (say from 8 AM to 5 PM). This is how you would do it: (Bolded Text is what you type).

1. First, you create the room, and a locked (pickproof) exit (n in this example, keyword: "drawbridge").

2. Close the drawbridge first, so you closesesame.
> rb room closesesame hour 17 drawbridge n .
Enter your behavior parameters now.
hour 17 drawbridge n
] <all>
] The drawbridge master yells, "The castle is now closed.  Come
] back on the morrow at 8 am."
] <spawn> 1000 10
] /s

Saving.

3. Now write the message they see.
> rb room message custom 1000 .
Enter your behavior parameters now.
custom 1000
] <all>
] Mechanical winches pull the chains as the drawbridge is closed.
] /s

Saving.

4. Now to open the drawbridge.
> rb room opensesame hour 8 drawbridge n .
Enter your behavior parameters now.
hour 8 drawbridge n
] <all>
] The drawbridge master yells, "The castle is now open!"
] <spawn> 1001 10
] /s

Saving.

5. And the final message.
> rb room message custom 1001 .
Enter your behavior parameters now.
custom 1001
] <all>
] The clinking of chains  and a loud thump signal the fact
] that the drawbridge is now open.
] /s

Saving.

And there you go! A drawbridge.