Note: This page is no longer being maintained and is kept for archival purposes only.
For current information see our main page.
StoryHarp Kurtz-Fernhout Software
Developers of custom software and educational simulations.
Home ... News ... Products ... Download ... Order ... Support ... Consulting ... Company
StoryHarp
Product area
Help System
Index
Introduction
Definitions
Tutorials
Worlds
Agent
StoryHarp & IF
StoryHarp & Java
Registering

Advanced Tutorial -- Step 5: Clean up some loose ends in the story

----|-- Back | Next | Index

Duplicate a rule

Let
s make two new look commands to handle the vine bridge appearing and disappearing. Make the first rule in this table by clicking New and entering these fields. But make the second rule by clicking Duplicate instead of New and just changing the context field (since everything else will be the same). You should have two new rules as follows.

context
command
reply
requirements
changes
tree house
look
You can go onto a vine bridge attached here.

~bridge broken

tree top
look
You can go onto a vine bridge attached here.
~bridge broken

Add another look command

Let's also add some more feedback while on the vine bridge by adding a new rule that implements a second 'look' command for that context.

context
command
reply
requirements
changes
vine bridge
look
You can enter a tree top or go to a tree house.



You can break replies down into as many rules as you wish. You can control the order the replies get said by raising and lowering the rules in the table. You can think of multiple rules that match a context and command as being logically "OR"ed together. Note that this "look" reply will get said after any other "look" rules because it is the last rule in the table. So, for example, one would always be told of the squirrel or hermit before this sentence is said.

Review all your rules

That's it for creating rules. You should have sixty-one rules if you followed through the entire tutorial.

gif/forest_map_7.gif

The complete forest map

gif/forest_map_8.gif

The complete forest map displaying only contexts

(Created by unchecking the Options | Show Commands In Map menu item)

Here is a transcript that does all the possible actions:

> look

You are in the forest. There are many majestic trees here. You see a big nut on the ground.

> take the big nut

You take the big nut.

> inventory

You are carrying a big nut.

> look

You are in the forest. There are many majestic trees here.

> climb a tree

You climb a tree and can see nothing but tree tops for miles around you.

> look

You are at the top of a huge Sequoia, swaying in the breeze. You see a large tree squirrel following you around. You can go onto a vine bridge attached here.

> look

You are at the top of a huge Sequoia, swaying in the breeze. You see a large tree squirrel following you around. You can go onto a vine bridge attached here.

> pet the squirrel

The squirrel wags its bushy tail and stares at you with love in its eyes. Either that, or it's hungry.

> feed the big nut to the squirrel

The squirrel makes short work of the nut, and in gratitude, scampers off and returns with a small nut made of gold.

> examine the golden nut

This seems to be a missing part from some bolt on a mechanical device somewhere.

> kick the squirrel

The squirrel avoids the blow and scampers off.

> shout hello

Someone shouts back, "Hello there".

> shout how are you

Someone shouts back, "I'm fine. How are you?"

> shout i am fine

Someone shouts back, "Great to hear that".

> shout who are you

Someone shouts back, "Arnie Sachnusem".

> shout where are you

Someone shouts back, "I'm over heeeerrrrreeeee".

> shout nice talking to yout

Someone shouts back, "Nice talking to you, too!"

> go onto the vine bridge

You go onto the vine bridge.

> examine the bridge

The bridge is made of vines, each about the size of your thumb. It looks fairly flimsy.

> cut the bridge

You don't have anything to cut the bridge with. Besides, you are on it!

> jump up and down

The bridge collapses, and you luckily escape destruction yourself by fortuitously falling onto a deep pile of pine needles. Hearing all the noise, a hermit shows up.

> undo

(You decide not to say "jump up and down")

> look

You are walking across a vine bridge. You can enter a tree top or go to a tree house.

> go to the tree house

You go to the tree house.

> look

You are in a swaying tree house. There is a rope ladder here which goes higher into the tree. You see a jewel encrusted knife here. You can go onto a vine bridge attached here.

> take the knife

You take the knife. It fits your hand perfectly. It has a nice balance.

> examine the knife

It is jewel encrusted, mostly with emeralds. It has the initials "AS" carved on the bottom.

> inventory

You are holding a jewel encrusted knife. You are carrying a golden nut.

> climb up the rope ladder

You climb up the rope ladder, which ends just below an owl's nest.

> look

You are climbing on a rope ladder. There is an owl in the nest above you.

> say hello

The owl says nothing.

> say hi

The owl says nothing.

> say who

The owl says "who?"

> say where

The owl says nothing, and then flies off.

> look

You are climbing on a rope ladder. The owl's nest above you is empty.

> climb back to the tree house

You go back down to the tree house.

> look

You are in a swaying tree house. There is a rope ladder here which goes higher into the tree. You can go onto a vine bridge attached here.

> go onto the vine bridge

You go onto the vine bridge.

> cut the bridge

Even though you're standing on it, you cut the bridge. You fall to the forest floor, surviving only because a pile of pine needles cushions your fall. Hearing all the noise, a hermit shows up.

> look

You are in the forest. There are many majestic trees here. There is some vine bridge wreckage here. You see a hermit here.

> examine the vine bridge wreckage

You poke through the remains of what appears to have been a vine bridge. Such vandalism. Bet you somebody gets in trouble for this.

> carve initials into a tree

That would hurt the tree. You start to anyway, and wind up accidentally cutting yourself instead.

> hello sir

The hermit says nothing.

> nice day, isn't it?

The hermit says nothing.

> hello sir

The hermit says nothing.

> nice day, isn't it?

The hermit says nothing.

> do you know who this knife belongs to?

The hermit snatches it out of your hands and says, "mine!"

> give me back that knife!

The hermit says, "Mine!"

> give me back that knife!

The hermit says, "Mine!"

> whose initials are on the knife?

The hermit cowers a little, and tries to sneak a peek at the knife, and then says "Not mine." and hands it back.

> you really should not take things that don't belong to you

The hermit looks at you kind of funny, and walks away.

> undo

(You decide not to say "you really should not take things that don't belong to you")

> they are not mine either

The hermit chants, "Arnie, Arnie, Arnie!" and walks away.

> undo

(You decide not to say "they are not mine either")

> can you tell me anything about this nut?

The hermit snatches it out of your hands and says, "mine!"

> give me back that nut!

The hermit says, "Mine!"

> so whose machinery does the nut belong to?

The hermit cowers a little, and fidgets, and then says "Not mine" and hands it back.

> nice day, isn't it?

The hermit says nothing.

> hello sir

The hermit says nothing.

> they are not mine either

The hermit chants, "Arnie, Arnie, Arnie!" and walks away.

> inventory

You are holding a jewel encrusted knife. You are carrying a golden nut.

> look

You are in the forest. There are many majestic trees here. There is some vine bridge wreckage here.

> climb a tree

You climb a tree and can see nothing but tree tops for miles around you.

> look

You are at the top of a huge Sequoia, swaying in the breeze. You see a large tree squirrel following you around.

> pet the squirrel

The squirrel wags its bushy tail and stares at you with love in its eyes. Either that, or it's hungry.

> slide down the tree

You slide back to the ground.

Home ... News ... Products ... Download ... Order ... Support ... Consulting ... Company
Updated: March 10, 1999. Questions/comments on site to webmaster@kurtz-fernhout.com.
Copyright © 1998, 1999 Paul D. Fernhout & Cynthia F. Kurtz.