Skip to content

Instantly share code, notes, and snippets.

Avatar

BaldarSilveraxe

View GitHub Profile
View markdownDocumentation.js
var markdownDocumentation = markdownDocumentation || (() => {
const version = '1.0.3';
const lastUpdate = 1578236090;
var documentationCSS = '[css]<br>'
+ 'bg {<br>'
+ "padding: 10px; background: AliceBlue; background-image: url('https://i.imgur.com/i9vmkzO.png');<br>"
+ '}<br>'
+ '<br>'
+ 'h1 {<br>'
View markdownNotesBio.js
var markdownNotesBio = markdownNotesBio || (() => {
const version = '1.0.1';
const lastUpdate = 1578078196;
const schemaVersion = 1.0;
const CONFIG = {
apiStart: '<!-- API_markdown -->',
apiEnd: '<!-- API_markdown_end -->'
};
View markdown.js
var markdown = markdown || (() => {
const version = '1.0.9';
const lastUpdate = 1578236090;
const checkInstall = () => {
log('-=> markdown v'+version+' <=- ['+(new Date(lastUpdate*1000))+']');
};
View sword.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View DungeonDraw (REMOVE FIX)
var DungeonDraw = DungeonDraw || (function(){
'use strict';
//settings
var defaultTexture = 'Old School|#18769c',
cssButtonAnchor = ' style="border: 1px solid AliceBlue; background-color: SteelBlue; color: white;" ',
cssButtonSpan = ' style="color: white; font-weight: normal; display: block; width: 150px;" ',
cssButtonAnchorImg = ' style="border: 1px solid Black; background-color: White; color: white;" ',
cssButtonImg = ' style="padding: 0px 0px 0px 0px; outline: none; border: none;" ',
deferred={
batchSize: 30,
View RotatingMadness
/*global on, _, log, createObj, findObjs */
/*jslint white: true, multivar: true, single: true, bitwise: true, browser: true */
var RotatingMadness = RotatingMadness || (function(){
"use strict";
var script = {name: "RotatingMadness", version: 1.0, last_update: 1476924569, schema_version: 1.0},
your_library = [
{imgsrc: "https://s3.amazonaws.com/files.d20.io/images/24366259/sCxV-8v6FO9x9khDM-XPDQ/thumb.png?1476919656", tileName: "mapmaze"},
{imgsrc: "https://s3.amazonaws.com/files.d20.io/images/24366260/OgnC_UlRwWEBaRA1AoFV1w/thumb.png?1476919660", tileName: "spinner"}
View Dynamic_Light_Helper
/*global _, on, createObj, getObj, log, state, findObjs, filterObjs, sendChat, playerIsGM */
/*jslint browser: true, multivar: true, bitwise: true, es6: true */
var Dynamic_Light_Helper = Dynamic_Light_Helper || (function () {
"use strict";
// SETTINGS <===================================================
const CON = {
SCRIPT: "Dynamic_Light_Helper",
VERSION: 2.0,
UPDATE: 1476712215,
View nudge_test.js
/*global _, on, getObj, sendChat */
/*jslint browser: true, multivar: true, bitwise: true, es6: true */
var nudge_test = nudge_test || (function () {
"use strict";
var nudge_action = function (obj, nudge, twist) {
var character = obj.get("represents"), player;
if (_.isEmpty(character)) {
sendChat("API", "just the token. Nudged: " + nudge + " , Twist: " + twist + ".");
// Do something
View map_coordinates|map_adjacent
map_coordinates = function(obj){
var g,l,t,s,v,h,rv,
//size = 91.14378277661477,
//side = 50,
left_h = 46.48512749037782,
top_h = 39.8443949917523,
left_step_h = 69.585127490378,
top_step_h = 39.84439499,
left_v = 37.5992809922301,
top_v = 43.8658278242683,
View deluxe_dungeon_designer
/*global on, _, getObj, createObj, findObjs, state */
/*jslint white: true, bitwise: true, for: true, multivar: true, browser: true */
var deluxe_dungeon_designer = deluxe_dungeon_designer || (function() {
'use strict';
var script = 'deluxe_dungeon_designer',
version = 0.10,
last_update = 1459468801, //Unix timestamp
schema_version = 0.10,
percentChange = 0.3,
You can’t perform that action at this time.