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
var iii = iii || {}; | |
var iTurn = iTurn || {}; | |
var combatBegun = combatBegun || {}; | |
var aChars = new Array(); | |
var aSPDchart = new Array(); | |
aSPDchart = ['','12','6,12','4,8,12','3,6,9,12','3,5,8,10,12','2,4,6,8,10,12','2,4,6,7,9,11,12','2,3,5,6,8,9,11,12','2,3,4,6,7,8,10,11,12','2,3,4,5,6,8,9,10,11,12','2,3,4,5,6,7,8,9,10,11,12','1,2,3,4,5,6,7,8,9,10,11,12']; | |
function recoveryAll(tokens) { | |
for(var idCounter=0; idCounter<tokens.length; idCounter++){ |
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 shorthand to create new events in the encounters table. | |
var event = function(freq, msg) { | |
return {message: msg, frequency: freq}; | |
}; | |
// The encounter table. Create a new section and populate it with events. The | |
// event text will be displayed in the GM chat window if it is selected. | |
// Events with a frequency of '3' will happen 3 times as often as events with |
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
/* | |
This is my collection of useful functions to use in other commands/functions. I will keep this top post updated with the list of included functions as I add more. | |
Library includes: | |
- removePlus. Takes string or array of strings and returns the integer after the symbol "+". Useful for getting an integer from a string that represents a bonus like +2. Will also convert any numbers in the string/array of strings to integers. | |
- getAttributeObjects: takes a character object and an array of attribute names, checks the names against the character for existing attributes, error checks them for empty values or existence at all, and returns an array of the attributes' objects. | |
- getCharacterObj: takes a graphic, attribute, ability, or character object and returns the associated character object. |
NewerOlder