Last active
June 13, 2019 22:58
-
-
Save ttocsneb/b253ebd2028067f3ada8a27c2e71ead7 to your computer and use it in GitHub Desktop.
A test config for a bot
This file contains 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
{ | |
"lookups": { | |
"test": { | |
"desc": "a basic 5e stats test", | |
"uri": "https://gist.githubusercontent.com/ttocsneb/b253ebd2028067f3ada8a27c2e71ead7/raw/a59a33c8d8cebfb8095ae379a5a2bc45f244aaaf/test.json" | |
} | |
} | |
} |
This file contains 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
{ | |
"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