Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

MonsterHitDice - Not working?

1588578912

Edited 1588578961
Trying to get The Aarons' script working but nothing I do seems to get it going. Here are the details for my config: Version:   Latest  Authors:  The Aaron User Customization Options Bar:   Bar 1  Select the bar to use for hitpoints. Sheet:   DnD 5e - OGL by roll20   Select the character sheet you are using to attempt to preconfigure for that sheet. HitDice Attribute:  Type the name of the attribute used to store the HitDice formula. SRD Embedded Formula:  Select this checkbox if the HitDice attribute has formula in the SRD embedded format '12 (3d4+5)' Separate Constitution Modifier:  Select this checkbox if you store the constitution modifier separately from the HitDice formula. Constitution Attribute:  Type the name of the attribute used to store the constitution value. Constitution is Stat:  Select this checkbox if the Constitution attribute should be converted to a modifier ((CON-10)/2). I have also tried changing it to custom and using the HitDice Attribute as npc_hpformula Still no joy. Here is the sheet set up: Issuing the !mhd command results in: (From ):  Rolling hit dice for 3 token(s). (From ):  Rolling hit dice for 4 token(s). (From ):  Rolling hit dice for 1 token(s). But no change to the tokens on the play area that are selected. I have also tried for 0.3.7 to see if it was an issue with the latest version and that hasn't worked either. Here is a list of the other scripts I currently have set up and running: EasyExperience GroupInitiative BloodiedDead.js TurnMarker.js Torch TokenMod hazInsipiration.js exportTable.js InspirationManager.js Rollable Table Macros Roll20 Audio Master splitArgs Vector Math Path Math MatrixMath HTML Builder Areas of Eff MonsterHitDice
1588597774
The Aaron
Roll20 Production Team
API Scripter
Hmm.  I just tried it locally and it's working for me.  If you want to send me a PM invite and GM me, I can come try and find the issue.
Thanks Aaron, I have sent you a PM :)
1588630126
The Aaron
Roll20 Production Team
API Scripter
Solved.  The OGL 5e Sheet renamed the formula field from npc_HP_hit_dice to npc_hpformula.  I will patch the script, in the interim, users can fix their version by changing to Custom and putting npc_hpformula in the attribute field.  Be sure to check the SRD format checkbox.
Yep, can confirm this has been solved. Thanks for all your help Aaron.
1588651488
The Aaron
Roll20 Production Team
API Scripter
I tracked down that other bug just now.  Where Difficulty Rating breaks the globalconfig.  It's because it ends in a comment, which causes some linkage code injected at the beginning of API scripts that use the globalconfig to not get executed.