Skip to content

Instantly share code, notes, and snippets.

@bloy
bloy / swade-challenge-tracker.js
Created Jun 20, 2022
SWADE challenge tracker macro
View swade-challenge-tracker.js
const SOCIAL = "Social Conflict (6 tokens, 3 rounds)";
const DRAMATIC_CHALLENGE = "Challenging Dramatic Task (4 tokens, 3 rounds)";
const DRAMATIC_DIFFICULT = "Difficult Dramatic Task (6 tokens, 4 rounds)";
const DRAMATIC_COMPLEX = "Complex Dramatic Task (8 tokens, 5 rounds)";
const CUSTOM = "Custom (see below)";
let dialogData = [
{type: 'radio', label: SOCIAL, options: ['choice', false]},
{type: 'radio', label: DRAMATIC_CHALLENGE, options: ['choice', false]},
{type: 'radio', label: DRAMATIC_DIFFICULT, options: ['choice', false]},
{type: 'radio', label: DRAMATIC_COMPLEX, options: ['choice', false]},
@bloy
bloy / fvtt-swade-token-tooltip-alt.json
Last active Oct 24, 2021
Foundry VTT token-tooltip-alt config for Savage Worlds
View fvtt-swade-token-tooltip-alt.json
{
"gmSettings": {
"default": {
"items": [
{
"disposition": "FRIENDLY",
"items": [
{
"value": "let val = \"\";\nif (data.wildcard) {\n\tval = \"🃏 \";\n}\nif (data.bennies.max > 0 || data.bennies.value > 0) {\n\tval += data.bennies.value + \"/\" + data.bennies.max;\n}\nreturn val;",
"icon": "$Bennies:",
@bloy
bloy / boost_lower_trait.js
Last active Oct 6, 2021
Foundry VTT Swade System boost/lower trait macro
View boost_lower_trait.js
main()
const UPICON = "/icons/svg/up.svg"
const DOWNICON = "/icons/svg/down.svg"
async function main() {
let tokens = []
game.user.targets.forEach(token => {tokens.push(token)})
if (tokens.length == 0) {
ui.notifications.error("No tokens targeted");
View keybase.md

Keybase proof

I hereby claim:

  • I am bloy on github.
  • I am bloy (https://keybase.io/bloy) on keybase.
  • I have a public key whose fingerprint is 1CFE 2E20 7703 E074 5FAF 5D43 0803 3B8C 075B 3F10

To claim this, I am signing this object: