1 Attachment(s)
5E Sanity Extension : Help?
Hi there. I was just hoping to get some help with a small little extension I've been playing around with. The group that I play with utilizes the Sanity optional rule, and I'm trying to add that in as an ability score. As it has been, we have just been tracking it via a custom skill check, but I figured I'd try my hand at going a bit more in-depth.
As a note, I'm primarily just trying to get the rolls to work off the character sheet. I know there is probably some stuff back-end concerning the combat tracker, but we'll get there xD Sanity saves are almost always manually rolled via the player playing the character, so back-end GM stuff isn't a high priority (yet).
I've gotten this MOSTLY working. Sanity appears on the main character page under the other abilities and saves. The modifiers are calculated appropriately, and when rolled it comes up as either a sanity check or save.
HOWEVER, the roadblock I hit is when you roll the sanity check/save, the modifier it adds is the ability score - not the appropriate modifier.
I'm not sure where to go from here in order to fix it. I'm not lua/xml proficient yet - it's a learning process that I'm kind of slowly working through by making little extensions like this. It's as much as learning experience for me as anything else so that I can (hopefully) do some more fun stuff for my group in the future. I know right now things are probably a bit sloppy seeing I'm piecing formatting and such together from what I have observed in other extensions. My main realm of coding expertise is in the design realm with CSS/HTML/ and that such, so programming is a new ballpark for me.
Here is the extension file I have so far, which will hopefully help.