Skip to content

Instantly share code, notes, and snippets.

.sheet-pc,
.sheet-npc
{
display: none;
}
.sheet-npc_toggle[value="0"] ~ .sheet-pc,
.sheet-npc_toggle[value="1"] ~ .sheet-npc
{
display: block;
if(!state.timer) {
state.timer = {
timercount: 180,
timerinterval: ""
}
}
else {
state.timer = {
timercount: 180,
timerinterval: ""
for id in useridarray
unless(id.to_s == self.id.to_s)
if(playedarray.include?(id.to_s))
playedarray.insert(id, playedarray.delete_at(playedarray.index("id")))
else
playedarray.push(id.to_s)
end
end
end
@SteveKoontz
SteveKoontz / Shadow Run 1st Edition Initiative API.js
Last active August 29, 2015 14:14
Shadow Run 1st Edition Initiative API
//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.
@SteveKoontz
SteveKoontz / CSS
Created January 20, 2015 17:19
WoD Roll Template
.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;
@SteveKoontz
SteveKoontz / CSS
Last active November 20, 2020 02:22
Pathfinder Spell Template
.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;
.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;
@SteveKoontz
SteveKoontz / gist:618d5db09496ea550f91
Created December 30, 2014 04:56
Savage Worlds Initiative Helper
var iniobj = {
to: [],
po: [],
iniOn: false
};
var inicheck = function() {
iniobj.po = iniobj.to;
iniobj.to = JSON.parse(Campaign().get('turnorder'));
};
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'});
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