gurps icon indicating copy to clipboard operation
gurps copied to clipboard

Try to parse Advantage/Disadvantage level as a modifier

Open mjeffw opened this issue 3 years ago • 0 comments

Advantages are often leveled - such as Hard to Subdue - and they give a modifier value per level to certain rolls. For example, each level of Hard to Subdue gives a +1 to HT or Will rolls to remain conscious.

In GCS, the advantage is always written to the character sheet like this: " " where is an integer.

It would be nice to create an OtF such as [Will +A:Hard*to*Subdue] and have that resolve to Will + levels of Hard to Subdue.

The OtF parsing would look through advantages until it matched something like /^[A-Za-z -] +(\d+)$/ and then use the capturing group in the regex as the bonus.

Sometimes the level of the advantage needs to be multiplied by something, such as "Ham Fisted" -- gives -3 per level to DX-based rolls requiring fine motor skills, such as Fast Draw.

Maybe something like: [S:Fast*Draw -A:Ham*Fisted (x3)] ?

mjeffw avatar Jun 25 '21 21:06 mjeffw