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
/* Screen Shake (really just maps, tokens, and paths) | |
make a macro with the folloing body | |
/w gm &{template:default} {{name=Screen Shaker}} {{[Start](!ScreenShake)}} {{[Shake With Time](!ScreenShake ?{time})}} {{[Stop](!ScreenShakeStop)}} | |
*/ | |
on("ready", function() { | |
var ScreenShakeEnabled = true; | |
on("chat:message", function (msg) { | |
if (msg.type === "api" && msg.content.split(' ')[0] === "!ScreenShake" && playerIsGM(msg.playerid)) | |
{ | |
var shakeTime = 0; |
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
var Combat_Begins = Combat_Begins || {}; | |
Combat_Begins.statName = new Array ("Dex"); //Stats to be added to roll, commas between values | |
Combat_Begins.rollValue = 20; //rolling 1d20, change if you roll 1dXX | |
Combat_Begins.sendChat = true; //True if you want the chat log to show their results | |
Combat_Begins.includeChars = true; //set false if you want to roll for players | |
//If you want players to roll, make this a global macro (add other stats as needed): | |
// @{selected|token_name} rolls a [[ 1d20 + @{selected|Dex} &{tracker} ]] for initiative! |