Announce post #3222: Languages in emotes

AutoposterAutoposter BotBot
edited September 2021 in Announce posts
9/23/2021 at 13:03
Razmael, the Synthesist
Everyone
Languages in emotes

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.


Penned by my hand on Tisday, the 3rd of Haernos, in the year 497 MA.
RouxAyastiaValorieReaveLinSibattiSeurimasJhuraTetchtaEakuXaspherTeaniIctinusSryaenEleneRhineSaltz

Comments

  • Does this include the they/them token being fixed?
    Araseth
  • RazmaelRazmael Administrator, Immortal
    edited September 2021
    Ayastia said:

    Does this include the they/them token being fixed?

    I don't see anything in the bug system matching this, so if it's not, please file one if the rewrite didn't fix it.
    Lin
  • SibattiSibatti Mamba dur Naya Amidst vibrant flora and trees
    Raz..... you sonofa unicorns.... <3
    Lin
  • LinLin Blackbird The Moonglade
    Amazing. I'd been hoping Aetolia would get something like this for YEARS, ever since I saw it in Midkemia. Razmael really did it again
  • It's amazing what he can do without Mining hanging over his head. :D
    She/her but also responds to they/them thanks to chilling as Somebody or other.

    If in doubt, please refer to the Forum Rules! If in more doubt, please reach out to a moderator.

    Act as you would wish to be treated.

    "It costs you nothing to assume that we are acting in good faith."
    TeaniTetchtaTaiyang
  • Razmael said:
    Does this include the they/them token being fixed?
    I don't see anything in the bug system matching this, so if it's not, please file one if the rewrite didn't fix it.
    Will do. Just have to find a they to test with. Hehehe
Sign In or Register to comment.