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

April 02 (10 years ago)

Edited April 09 (10 years ago)
Kryx
Pro
Sheet Author
API Scripter
See [Script] D&D 5e Shaped NPC Importer & Converter
April 02 (10 years ago)
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.
April 02 (10 years ago)

Edited April 02 (10 years ago)
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: https://app.roll20.net/forum/post/1344667/set-default-token-for-a-character-through-the-api
April 03 (10 years ago)
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.
April 03 (10 years ago)
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
May 02 (9 years ago)

Edited May 02 (9 years ago)
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 https://app.roll20.net/forum/post/1734923/new-d-an... will be lost.
But yes, use the script !shaped-convert. Verify they work as expected and set the default token.