Languages in Emotes!

By: Razmael, the Synthesist

Hey folks,

I’ve rewritten emote code from the ground up in order to make an entirely new feature possible: languages! You can now insert a language code into an emote following the format of: [action|language|text]


Here’s a breakdown of what that means.
Action: The type of action your speech is. E.g. yelling, speaking. You can give this multiple words, but it’s best to keep it simple.
Language: The language you want to speak. You must know the language, of course.
Text: The speech being said in the language.

For those who understand the language, the ‘action’ text will have ‘, in Minotaur,’ appended to it. For those that don’t understand, it’ll have ‘something in an unknown language’ appended instead.

Here’s a quick example to better showcase how it works.

Input:
emote strikes a pose, [uttering|minotaur|Check out these biceps]
Output to people who speak the language:
Razmael strikes a pose, uttering, in Minotaur, “Check out these biceps.”

Output to people that don’t speak the language:
Razmael strikes a pose, uttering something in an unknown language.

A few other changes and fixes that resulted from this rewrite:
– Speech in emotes now accounts for speech modifiers (e.g. drunkeness, lobanberries, and so on).
– Golems can no longer see and report on phased emotes.
– The next letter following a sentence-ending punctuation will now be uppercased. This includes when you start a sentence with a token like ‘blah blah. $keroc_he’.
– You can now use the ^ self token with gender tokens. e.g. ^_him ^_she ^_his and it’ll correctly sub in with your current pronouns.
– You can now use the @ item/mob token with gender tokens. e.g. @qeddwyn_him and it’ll correctly sub in with the current pronouns for that NPC.
– Support for a new token – $person_himself/herself/themself – which translates to the proper ‘self’ term for the person’s gender. e.g. himself, herself, themself, itself.
– Phased players can now target unphased players with an emote – though, of course, the unphased player won’t see the emote at all. For your own ease of mind, the code will report to you if someone you targetted didn’t see anything.

Also, since there was a full rewrite of emote code, this is a good time to remind you all about the PREVIEW command that lets you preview how an emote appears before sending it. You use it as PREVIEW EMOTE <your emote>. Just in case the old emote system had some strange things you had workarounds for that may not work in the new code, or show up differently.