Felderin
March 11th, 2008, 00:32
The n00b, in this instance, would be me. ;)
I'm trying to hack together a somewhat functional character sheet for classic (Moldvay-boxed sets) D&D, using the D20 ruleset as a foundation. I've got the ability modifiers working right, thanks to another post in this forum, but I need a way to alter the initiative modifier to match the rules. Basically, it's equal to Dex bonus - 1 if the Dex bonus is greater than 1. Thus, if the character has a Dex bonus of +1 or +2, then his Initiative modifier would be +1. If he has a Dex Bonus of +3, then his Initiative modifier would be +2. Hopefully, that makes sense.
The problem is, I have no idea how to accomplish this modification. The relevant section of charsheet_main.xml seems to get the value for that field here:
<source>
<name>initiative.misc</name>
<op>+</op>
</source>
I assume that I need to replace this with a script or something, but other than that, I'm lost. Any help would be appreciated!
(I told you I was a n00b!)
I'm trying to hack together a somewhat functional character sheet for classic (Moldvay-boxed sets) D&D, using the D20 ruleset as a foundation. I've got the ability modifiers working right, thanks to another post in this forum, but I need a way to alter the initiative modifier to match the rules. Basically, it's equal to Dex bonus - 1 if the Dex bonus is greater than 1. Thus, if the character has a Dex bonus of +1 or +2, then his Initiative modifier would be +1. If he has a Dex Bonus of +3, then his Initiative modifier would be +2. Hopefully, that makes sense.
The problem is, I have no idea how to accomplish this modification. The relevant section of charsheet_main.xml seems to get the value for that field here:
<source>
<name>initiative.misc</name>
<op>+</op>
</source>
I assume that I need to replace this with a script or something, but other than that, I'm lost. Any help would be appreciated!
(I told you I was a n00b!)