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
const SpeechBalloon = (() => { // eslint-disable-line no-unused-vars | |
const version = 0.1; // eslint-disable-line no-unused-vars | |
const schemaVersion = 0.4; | |
const defaultShowLength = 4; // seconds | |
const msPerSec = 1000; // for conversions.. no magic numbers! | |
const checkStepRate = 1000; //ms = 1 second | |
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
on('ready',()=>{ | |
const blockElements = [ | |
'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'ul', 'pre', 'address', | |
'blockquote', 'dl', 'div', 'fieldset', 'form', 'hr', 'noscript', 'table','br' | |
]; | |
const rStart=new RegExp(`<\\s*(?:${blockElements.join('|')})\\b[^>]*>`,'ig'); | |
const rEnd=new RegExp(`<\\s*\\/\\s*(?:${blockElements.join('|')})\\b[^>]*>`,'ig'); | |
const getLines = (str) => |
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
/* | |
Calendar for Mundana | |
Created by Kirsty (https://app.roll20.net/users/1165285/kirsty) | |
and sabotaged to an extreme extent by dancodan, also cramed in some swedish here and there.. | |
Many thanks to Aaron (https://app.roll20.net/users/104025/the-aaron) for his NoteLog script, parts of which I "borrowed" | |
API Commands: | |
!cal (as Player) - Shows world, date, time, moon, weather and counted days | |
!cal (as GM) - Same as player but includes options to advance the date/time, alter the weather, add a note or view the settings menu. | |
!calSet (GM only) - Allows the GM to change the world, date, time display, show/hide days until full moon, adjust day counter or set the start date | |
Red Colour: #7E2D40 |
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
/* | |
Easy Experience Script: | |
This script will create a character called ExperienceThresholds that it uses for most of its functionality. If there is already an | |
ExperienceThresholds character present, it will not make one; please make sure that you do not have a self-made ExperienceThresholds character | |
(highly unlikely I would think ;) ) | |
---------------------------------------------------------------------------------------- | |
Use the following chat commands to utilize this script: | |
!xp challenge @{token_id/character_id}: Adds a character's npc-xp attribute value to the Session XP tally in the ExperienceThresholds character. | |
!xp miscXP ###: Adds a manually entered XP value to the Session XP tally in ExperienceThresholds. | |
!xp session: Divides the Session XP by the number of PCs (defined as characters that have a player-name entry), adds that xp to each PC's |
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
on('ready',function(){ | |
"use strict"; | |
var leftOffset = 20, | |
topOffset = 30, | |
hpleftOffset = 20, | |
hptopOffset = 24, | |
spleftOffset = 23, | |
sptopOffset = 34, |
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
// GIST: https://gist.github.com/shdwjk/48370c09788e11263d32/edit | |
// Fork of Stephen L.'s carry script | |
// Addition: using isGM() script for checking who is a GM | |
// Correction: Removed use of for(in) which was causing crashes as it parses the | |
// object's prototype's properties as well, not just the properties. | |
// | |
/** | |
* A set of chat commands used to set tokens to carry other tokens. | |
* When a token moves, the any tokens it is carrying move to its new location. | |
* |