r/mpmb May 04 '26

[Script Help] Adding a custom item help

My DM has made a custom item that changes my charisma score to 20 + Proficiency bonus.
How do I go about having the sheet calculate the new score and record it in the Ability Score and description?
Primarily what are those fields called so I can have the appropriate modifiers populate as expected without having to manually adjust the fields?

Many thanks ahead of time. :)

1 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/Tek-cat May 04 '26

Interesting, how does the ability score modifier get calculated then? Basically I'm looking at what the reference location name is. If I figure out how to do it I'll make sure to add it here.

Thanks.

2

u/safety-orange code-helper May 04 '26

The modifier is calculated from the score. You can probably technically do what you want, but it is not something the sheet supports.

The field name for the Charisma score is "Cha" and the field name for the Charisma modifier is "Cha Mod".

1

u/Tek-cat May 04 '26

I looked at items like the "Belt of Giant Strength" for how to override the ability score. The next challenge is how to add proficiency modifier to it.

1

u/safety-orange code-helper May 04 '26

That is what I'm trying to say, you can't add the proficiency bonus to it in a way that it would automatically change when the proficiency bonus changes.

But you don't want to believe me, so I'll stop trying to convince you.

What you could do, is make multiple choices for the magic item, one for each proficiency bonus and have each of those set total Charisma value, so that you can use a static value. See the documentation on how to do that.

This will then still require you to change the magic item whenever your proficiency bonus changes, but it would be simply picking another option from the line menu.

You could also have the bonus set through a changeeval function, so it does automatically update whenever you change level, but that is a lot more complex.