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
// WoD Damage/Status Tracker v1.2 | |
// Bashing, Lethal, and Aggrivated damage are marked on the selected token | |
// The 'API' commands are, "!b", "!l", "!a" respectively. | |
// I.E. "!b 3" would put 3 bashing on the token. | |
// If there is a character attached to the token and it has the attirbutes 'Bashing','Lethal','Aggrivated','Health','Vitae' | |
// then the script will record and update the sheet as well as automatically applying a wound penalty status icon. | |
// The status icons being used are Bashing = 'fist', Lethal = 'skull', Aggrivated = 'chemical-bolt', Wounded = 'pummeled' | |
on('chat:message', function(msg) { | |
if(msg.type != 'api') return; |
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
h3 { | |
font-family: times; | |
} | |
.charsheet input[type=text].sheet-char_name { | |
display: inline-block; | |
width: 90%; | |
font-family: "Times"; | |
font-size: 24px; | |
text-align:center; |
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 spinme = function(otoken) { | |
otoken.set({rotation: otoken.get("rotation")+10}); | |
if(otoken.get("rotation") === 360){ | |
otoken.set({rotation: 0}); | |
}; | |
log(otoken.get("rotation")); | |
} | |
on('chat:message', function(msg) { | |
if(!(msg.selected && msg.selected.length > 0)) return; // Make sure there's a selected object |
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('chat:message', function(msg) { | |
if(msg.type != 'api') return; | |
var parts = msg.content.toLowerCase().split(' '); | |
var command = parts.shift().substring(1); | |
var selected = msg.selected; | |
if(command != 'blue' || !selected) return; // use the !blue command, and have one or more things selected | |
var count = +parts[0]; | |
if(!count) count = 0; // if no height is returned, treat as 0 | |
_.each(selected, function(obj) { | |
if(obj._type != 'graphic') return; // only blue graphics |
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 iniobj = { | |
to: [], | |
check: '', | |
idx: 0 | |
}; | |
var inicheck = function() { | |
iniobj.po = iniobj.to; | |
iniobj.to = JSON.parse(Campaign().get('turnorder')); | |
iniobj.check = _.find(iniobj.to, function(obj) { return obj.custom == 'Initiative Pass'}); |
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 iniobj = { | |
to: [], | |
po: [], | |
iniOn: false | |
}; | |
var inicheck = function() { | |
iniobj.po = iniobj.to; | |
iniobj.to = JSON.parse(Campaign().get('turnorder')); | |
}; |
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
.sheet-rolltemplate-5eAttack table { | |
width: 189px; | |
padding: 2px; | |
border: 1px solid; | |
background-color: #ffffff; | |
} | |
.sheet-rolltemplate-5eAttack th { | |
color: rgb(126, 45, 64); | |
padding-left: 5px; |
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
.sheet-rolltemplate-pf_spell table { | |
width: 100%; | |
padding: 2px; | |
background:url(http://i.imgur.com/BLb0XMU.jpg) top left repeat; | |
} | |
.sheet-rolltemplate-pf_spell th { | |
color: rgb(233, 223, 151); | |
background-color: rgb(63, 32, 33); | |
padding-left: 5px; |
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
.sheet-rolltemplate-wod table { | |
width: 189px; | |
height: 189px; | |
padding: 2px; | |
background: url(http://i.imgur.com/xBk4U1p.jpg) top left; | |
background-size: 189px 189px; | |
background-repeat: no-repeat; | |
font-family: "Courier New", Courier, monospace; | |
font-weight: bold; | |
border-spacing: 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
//TO USE THIS: | |
// To make an initiative roll, have the player do their normal intiiative roll, and add "!init" on the end. For example | |
// /roll 3d6+5 !init | |
// This will show the roll like normal, plus auto-add turns to the turn tracker for them for each multiple of 7. | |
// | |
// The GM can also easy clear the turn tracker by doing: | |
// !clearinit | |
// | |
// You can also apply a damage penalty to your current initiative by using the "!dmg" command followed by a nymber. | |
// For example: "!dmg 1" would subtract 1 from all of your character's initiative scores. |
OlderNewer