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 .
×

Rolls Hit Dice for Selected API

This API allows you select several tokens at once and roll their hit points based on the hit dice you entered into the character sheet. Command !hdset Hit points go into Bar 1 of token. <a href="https://github.com/earmarkaudiology-png/Roll-Hit-Points-1e/blob/main/!hdset" rel="nofollow">https://github.com/earmarkaudiology-png/Roll-Hit-Points-1e/blob/main/!hdset</a>
1775088152
vÍnce
Pro
Sheet Author
I'll need to add this to the sheet's wiki with your other mods.&nbsp;&nbsp; <a href="https://wiki.roll20.net/ADnD_1st_Edition_Character_sheet#API_Mods" rel="nofollow">https://wiki.roll20.net/ADnD_1st_Edition_Character_sheet#API_Mods</a> Thanks Rotto
Thanks! I was wondering about the Armor Class for the monsters tab. It changes back to 10 when you set it to something else. Any ideas?
1775096690

Edited 1775096865
vÍnce
Pro
Sheet Author
There is an attribute called @{is_npc} (it's the PC|NPC toggle at top right of the sheet).&nbsp; Without testing... I believe you need to have @{is_npc} = 1 to override the PC side of the sheet, auto-calculating AC based on the Armor Details.&nbsp; A sheet user must have the sheet set to NPC to see the monster AC, so it's taken care of "naturally".&nbsp; But the API can set attributes without actually "seeing" the monster tab to set AC.&nbsp; Try setting is_npc&nbsp; to 1 before&nbsp; setting armorclass for a monster.&nbsp; Let me know if that works.
Just unlinking them on the PC page seems to fix that. The attribute was 1 but without unlinking it would shift back.&nbsp;
1775188333
vÍnce
Pro
Sheet Author
And Bob's your uncle. Now I'm wondering if I should include the "Sync AC" option on the NPC page just help make it obvious that you might want to un-sync for Monsters.