Skip to content

Instantly share code, notes, and snippets.

@ttocsneb
Last active June 13, 2019 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttocsneb/b253ebd2028067f3ada8a27c2e71ead7 to your computer and use it in GitHub Desktop.
Save ttocsneb/b253ebd2028067f3ada8a27c2e71ead7 to your computer and use it in GitHub Desktop.
A test config for a bot
{
"lookups": {
"test": {
"desc": "a basic 5e stats test",
"uri": "https://gist.githubusercontent.com/ttocsneb/b253ebd2028067f3ada8a27c2e71ead7/raw/a59a33c8d8cebfb8095ae379a5a2bc45f244aaaf/test.json"
}
}
}
{
"stats": {
"stats": {
"str": "top(4,6,3)",
"dex": "top(4,6,3)",
"con": "top(4,6,3)",
"int": "top(4,6,3)",
"wis": "top(4,6,3)",
"cha": "top(4,6,3)",
"prof": "2",
"ac": "{inv.armor} + 10"
},
"mods": {
"str": "mod({stats.str})",
"dex": "mod({stats.dex})",
"con": "mod({stats.con})",
"int": "mod({stats.int})",
"wis": "mod({stats.wis})",
"cha": "mod({stats.cha})"
},
"prof": {
"acroba": "false",
"animal": "false",
"arcana": "false",
"athlet": "false",
"decept": "false",
"histor": "false",
"insigh": "false",
"intimi": "false",
"invest": "false",
"medici": "false",
"nature": "false",
"percep": "false",
"perfor": "false",
"persua": "false",
"religi": "false",
"sleigh": "false",
"stelth": "false",
"surviv": "false"
},
"inv": {
"armor": "0"
}
},
"equations": {
"mod": "floor(({0} - 10) / 2)",
"init": {
"desc": "roll for initiative",
"value": "{mods.dex} + 1d20"
},
"acroba": "if({prof.acroba},{stats.prof},0) + {0}",
"animal": "if({prof.animal},{stats.prof},0) + {0}",
"arcana": "if({prof.arcana},{stats.prof},0) + {0}",
"athlet": "if({prof.athlet},{stats.prof},0) + {0}",
"decept": "if({prof.decept},{stats.prof},0) + {0}",
"histor": "if({prof.histor},{stats.prof},0) + {0}",
"insigh": "if({prof.insigh},{stats.prof},0) + {0}",
"intimi": "if({prof.intimi},{stats.prof},0) + {0}",
"invest": "if({prof.invest},{stats.prof},0) + {0}",
"medici": "if({prof.medici},{stats.prof},0) + {0}",
"nature": "if({prof.nature},{stats.prof},0) + {0}",
"percep": "if({prof.percep},{stats.prof},0) + {0}",
"perfor": "if({prof.perfor},{stats.prof},0) + {0}",
"persua": "if({prof.persua},{stats.prof},0) + {0}",
"religi": "if({prof.religi},{stats.prof},0) + {0}",
"sleigh": "if({prof.sleigh},{stats.prof},0) + {0}",
"stelth": "if({prof.stelth},{stats.prof},0) + {0}",
"surviv": "if({prof.surviv},{stats.prof},0) + {0}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment