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

Basic Tutorial -- Step 2: Create a context with a description

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

Create a location

Let
s make some locations. First, let's make a new rule. Choose Rule | New Rule from the menu to create a new rule. Click in the context field of the rule in the rule editor panel (the first field, with the Context button). Type the word "forest" (without the quotes) in the context field. Now press Tab. The cursor should move to the field labeled "command". Type "look" in the command field. Then press Tab. The cursor should move to the field labeled "reply". In the reply field, type: "You are in the forest. There are many majestic trees here."

Test the location by clicking on the command

Now let's test our work. Bring up the player window. In the player window, pick Session | Restart. You should now see the command "look" in the command list (the panel below the top transcript panel). Click on it. You should see something like this in the transcript:

> look

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

If you have this working, great! If not, review the steps above to see where something went wrong. You might have two rules instead of one with the first one blank. Since we're just getting started, you can just make a new file and try again.

Test the location by saying the command

If you have Microsoft Agent and a speech recognition engine installed, you can activate this command by pressing the Agent listening key (probably Scroll Lock) and saying "look" while you hold down the key. If you have a Text-To-Speech Engine installed which Agent recognizes and is useable by the currently selected Agent character, and you have Settings | Speak checked in the player window, you will also hear speech when you do the command. If you can do this, try it now.

How the first rule is special

The first rule in a world file has a special privilege. The command in it is automatically done whenever the world file is loaded or restarted. To try this out, pick the Session | Restart menu item in the player window. You will be prompted to save the session (you can choose No), the transcript will clear, and you should see the "look" command and the reply appear in the transcript.

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.