or, A Few Notes on Palace Scripting
What is The Palace?
What about Props?
Okay, I stole that title from
So sue me already.
In our current context, we mean your Cyborg conciousness, the hidden
software wrapped around your wetware as you enter the Palace. Your bot.
Your Script. Oryae iptscrae. Your finger.
If you can see this, you are using a web browser without frames.
Get real! And good luck!
If this is your first foray into the wide world of bots, look at your finger.
Open your cyborg.ipt file with your favorite text editor
(BBEdit, vim (my favorite), Alpha, Microsoft
Word...), and look for the word "finger."
The language of Palace scripts is called iptscrae. Rather than throw
a dictionary at you, I suggest peering occasionally at
the official docs
as we go along.
Okay, search for "finger" in your Cyborg.ipt file.
If you find code that looks like this:
; this is your FINGER information - replace the stuff in quotes with
; information about yourself.
"<insert e-mail>\x0d" +
} CHATSTR "finger" == CHATSTR ";finger" == OR
WHOCHAT WHOME == NOT AND IF
then your finger stinks! Your first task should be to change this
stuff, because having it in there makes you look like a weenie.
What is this finger stuff anyway? It's provided as a way for other users
to identify you, and for you to identify them. It's in your INCHAT handler
that is, it runs when someone else says something. In particular,
when they say "finger" or ";finger" to you, either as regular text or a
whisper. You will automatically whisper back to them (
PRIVATEMSG translates into English as "Send the preceding text as a
whisper to whoever is chatting at me").
You can have just about any kind of code in your "finger" response, from
simply your name and e-address, to any kind of complicated animation you
can dream up. In terms of looking like a dork, I'd actually suggest
completely removing your finger code over leaving it with that
"<insert e-mail>" hanging there!
Here's a simplified version of the Doc's own finger code.
";finger" WHOCHAT PRIVATEMSG
"@10,10 ^" USERNAME &
": Conqueror of Scotland\x0d" &
} lowchat "finger" ==
lowchat ";finger" == OR
WHOCHAT WHOME == AND IF
What's the difference?
Not much work at all, but we've already gone a long way toward making our
personal bot skills the pride of the palace by starting on the stuff
- First, we immediately ";finger" the curious user right back!
- Next, we start our finger reply with "@" before the
"^" to jam it off into
a corner, rather than obscure ourselves with a text box.
- We use the
USERNAME command to get our name
from the Preferences dialog, rather than "hard-wiring" it. So
if you change your name from "Fat Albert" to "Prince
you needn't change the code (Then again, maybe you'd rather use
your name IRL, in which case self-tuning name code isn't needed).
- Web address, e-mail address... toss in what you like. Chaos is good
for your brain. The
"\x0d" parts of the string
indicate forced carriage returns in the text.
- We've also changed the "+" signs to "&"
signs, just to make it a tiny bit clearer that we're concatenating
strings here, not adding numbers.