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
//Familiar Sight Swap | |
// make a macro with body: | |
// !SwapSight PlayerTokenName FamiliarTokenName | |
on("ready", function() { | |
on("chat:message", function (msg) { | |
if (msg.type === "api" && msg.content.split(' ')[0] === "!SwapSight") { | |
SwapSight(msg); |
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("ready", function() { | |
on('chat:message', function(msg) { | |
if (msg.type === "api" && msg.content.split(' ')[0] === "!AddWep") | |
{ | |
// strips the first bit off of the api command | |
let weaponName = msg.content.replace("!AddWep ", ""); | |
AddWep(msg, weaponName); | |
} | |
}); | |
}); |
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
//TableMaker | |
//Make a character with no sheet. | |
//All attributes are table entries, all current values are weights. | |
//Drag token (can be default) to canvas. Select it. Type !TableMaker <table name> into chat and hit enter | |
//Table name must use dashes for spaces (probably) | |
//Transmog your table over to whatever game you need it for. | |
//This probably sucks, don't use it. | |
on("ready", function() { |
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
// Add other maneuvers as desired. | |
// Select PC tokens tokens, hit !CombatManeuverBatch | |
var generateUUID = (function() { | |
"use strict"; | |
var a = 0, b = []; | |
return function() { | |
var c = (new Date()).getTime() + 0, d = c === a; | |
a = c; |
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("ready", function() | |
{ | |
on("chat:message", function (msg) | |
{ | |
if (msg.type === "api" && msg.content === "!allyEnemy") | |
{ | |
allyEnemy() | |
} | |
if (msg.type === "api" && msg.content === "!fortuneMisfortune") | |
{ |
OlderNewer