This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* HTML helper functions | |
*/ | |
const hh = { | |
/** | |
* Return a string of style definitions | |
* @param {object} list key-value pairs | |
* @returns {string} style property | |
*/ | |
getStyle: function (list) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Last update : 2024-03-30 | |
* How to use : | |
* - Rename the ModName variable in the factory function declaration | |
* - Change the MOD_COMMAND constant if not the same as the MOD script name | |
* - Rename the ModName reference in the on('ready') callback function | |
* - Change the STATEKEY value. This will be used to save state, as well as the name of the MOD and its API !command | |
*/ | |
var ModName = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Oh-My-Posh | |
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/takuya.omp.json" | Invoke-Expression | |
# Import Modules | |
Import-Module posh-git | |
Import-Module Terminal-Icons | |
Import-Module PSReadLine | |
Import-Module z | |
# Set Modules Options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Usage : | |
* !realname xxxxx | |
* Where xxxxx is the real name of the NPC | |
* If the name contains spaces, replace them by a + in the chat command, as in : | |
* !realname red+blade+assassin | |
* | |
* Add a line to the GM notes on the character sheets | |
* realname=xxxxx | |
* e.g. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Syntax: !metric | |
* This script loops through all tokens in the current page | |
* Any token attached to a character has its lighting properties converted from feet to meters | |
* The page settings are also converted to using 'm' instead of 'ft' | |
* This script must be run by the GM of the campaign | |
* @version : 1.0.0 | |
*/ | |
on('chat:message', function (msg) { |