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
//Standard API command detection... | |
on("ready", function() { | |
on("chat:message", function(msg) { | |
if(msg.type == "api"){processMessage(msg)}; | |
}); | |
}); | |
//Your command processes prefrence | |
processMessage = function(msg) { | |
if(msg.type !== "api"){return}; |
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 mapName = "GeomorphicMap"; | |
var geomorphicMapId; | |
var geomorphicMapWidth; | |
var geomorphicMapHeight; | |
var geomorphicTilesArray = new Array(); | |
var mapTilesArray = []; | |
var isError = false; | |
var errorType = "None."; | |
var sideString = ""; | |
var tilePicked = "Empty"; |
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 mapName = "GeomorphicMap"; | |
var geomorphicMapId; | |
var geomorphicMapWidth; | |
var geomorphicMapHeight; | |
var geomorphicTilesArray = new Array(); | |
var mapTilesArray = []; | |
var isError = false; | |
var errorType = "None."; | |
var sideString = ""; | |
var tilePicked = "Empty"; |
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
/* ------------------- | |
Big thanks to Alex L. | |
https://app.roll20.net/users/71687/alex-l | |
------------------- */ | |
var mapName = "GeomorphicMap"; | |
var geomorphicMapId; | |
var geomorphicMapWidth; | |
var geomorphicMapHeight; |
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("chat:message", function(msg) { | |
// This assumes that you type something like "!fudge 20:+3:7" | |
// which would pretend that a d20 rolled a 7 for a total of 10. | |
if(msg.type == "api" && msg.content.indexOf("!fudge ") !== -1) { | |
var parts = msg.content.replace("!fudge ", "").split(":"); | |
var faces = parts[0]; | |
var modifier = parts[1]; | |
var value = parts[2]; | |
var total = eval(value + modifier); | |
var color="black" |
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
{ | |
Call:"shillelagh", | |
Name:"Shillelagh", | |
Class:"Druid", | |
SubClass:"", | |
Ritual:"N", | |
Concentration:"N", | |
Level:"0", | |
School:"Transmutation", | |
Component:"V,S,M", |
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
{ | |
Call:"shillelagh", | |
Name:"Shillelagh", | |
Class:"Druid", | |
SubClass:"", | |
Ritual:"N", | |
Concentration:"N", | |
Level:"0", | |
School:"Transmutation", | |
Component:"V,S,M", |
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 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."; |
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 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."; |
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 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", |
OlderNewer