| Here are a couple of basic tips about scripting. I will try to make
more information available as we go along (or maybe next semester or
whenever). 1. Scripts are always attached to doors. Those doors don't
have to go anywhere, they just have to exist. Often you will see doors
that are very tiny and stuck up in a corner or something. They are likely
to have scripts attached to them.
2. Scripts are written in Iptscrae, a "Reverse Polish Notation"
language. That really isn't too difficult (especially if you know pig
latin!)
3. Here is a simple script example:
ON ENTER {
")shipbell" SAY
}
Notice how it works. The ON ENTER tells the script when to execute.
In this case it is when a person enters the room. Then you see the
object that is acted on (")shipbell"). Finally, there is the action:
"SAY."
So this script means that when someone enters the room, the room
should "say" )shipbell, which is a sound, like applause, belch, etc. You
may not have the shipbell sound on your computer, so you won't hear
anything. I, however, will hear the sound of the ship's bell when
someone comes into the room. This will let me know that I should
maximize Palace and find out who it is.
4. Here's another example:
ON ENTER {
"!All conversations on this server are being ridiculed!" 10 10 SAYAT
")guffaw" SAY
}
It's quite similar, except that this one also says some words at a
specific location on the screen.
5. Finally (for now anyway), here's an example that allows a user to
click on an object and open up a specific Web page.
ON SELECT {
"http://www.albertingram.com"
NETGOTO}
This time, the ON SELECT means "when someone clicks this door." the
NETGOTO is the instruction to go to a Web page (or other Internet
protocol specified in the object). And the part in quotation marks is
the object that is acted upon.
Not too tough! I'll try to add more later.
|