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 Idea] Function to append a monster sheet with a template

I posted a suggestion because there is no reason that the functionality shouldn't exist natively in Roll20 that I can see:  Function to append a monster sheet with a template However I wonder whether this can be achieved readily with an API that asks for a Template sheet and a Target sheet, then appends the features, actions etc from the template onto (preferably a copy of) the target sheet with the template name appended as a prefix to the sheet name? Original text below: It would be good to have a function to Append an Monster Sheet with a Template for all those homebrew cases where an area or event creates a variant of existing monsters: e.g. Shadowy; Gribbly. If we could set up a template or NPC sheet with just the features / resistances / traits / actions etc we wanted, and then select which character sheets these to it would save a massive amount of time when trying to add richness to our games. So I could turn a Hobgoblin into a "Shadowy Hobgoblin" or "Gribbly Hobgoblin" for example, with the respective extra features. Surely virtually all the tech is already available in game to achieve this right? Here's hoping this is an easy win for Roll20.
1612448042

Edited 1612448273
David M.
Pro
API Scripter
Could the ChatSetAttr script do what you're asking? E.g. update the attributes (npc_type, npc_resistances, npc_senses, etc.) for the given creature template? EDIT - Looks like the CharUtils script can copy abilities from one character to another. E.g. You could make a "Shadowy" character as a template, then use the script to copy abilities and then set as token actions?
1612452944

Edited 1612453593
David M. said: Could the ChatSetAttr script do what you're asking? E.g. update the attributes (npc_type, npc_resistances, npc_senses, etc.) for the given creature template? EDIT - Looks like the CharUtils script can copy abilities from one character to another. E.g. You could make a "Shadowy" character as a template, then use the script to copy abilities and then set as token actions? Oh my... how did I miss that! Thanks for the heads up - however that doesn't change the fact that this could be easily implemented natively, thus allowing non-pro members to utilise it, and also to take advantage of the GUI.
1612457765
timmaugh
Forum Champion
API Scripter
Clonependium (the script formerly known as the Character Genome Project, or the Notorious CGP) is my next project now that I have APILogic knocked out. My goal with Clonependium would be to have "troves" you can construct (and nest in other troves) with certain inclusion parameters. For instance, if you wanted a little range in character templating... one trove could be all of the required stat attributes at whatever range. Then you could have a skill trove which selected 6 out of 10 defined skills, and gave them a value between given ranges. If you had 12 such skill troves, you could put them in a "skill package generator trove" and define it to include 2 of the 12 sub-troves, each of which would include some portion of the defined sub skills. That way you would get a range of semi-random mooks. Of course, troves constructed as "always include these things" would be a way to pass along game-level information to each character/npc. For instance, if all of your characters needed background skills from a shared backstory of some academy, you could construct that as a skill trove with mandatory inclusions, and give it to each. You could also have hard-defined "treasure" troves to offer the party (with claim-buttons for the player to opt-in). Some items would be of limited quantity (not everyone can get 20 gold pieces from the chest, Hank... it doesn't have an enchantment of "endless gold" does it?), while others could be of unlimited quantity (you read a book and it lets you learn a new spell). Of course, the treasure troves could *also* be randomized, soooo... Lots to work through.
timmaugh said: Clonependium (the script formerly known as the Character Genome Project, or the Notorious CGP) is my next project now that I have APILogic knocked out. ... Lots to work through. Tim - on behalf of R20 users everywhere, thank you for APILogic. I look forward to the CGP! If you need a beta tester just get in touch :-)
1612481441
timmaugh
Forum Champion
API Scripter
Cheers, Myke! And Clonependium/CGP will definitely need beta testers, given the many sheets it might interact with! I appreciate the offer of help!