IMM_TITLE
Keywords: IMM_TITLE, WIZ_TITLE
=== STAFF MANUAL ===
Usage: title
title <new title>
Description:
Set your own character's title -- for staff, the flavor text
after your name in who listings, score screens, and other places where
your character is introduced. Running title with no argument
resets it to your default staff title.
Mortals use the same command (see TITLE), but for them it sets a
separate custom title shown after their name. Their rank stays in
the title field in front of the name, keeps updating on rank-ups,
and is what scripts read as %actor.title%. A mortal's title
with no argument clears the custom title and resets the rank.
Behavior:
The new title is taken from the rest of the command line
after the command name. Input is normalized as follows:
Leading spaces .... Stripped via skip_spaces.
Dollar signs ...... delete_doubledollar collapses $$
to $ so the title does not double-
escape in act messages.
Length cap ........ MAX_TITLE_LENGTH (50), including
color codes; longer titles are rejected.
Banned codes ...... Flash (``f), beep (``*) and raw
(``[ ``]) codes are rejected, in
either case and as background codes.
An unclosed raw code would print every
later color code on a who list as text.
Output:
On success you see:
Okay, you're now <YourName> <new title>.
Restrictions:
- Available to everyone; the length cap and banned codes apply
to staff as well.
- NPCs are rejected with "Your title is fine... go
away.".
- Characters flagged PLR_NOTITLE by notitle are
refused with:
"You can't title yourself -- you shouldn't have
abused it!"
Notes:
- set <player> title <text> rewrites a character's
title field (a mortal's rank slot); set <player> title default
restores it. string character <name> title <text> does the
same, regardless of the target's PLR_NOTITLE flag.
- set <player> customtitle <text> sets a mortal's custom
title, and set <player> customtitle none clears it. Neither
set field checks the length cap or banned codes.
- To flag another character NOTITLE so they can no
longer retitle themselves, see the notitle staff
command.
Related Helpfiles: TITLE, WIZ_SET
=== END MANUAL ===