Skip to content

Instantly share code, notes, and snippets.

@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
on("ready", function() {
on("chat:message", function (msg) {
if (msg.type != "api") return;
msg.who = msg.who.replace(" (GM)", "");
msg.content = msg.content.replace("(GM) ", "");
var command = msg.content.split(" ", 1);
if(command == "!createMap") {createMap();};
});
});
@BaldarSilveraxe
BaldarSilveraxe / SpellArray
Last active October 10, 2015 19:29
Public DnD 5E Spells
roll20API.spelllist = [
{
Call:"acid_splash",
Name:"Acid Splash",
Class:"Sorcerer,Wizard",
SubClass:"",
Ritual:"N",
Concentration:"N",
Level:"0",
School:"Conjuration",
@BaldarSilveraxe
BaldarSilveraxe / SpellManager
Last active November 11, 2015 00:11
Roll20 API for Spell Management of public DnD 5E Spells
//SpellArray Gist: https://gist.github.com/BaldarSilveraxe/b870375736cce7a7bee0
///Googl File: https://docs.google.com/spreadsheets/d/1U0zeNzWa5ntISV8ILpldk6VsH0UtwIinuTx0NFjbAh0/edit?usp=sharing
on("ready", function() {
on("chat:message", function (msg) {
if (msg.type != "api") return;
msg.who = msg.who.replace(" (GM)", "");
msg.content = msg.content.replace("(GM) ", "");
var command = msg.content.split(" ", 1);
@BaldarSilveraxe
BaldarSilveraxe / E Spell Management System
Last active August 29, 2015 14:06
E Spell Management System
var roll20API = roll20API || {};
roll20API.AbjurationURL = "https://s3.amazonaws.com/files.d20.io/images/5586844/rcLDFgVjvGTtePvJ-681pg/thumb.png?1410738695";
roll20API.ConjurationURL = "https://s3.amazonaws.com/files.d20.io/images/5586847/n156karksxGXY0nzUEyk9w/thumb.png?1410738696";
roll20API.DivinationURL = "https://s3.amazonaws.com/files.d20.io/images/5586852/qSdZ682ZbKyjNxN2LjkSOw/thumb.png?1410738699";
roll20API.EnchantmentURL = "https://s3.amazonaws.com/files.d20.io/images/5586853/JddRZXofOfQcliHENYbO4w/thumb.png?1410738699";
roll20API.EvocationURL = "https://s3.amazonaws.com/files.d20.io/images/5586855/FWcn_55a8FUI5PL0uwyzDg/thumb.png?1410738700";
roll20API.IllusionURL = "https://s3.amazonaws.com/files.d20.io/images/5586836/hPFiw2NZd_NBus7dp3gTNQ/thumb.png?1410738691";
roll20API.NecromancyURL = "https://s3.amazonaws.com/files.d20.io/images/5586835/1ybbxZinU7bItV07K5nWUA/thumb.png?1410738691";
roll20API.TransmutationURL = "https://s3.amazonaws.com/files.d20.io/images
@BaldarSilveraxe
BaldarSilveraxe / Language Script
Last active August 29, 2015 14:06
Roll20 Language Script
var languageAvatar = "https://s3.amazonaws.com/files.d20.io/images/5538325/0OqDji-XRtAd9ilCHbTbOQ/thumb.png?1410447564"
var roll20API = roll20API || {};
var whoSpoke = "";
var whichLanguage = "";
var languageSeed = 0;
var gibberish = "";
roll20API.languageData = [
{
Description: "Dwarven",
@BaldarSilveraxe
BaldarSilveraxe / Updated GEO Code
Created September 11, 2014 14:03
Updated GEO Code for Roll20 Type A pack
var mapName = "GeomorphicMap";
var lineColor = "#00ff00";
var lineSize = 5;
var geomorphicMapId;
var geomorphicMapWidth;
var geomorphicMapHeight;
var geomorphicTilesArray = new Array();
var mapTilesArray = [];
var isError = false;
var errorType = "None.";
var mapName = "GeomorphicMap";
var lineColor = "#00ff00";
var lineSize = 5;
var geomorphicMapId;
var geomorphicMapWidth;
var geomorphicMapHeight;
var geomorphicTilesArray = new Array();
var mapTilesArray = [];
var isError = false;
var errorType = "None.";
{
Call:"shillelagh",
Name:"Shillelagh",
Class:"Druid",
SubClass:"",
Ritual:"N",
Concentration:"N",
Level:"0",
School:"Transmutation",
Component:"V,S,M",
{
Call:"shillelagh",
Name:"Shillelagh",
Class:"Druid",
SubClass:"",
Ritual:"N",
Concentration:"N",
Level:"0",
School:"Transmutation",
Component:"V,S,M",