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

[Help] NPC Sheet Issue: Making Saves and Skills show automatically

1648780358

Edited 1648836888
the tldr for my issue is simply, is there a way to make Saving Throw bonuses and Skills sections appear on an NPC sheet just by entering values? Is there a flag or something I need to set in the Attributes &amp; Abilities section? The long story is that I found an old script ( <a href="https://app.roll20.net/forum/post/1612177/script-statblock-import-for-5e-character-sheet/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/1612177/script-statblock-import-for-5e-character-sheet/?pagenum=1</a> ) for importing NPC/Monster stat blocks into a character sheet and figured I'd take a crack at updating it enough for my purposes since I didnt find any current ones. But despite setting what seems to be all the necessary attributes in the Attributes &amp; Abilities section, the Saving Throws and Skills section wont show on the sheet till I edit the sheet and adjust a value and then stop editing. My values are all there, imported as expected when you edit the sheet but it just wont show them without you poking it to realize it should show them. For saves I've been setting "npc_att_save_base", "attribute_save_bonus", and "npc_att_save_flag". For skills: "npc_skill_base" and "npc_skill_flag". I've been looking at delivered character sheet's attributes and abilities to see if I'm missing something and to make sure I have the right attributes and can't find anything I'm missing. And when I add these to a sheet that doesnt already have Saves and/or Skills already displayed adding these manually as attributes instead of using the script doesnt work either. Thanks! Sorry if it is a bit all over the place. EDIT: the character sheet is the default D&amp;D 5E by Roll20.
1648781547

Edited 1648781564
GiGs
Pro
Sheet Author
API Scripter
When using a character sheet, the Attribites list on Attributes &amp; Abiliities tab should only be used when adding attributes that don't exist on the sheet, but you have a need for. You should completely ignore that tab otherwise. If those attributes exist on the sheet, you need to find what the attributes are actually called there-&nbsp; you can do this by rightclicking an attribute box and selecting Inspect.
Oh, I'm not having any trouble with setting them. It is just getting those two sections to display. On a related note, you wouldn't happen to know how to create Traits or Actions through the API? I am looking and can see a way to reference them with macros but when creating an object I don't see what they are listed anywhere...
1648790082

Edited 1648790105
GiGs
Pro
Sheet Author
API Scripter
Unfortunately, I'm not familiar with the sheet you are using so can't answer questions specific to the sheet. Hopefully someone else can.
GiGs said: Unfortunately, I'm not familiar with the sheet you are using so can't answer questions specific to the sheet. Hopefully someone else can. Ah, sorry. I should have mentioned in the first comment, just the default D&amp;D 5E by Roll20.
1648793262

Edited 1648793490
Oosh
Sheet Author
API Scripter
Those sections don't exist on the NPC sheet. Unless you mean the 'Skills' line? You can't see that? And what do you mean by 'creating a trait / action'. Do you want to automate repeating sections for your players? Or is this for importing stat blocks? Are you trying to code something, or looking for something that already exists? If it's a stat-block =&gt; repeating section converter you want... that's a bit of work. Flat text needs to be deconstructed into a whole bunch of attributes in a repeating row, and they're highly specific to each sheet &amp; section. Something like a Trait is simple (name / description), something like an Action is not. Plenty of room to cause crashes there since some of the attributes go to the dice roller.
You do not want to make saves and skills show when they don't matter.&nbsp; That creates data fields on the sheet that are not needed and adds to clutter.&nbsp; A wisdom save from a creature who is not proficient in wisdom is simply a d20+wis mod which is the same as clicking WIS on the sheet.&nbsp; Same goes for a perception roll without proficiency in it.&nbsp;&nbsp;
Having Saving Throws and Skills show when they aren't set would be annoying, but when I am setting them I would like them to, same as if I set them manually. Since my script is setting values for them I would like those ones to show. Here are the sections I mean: Where Spellcasting is traits (macros can reference them as repeating_npctrait_$0), and then attacks are pretty obvious. Luckily most of the deconstructing is done already, it is mostly where to put it in the character sheet object to get it to work. Since it is from years ago it is not perfect but I think I can manage adjusting it if I just know where to put them.
Zanthox said: Having Saving Throws and Skills show when they aren't set would be annoying, but when I am setting them I would like them to, same as if I set them manually. Since my script is setting values for them I would like those ones to show. Here are the sections I mean: Where Spellcasting is traits (macros can reference them as repeating_npctrait_$0), and then attacks are pretty obvious. Luckily most of the deconstructing is done already, it is mostly where to put it in the character sheet object to get it to work. Since it is from years ago it is not perfect but I think I can manage adjusting it if I just know where to put them. Are you sure this script would be allowed?&nbsp; This seems like if you shared it, many people would never buy half their monster books again.&nbsp;&nbsp;
1648837020

Edited 1648844005
DM Eddie said: Are you sure this script would be allowed?&nbsp; This seems like if you shared it, many people would never buy half their monster books again.&nbsp;&nbsp; Honestly, it is in their best interest to not make this easy- but at the same time most of the stuff made on homebrewery and the dmsguild are not available on the marketplace anyway. When I was able to play IRL I'd have so many books with marks for specific monsters in each fight and now I either have to do the same thing with PDFs and just roll dice using those or take the time to manually enter their stat blocks as NPC character sheets, both of which frustrate me.
npc_skills_flag&nbsp; &amp;&nbsp; npc_saving_flag set to 1 will show what has been set.
Kilter said: npc_skills_flag&nbsp; &amp;&nbsp; npc_saving_flag set to 1 will show what has been set. Thanks! I swear I tried those but now I'm closer, they display but still display wrong till you mess with them using the cog wheel: I wouldnt mind this but the fact that the roll it is calling is just the mod, so wrong. I'll have to do some more digging to see why it is choosing to display that instead.
For anyone searching down the road and find this thread, I updated the script to the best of my ability: <a href="https://github.com/Zanthox/Roll205eSheetImport" rel="nofollow">https://github.com/Zanthox/Roll205eSheetImport</a>
1649515441

Edited 1649515546
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It might be helpful to future readers to edit your top post and also put the announcement and link there. EDIT: It looks like you started a new thread with it . Probably a better solution.