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
// This is a "heal" chat command for the roll20 virtual tabletop API. | |
// It can be used to heal all 3 bars for a token by name, | |
// or you can have it heal the tokens for all the characters in your campaign's journal. | |
// | |
// E.g: | |
// Healing one character named "Dave the Dwarf": | |
// !heal Dave the Dwarf | |
// | |
// Healing all characters | |
// !heal all |
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
// This is a script for a chat command that can be used to find a character | |
// token you've misplaced on the map. It can work two ways: | |
// You can specify a token by name, say "Dave the Dwarf", with | |
// !find Dave the Dwarf | |
// or you can find the token for your character with | |
// !find me | |
// | |
// How it works is it generates a very large temporary aura on the token. | |
// The aura shrinks and you can follow it in. | |
// |
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
/** | |
* Converts all decimal numbers in a string to hex. | |
* @param src The source string, possibly containing decimal numbers. | |
* @return The source string with all decimal numbers replaced by | |
* their equivalent hex numbers. | |
*/ | |
public static String decimalInStringToHex(String src) { | |
String result = ""; | |
int last = 0; | |
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
/** | |
* A set of chat commands used to specify a marching order. | |
* When a token moves, the one behind it in the marching order will move to its | |
* former location recursively. | |
* | |
* The following commands are available: | |
* !follow [myTokName], [leaderName] Tells your token specifed by myTokName | |
* to follow another token specified by leaderName. | |
* !unfollow [myTokName] Makes your token stop following other tokens. | |
* You can also have a token stop following another token just by |
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
/** | |
* A set of chat commands used to set tokens to carry other tokens. | |
* When a token moves, the any tokens it is carrying move to its new location. | |
* | |
* The following commands are available: | |
* !carry [carrierName], [carriedName'] Tells your token specified by carrierName | |
* to carry another token. The carried token will remain in place | |
* uder the carrier token. | |
* !drop [carrierName], [carriedName] Tells your token to drop a carried token. | |
* !dropAll [carrierName] Tells your token to drop all carried tokens. |
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
/** | |
* A script that checks the interpolation of a token's movement to detect | |
* whether they have passed through a square containing a trap. | |
* | |
* A trap can be any token on the GM layer for which the cobweb status is | |
* active. Flying tokens (ones with the fluffy-wing status or angel-outfit | |
* status active) will not set off traps unless the traps are also flying. | |
* | |
* This script works best for square traps equal or less than 2x2 squares or | |
* circular traps of any size. |
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
// This script allows the players to summon their familiars. | |
// When summoned, the familiar appears in their | |
// master's square. | |
on("chat:message", function(msg) { | |
var cmdName = "!familiar"; | |
var msgTxt = msg.content; | |
var curPageID = Campaign().get("playerpageid"); | |
// map of familiars to images. | |
var familiarImages = {}; |
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
.charsheet label { | |
display: inline-block; | |
width: 75px; | |
text-align: right; | |
} | |
.charsheet .sheet-attrBox { | |
display:table-cell; | |
border:solid; | |
border-width:1px; |
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
.charsheet { | |
background-image: url("https://sites.google.com/site/roleplayingismagichome/_/rsrc/1385907608270/config/WebsiteBackground_Rough.png.1385907608112.png"); | |
height: 80%; | |
width: 100%; | |
} | |
.charsheet .sheet-everything { | |
height: 90%; | |
margin: 10px 40px; | |
width: 80%; |
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
/** | |
* A script with a command for specifying tokens to follow other tokens. | |
* Simply select the tokens in the marching order and enter the "!follow" | |
* commandwith either a direction for the marching order of the selected tokens | |
* or the name of a token for the selected tokens to follow behind. | |
* | |
* E.G. "!follow west" will make the selected tokens follow each other in order | |
* from east to west, with the westmost token being the leader and the eastmost | |
* token being the caboose. | |
* Alternatively if we want the selected tokens to follow a character named |
OlderNewer