mclemente / fvtt-module-polyglot

Talk to others using a language you can speak and scrambles text you can't understand.
MIT License
41 stars 48 forks source link

Langauge selection has no effect if there's no token on a scene. #297

Closed kristianserrano closed 1 year ago

kristianserrano commented 1 year ago

Describe the bug On a scene without any tokens, language selection in the chat has no effect if a player selects a language and posts a message.

To Reproduce Steps to reproduce the behavior:

  1. Create a Scene without Tokens
  2. Login as a Player with an Actor assigned
  3. Send a Chat Message in a selected language
  4. A regular Chat Message is posted.

Expected behavior I would expect a Chat Message in the selected language to post. Note that the languages in the list are the languages of the assigned Actor

Screenshots Screenshot 2023-07-06 at 12 06 09 AM

mclemente commented 1 year ago

If there's no owned tokens in a scene, messages are sent as Out of Character, e.g. you could use /ic Test and it would show up in the selected language. By default only the GM can speak in a language while OOC, you can change that in Settings > General Settings > Chat > Scramble OOC Chat Messages > All.

kristianserrano commented 1 year ago

Ah, OK! Thanks for the pointer. :)