ScriptableTags

From CoffeeMud Wiki
Revision as of 02:11, 5 January 2020 by Loki (talk | contribs)
Jump to navigation Jump to search
CoffeeMUD
Administrator                                                  Builder                                                              Player
=CoffeeMUD Builder Information=
Basics Praetor     Player Support     Commands     Zapper Masks Advanced Races     Classes     Abilities     Socials     Scripting    
Building Behaviors     Properties     Areas     Rooms     Exits     Items     Mobs Systems Achievements     Crafting     Help Info     Ships     Planes of Existence     Quests     Triumphs    

Throughout the CoffeeMUD system, there are times when designing a script, ability, emote or other feature where the text output to the player may require grammatical modification based on who generates the message and who is receiving the message. The following Scriptable Tags are useful for conforming text output to a more appropriate dynamic display.

Scriptable Tags

Source Tags

Tag Output if Observer=Source Output to all others Other Output
<S-HIS-HER> 'Your' 'His'/'Her'
<S-HIM-HER> 'You' 'Him'/'Her'
<S-NAME> 'You' Source's Name
<S-NAMESELF> 'Yourself' Source's Name
<S-HE-SHE> 'You' 'He'/'She'
<S-SIRMADAM> 'Sir'/'Madam', depending on gender of Source.
<S-MRMS> 'Mr.'/'Ms.', depending on gender of Source.
<S-MISTERMADAM> 'Mister'/'Madam' depending on gender of Source.
<S-IS-ARE> 'Are' 'Is'
<S-HAS-HAVE> 'Have' 'Has'
<S-YOUPOSS> 'Your' (Source's Name)'s
<S-HIM-HERSELF> 'Yourself' 'Himself'/'Herself'
<S-HIS-HERSELF> 'Yourself' 'Hisself'/'Herself'

Target Tags

Tag Output if Observer=Target Output to all others Other Output
<T-HIS-HER> 'You' 'His'/'Her'
<T-HIM-HER> 'You' 'Him'/'Her'
<T-NAME> 'You' Target's Name
<T-NAMESELF> 'Yourself' Target's Name
<T-HE-SHE> 'You' 'He'/'She'
<T-SIRMADAM> 'Sir'/'Madam' depending on Target's gender.
<T-MRMS> 'Mr.'/'Ms.' depending on Target's gender.
<T-MISTERMADAM> 'Mister'/'Madam' depending on Target's gender.
<T-IS-ARE> 'Are' 'Is'
<T-HAS-HAVE> 'Have' 'Has'
<T-YOUPOSS> 'Your' Target's Name with an '`s'
<T-HIM-HERSELF> 'Yourself' 'Himself'/'Herself'
<T-HIS-HERSELF> 'Yourself' 'Hisself'/'Herself'

Verb tenses

You may add a (s) to the end of a verb to attempt to match verb tenses to subject.

Example: <S-NAME> run(s) at <T-NAME>.

Purality

You may add a (s) to the end of a noun to attempt to match quantity to the subject.

Example: <S-NAME> find(s) var coin(s).

Notes

.