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

[Script] D&D 5e Shaped NPC Converter

1427997576

Edited 1428598879
Kryx
Pro
Sheet Author
API Scripter
See [Script] D&D 5e Shaped NPC Importer & Converter
1428002740
Kryx
Pro
Sheet Author
API Scripter
One bug: it does not preserve the bars. I will see if I can save the bars, make the changes, and then reset the bars to what they were.
1428009140

Edited 1428010652
Kryx
Pro
Sheet Author
API Scripter
Updated to v1.1 I have added options to define what the bars will be after the convert. For instance you can set bar1 to 'npc_AC' and bar3 to 'HP' or however you please. If those are not set it will lookup the current linked attribute and re-link it and it's current and max value (if they're set) after the conversion. Should be fully workable. I'm going to try to convert my catalog of 100+ monsters now. EDIT: Need to reset default token after all is said and done. Will figure out how to do that for v1.2 and before I mass convert EDIT2: Apparently that isn't possible: <a href="https://app.roll20.net/forum/post/1344667/set-default-token-for-a-character-through-the-api" rel="nofollow">https://app.roll20.net/forum/post/1344667/set-default-token-for-a-character-through-the-api</a>
So to clarify, if I wanted to import a character, I would have to use the other script for the normal character sheet, and then use this converter. As someone who has done a fair bit of importing already for the standard NPC character sheets, and still has a fair bit to go you can see how this would be a lot of time.
1428047023
Kryx
Pro
Sheet Author
API Scripter
It's not a significant amount of time more. You run !jf and then immediately !shaped-convert. Though I plan to reduce this to 1 step soon. This script is meant to convert existing creatures, not to import creatures. I plan to have a script that imports as well. I will likely fork JF's work as I'll need to import attacks to NPC attacks as well. My plan is to have both NPC attacks and the importer done by this weekend.
Tbh I have not seen a need for that yet. It seems to keep the current information for NPCs sufficiently enough.
I am assuming I use the following steps. change campaign to use shaped sheet run Nic script run PC script manully verify NPC's and reset tokens i have I have 7 hour before my next session just want to make sure I don't fubar my campaign
1430570056

Edited 1430570090
Kryx
Pro
Sheet Author
API Scripter
Mark said: See [Script] D&D 5e Shaped NPC Importer & Converter This script is outdated. See the new one linked above. There is no PC conversion script. The items listed in the OP of <a href="https://app.roll20.net/forum/post/1734923/new-d-an" rel="nofollow">https://app.roll20.net/forum/post/1734923/new-d-an</a>... will be lost. But yes, use the script !shaped-convert. Verify they work as expected and set the default token.