2.1.7 Pronoun and Name Substitution
Messages returned by fields such as @success, @drop ,
etc., and also the formatting of a number of commands and programs such
as page, may be dynamically formatted for a player's name and gender:
substitution strings (a % percent mark followed by a key
character) are replaced by the appropriate name or pronoun. Standard
substitution strings are:
%a (absolute) = Name's, his, hers, its.
%s (subjective) = Name, he, she, it.
%o (objective) = Name, him, her, it.
%p (possessive) = Name's, his, her, its.
%r (reflexive) = Name, himself, herself, itself.
%n (player's name) = Name.
Capitalizing the substitution string such as %S
or %R causes the substitute value to be capitalized
as well.
The server examines the /sex property of the triggering
player (or other object type) and substitutes as needed. Supported
values for the sex property are `male', `female', and `neuter'. If the
property is not set, the player's name is used instead.
====================================
> @set $pup = sex:male
Property set.
> @osucc bonk = bonks %r on the head. %S exclaims, "I could
have had a V8!"
Message set.
> pp bonk
Squiggy bonks himself on the head. He exclaims, "I could
have had a V8!"
> @set $pup = sex:neuter
Property set.
> pp bonk
Squiggy bonks itself on the head. It exclaims, "I could
have had a V8!"
====================================
The values for these substitutions may be over-ridden by setting a
property with the same name as the substitution string.
These settings give Squiggy a nickname and some way PC
pronouns...
====================================
> @set $pup = %n:The Squigmeister
Property set.
> @set $pup = %a:hes
Property set.
> @set $pup = %s:s/he
Property set.
> @set $pup = %o:hem
Property set.
> @set $pup = %p:hes
Property set.
> @set $pup = %r:hemself
Property set.
> pp bonk
Squiggy bonks hemself on the head. S/he exclaims, "I could
have had a V8!"
====================================
prev |
toc |
top |
next
|