This module is designed to enforce speech mannerisms for characters in Foundry Virtual Tabletop. Do you have a character who always starts or ends a message in a certain way? How about one that always uses a certain word somewhere within their message? With this module, you can ensure that you (and your players) include these mannerisms before sending a message as a character.
- Set Per-Actor Mannerisms: Define a unique speech mannerism and its required position for any actor.
- Flexible Positioning:
- Start: The mannerism must appear at the beginning of the message.
- Middle: The mannerism must appear somewhere in the message.
- End: The mannerism must appear at the end of the message.
- Flexible Formatting: The module's validation allows for common separators (like spaces, commas, periods, and hyphens) between the letters of the mannerism. For example, if the mannerism is "hmmm", the message could contain "h-m-m-m" or "h.m.m.m." and still be valid.
- Allow for multiple characters in a mannerism: For example, if the mannerism is "hmmm", the message could contain "h-m-m-m" or "h.m.m.m." and still be valid.
- Advanced Mode Allows you to define your own regex with unicode support for if your use case is more complicated than the simple mode can support.
- Ignore OOC, emotes, whispers, and any messages that contain dice rolls.
- Easy Configuration: A simple dialog allows you to set, change, or clear an actor's mannerism.
- Simple Macro API: A global API is provided to easily open the configuration dialog.
- Translations: The module can be translated into any language: submit a PR or contact me on discord.
- Go to the "Add-on Modules" tab in the "Configuration and Setup" screen.
- Click "Install Module".
- Search for "Eventide Speech Mannerisms" and click "Install".
- Activate the module in your game world's "Manage Modules" settings.
To configure a speech mannerism for an actor, you first need to create a macro or import the macro from the module.
- Navigate to the "Compendiums" tab in the sidebar.
- Find the "Eventide Speech Mannerisms Scripts" compendium.
- Click the "Import" button.
- Find the script in your macros tab.
Alternatively, you can create the macro manually with whatever name and image you want.
-
Navigate to the "Macros" tab in the sidebar.
-
Click "Create Macro".
-
Set the name to something memorable, like "Set Speech Mannerism".
-
Change the "Type" to "Script".
-
In the "Script" field, enter the following command:
game.eventide.speechMannerisms.openDialog();
-
Save the macro. You can now drag it to your hotbar for easy access.
- Click on a token in the scene to select it.
- Click your "Set Speech Mannerism" macro.
- A dialog will appear, allowing you to enter the mannerism (e.g., "you see") and select its position (Start, Middle, or End).
- Click "Save".
Now, whenever anyone speaks as that character, the module will check if their message follows the configured rule. If it doesn't, the message will be blocked, and an error notification will appear.
This project is licensed under LGPL 2.1+. See the LICENSE.md file for more details.