Support statblock adjustment rules from systems like e.g. Pathfinder 2E #334
JamesYeoman
started this conversation in
Feature Requests
Replies: 1 comment
-
If I understand your goal correctly (I'm not familiar with PF2E), I think you could simply create a copy of the PF2E layout, and add a JavaScript block in the very beginning. In the block, you can define all the rules, like e.g. function eliteAdjustment () {
monster.ac = monster.ac + 2;
if (monster.level <= 1) {
monster.level = monster.level + 10;
} else if (monster.level <= 4) {
// ..
}
// other adjustments
} Some of the rules would probably require you to parse e.g. the In the same JavaScript Block you could programmatically create some radio buttons for each variant. The block would then modify the data based on your implemented rules and everything else would be rendered as usual. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The adjustment rules can be found here on Archives Of Nethys, and all the creature pages have the variants built-in (see the Elite Weretiger, the variant links have query parameters to indicate the variant).
Not quite sure how this would be implemented. Maybe it could be implemented as a custom layout? Or maybe it needs to be implemented as a JS layer over the top, with a radio button to select the variant?
Beta Was this translation helpful? Give feedback.
All reactions