This file contains hidden or 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") | |
{ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 === "!DiceMacroSetup") | |
{ | |
if (playerIsGM(msg.playerid)) | |
{ | |
if (!findObjs({_type: 'macro', _playerid: msg.playerid, name: 'd2'})[0]) | |
{ |
This file contains hidden or 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
//TemplateGenerator | |
//Fill in the table TemplateShapes that the script makes using the images from the imgur link | |
//imgur link: https://imgur.com/a/vekJIAg | |
//Also make a macro called ShapeMaker or something, body should read: !ShapemakerMacro | |
//Share that macro with all players. | |
//Warning! This only works on the page that the player tab is on. Make sure to select a token before clicking the shape | |
on("ready", function() { |
This file contains hidden or 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
&{template:npcaction} {{name=Size and Shape}} {{rname=Shape Maker}} {{description=**Circle Radius** | |
[5 ft](!TemplateGenerator Circle 5) | [10 ft](!TemplateGenerator Circle 10) | [20 ft](!TemplateGenerator Circle 20) | [30 ft](!TemplateGenerator Circle 30) | [40 ft](!TemplateGenerator Circle 40) | |
________________________ | |
**Square Side** | |
[10 ft](!TemplateGenerator Square 10) | [15 ft](!TemplateGenerator Square 15) | [20 ft](!TemplateGenerator Square 20) | [40 ft](!TemplateGenerator Square 40) | |
________________________ | |
**Cones** | |
[60](!TemplateGenerator Cone 60 135) -------- [60](!TemplateGenerator Cone 60 90) -------- [60](!TemplateGenerator Cone 60 45) | |
----[30](!TemplateGenerator Cone 30 135) ---- [30](!TemplateGenerator Cone 30 90) ---- [30](!TemplateGenerator Cone 30 45)---- | |
--------[15](!TemplateGenerator Cone 15 135) [15](!TemplateGenerator Cone 15 90) [15](!TemplateGenerator Cone 15 45)--------- |
This file contains hidden or 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
/* | |
* A Simple face changing script. | |
* Make a rollable table with the character name (one word characer name) plus -Faces | |
* Example, character named John Smith | |
* Table name is John-Faces | |
* Fill table with face names, and pictures which you have uploaded. Can't be from purchase or search | |
* Must be uploaded to your library. | |
* Make macro with this body, as token action macro: | |
* !FaceChange John-?{Face|Normal|Soldier|Popper|Pirate|Noble|Elder|Cleric} | |
* Where those options (other than the title "Face") are the names of the items in your rollable table. |
This file contains hidden or 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 === "!ShowHealth") | |
{ | |
var page = getObj('page', getObj('player',msg.playerid).get('lastpage')).id; | |
var tokens = findObjs({type: 'graphic', _pageid: page}); | |
for (var i=0; i<tokens.length; i++) | |
{ | |
if (tokens[i].get("bar1_value")) |
NewerOlder