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

Intermediate Tutorial -- Step 2: Add music

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

Add music

Let's try out adding background
music whenever the world loads or starts a new session, remembering that the command of the first rule is done in such cases. Click the Table tab to show the table. Then select the first rule (the one that has the context "forest" and the command "look"). Place the editing cursor at the beginning of the text in the reply field by clicking there with the mouse. Then press the Music button. In the resulting file dialog, find a MID or RMI file. If you are running WIN/NT, go to your windows directory, and then to the media directory inside it, and then pick a MID file (such as passport.mid). If there are no MID or RMI files there, try looking somewhere else. There may be some included in the StoryHarp executable's directory.

The reply field of the first rule will now read something like this:

{music passport}You are in the forest. There are many majestic trees here."

Test the reply

First, make sure the Settings | Play Music is turned on in the player window so you can hear the music. Then save your world with World | Save. Now load the world again via the Session | New for World menu item in the player window. You should hear the music play. If you get tired of it, you can use the Settings | Play Music menu item to turn it off.

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.