Skip to content

Instantly share code, notes, and snippets.

View renatodex's full-sized avatar
🦑
Release the Kraken, but test it please!

Renato Alves renatodex

🦑
Release the Kraken, but test it please!
  • Everlane
  • São Paulo - Brazil
View GitHub Profile
@Bastlifa
Bastlifa / ScreenShaker.js
Last active May 13, 2020 00:08
Roll20 API script to shake the screen, maybe for earthquake
/* 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;
@DarokinB
DarokinB / gist:5826648
Last active November 9, 2020 00:09
[Roll 20 Script] Auto initiative
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!