Skip to content

Instantly share code, notes, and snippets.

@bloy
bloy / fvtt-swade-token-tooltip-alt.json
Last active October 26, 2022 03:41
Foundry VTT token-tooltip-alt config for Savage Worlds
{
"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 / swade-challenge-tracker.js
Created June 20, 2022 02:58
SWADE challenge tracker macro
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 / boost_lower_trait.js
Last active October 6, 2021 18:25
Foundry VTT Swade System boost/lower trait macro
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");

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: