Skip to content

Instantly share code, notes, and snippets.

@SteveKoontz
SteveKoontz / CSS
Last active November 20, 2020 02:22
Pathfinder Spell Template
.sheet-rolltemplate-pf_spell table {
width: 100%;
padding: 2px;
background:url(http://i.imgur.com/BLb0XMU.jpg) top left repeat;
}
.sheet-rolltemplate-pf_spell th {
color: rgb(233, 223, 151);
background-color: rgb(63, 32, 33);
padding-left: 5px;
@BaldarSilveraxe
BaldarSilveraxe / DungeonReadyDoors
Last active August 29, 2015 14:11
Roll20 API to be used with Dungeon Ready Tiles and scripts
// GIST: https://gist.github.com/BaldarSilveraxe/3b09ede4260a39ab491c
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~
!readydoors
~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
var DungeonReadyDoors = DungeonReadyDoors || (function(){
'use strict';
var version = 0.1,
@BaldarSilveraxe
BaldarSilveraxe / DungeonReadyScript
Last active February 10, 2019 02:56
Complete Set of Sample Images to Make Your "Dungeon Ready" (Random Dungeon Generator and Dynamic Lighting for Walls and Doors with Editing UI)
// GIST: https://gist.github.com/BaldarSilveraxe/fe582e5845d38d64d76a
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~
!dungeonready
~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
var DungeonReady = DungeonReady || (function(){
'use strict';
var version = 0.2,
@BaldarSilveraxe
BaldarSilveraxe / DungeonReadyImageSetup.js
Last active August 29, 2015 14:10
DungeonReadyImageSetup
function dungeonreadytiles(action) {
var dungeonReadyTiles = [
{name: "Geo_B_0001", shortName: "0001", edge: false, corner: false, entrance: false, connections: 0, side: 0, sample: "6394851/qTICq2-wIRiPAQLPKJPZxA/med.jpg?1416264499"},
{name: "Geo_B_0002", shortName: "0002", edge: false, corner: false, entrance: false, connections: 2, side: 1, sample: "6394853/g4WzTQB7_Vi2ESuBHRo2Fw/med.jpg?1416264511"},
{name: "Geo_B_0003", shortName: "0003", edge: false, corner: false, entrance: false, connections: 2, side: 2, sample: "6394855/1FZhOFWMOa3ytVsRvP9sWQ/med.jpg?1416264522"},
{name: "Geo_B_0004", shortName: "0004", edge: false, corner: false, entrance: false, connections: 2, side: 3, sample: "6394858/NMiQBhwXAGqJxf0DwXhNHQ/med.jpg?1416264533"},
{name: "Geo_B_0005", shortName: "0005", edge: false, corner: false, entrance: false, connections: 2, side: 4, sample: "6394860/K5gQosh6CK8FYlbpwWso0w/med.jpg?1416264542"},
{name: "Geo_B_0006", shortName: "0006", edge
@shdwjk
shdwjk / TokenNameNumber.js
Last active October 17, 2015 14:30
Roll20 API: TokenNameNumber - Automatic Numbering of select tokens
// GIST: https://gist.github.com/shdwjk/6968e757c2bf9a7371fb
var TokenNameNumber = TokenNameNumber || (function() {
'use strict';
var version = 0.21,
schemaVersion = 0.1,
escapeRegExp = function(str) {
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
@shdwjk
shdwjk / TokenMod.js
Last active October 17, 2015 14:30
Roll20 API: TokenMod -- An interface to adjusting properties of a token from a macro or the chat area.
// GIST: https://gist.github.com/shdwjk/357e0632a1096375de58
var TokenMod = TokenMod || (function() {
'use strict';
var version = 0.53,
schemaVersion = 0.1,
fields = {
// booleans
@shdwjk
shdwjk / GroupInitiative.js
Last active October 17, 2015 14:31
Roll20 API: GroupInitiative -- adds the selected tokens to the turn order after rolling their initiative + dex mod and taking the lowest number.
// GIST: https://gist.github.com/shdwjk/91a2d2b076f687eb8406
var GroupInitiative = GroupInitiative || (function() {
'use strict';
var version = 0.41,
schemaVersion = 0.5,
bonusCache = {},
statAdjustments = {
'Stat-DnD': {
@shdwjk
shdwjk / Torch.js
Last active August 29, 2015 14:04
Roll20 API: Torch -- A simple script for giving lights to tokens and turning off and on dynamic lighting.
// GIST: https://gist.github.com/shdwjk/342cb67457936702fd8a
var Torch = Torch || (function() {
'use strict';
var version = 0.7,
schemaVersion = 0.1,
flickerURL = 'https://s3.amazonaws.com/files.d20.io/images/4277467/iQYjFOsYC5JsuOPUCI9RGA/thumb.png?1401938659',
flickerPeriod = 400,
flickerDeltaLocation = 2,
@shdwjk
shdwjk / Walls
Last active August 29, 2015 14:02
Roll20 API: Walls -- building dynamic lighting walls with an exported SVG path file
// GIST: https://gist.github.com/shdwjk/7a9c3ce232961662b69c
var Walls = Walls || {
version: 0.1,
schemaVersion: 0.2,
CheckInstall: function() {
if( ! _.has(state,'Walls') || state.Walls.schemaVersion != Walls.schemaVersion)
{
/* Default Settings stored in the state. */
@shdwjk
shdwjk / IsGMModule
Last active January 26, 2024 21:44
Roll20: IsGM module -- adds a function, isGM(id), which returns true for gms and false for players. GM database is built in the state object automatically as players and gms send chat messages.
// GIST: https://gist.github.com/shdwjk/8d5bb062abab18463625
var IsGMModule = IsGMModule || {
version: 0.6,
active: true,
reset_password: "swordfish",
CheckInstall: function() {
var players = findObjs({_type:"player"});