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

Managing spells on an mostly unsupported system.

I've been wanting to run a game for a system that, outside of a character sheet, has no compendium support. This particular system has a massive number of spells, which are essential to creating NPCs and enemies in general. The system also has a bit of a complicated way of calculating the spell DC. My question is, is there an API, Macro, anything, that would let me create the spells one by one, then click on the character token, and have the spell save be calculated based on the stats of the token selected? The game in question is Naruto D20, which is a heavily modified version of Modern D20. 
1598881108
Kraynic
Pro
Sheet Author
My advice would be to combine the Chat Menu and Macro Character tricks: <a href="https://app.roll20.net/forum/permalink/5927072/" rel="nofollow">https://app.roll20.net/forum/permalink/5927072/</a> <a href="https://app.roll20.net/forum/permalink/7605679/" rel="nofollow">https://app.roll20.net/forum/permalink/7605679/</a> You write a macro where all the attribute calls use @{selected|attribute_name_here} for each of your spells on the Attributes &amp; Abilities tab of the Macro Character.&nbsp; Then you write a Chat Menu that includes all those spells.&nbsp; It is convenient to have the chat menu be the first Ability entry, and have it set to display as a token action.&nbsp; I write the chat menu with "/w gm " at the beginning, which allows me to copy/paste it to an npc and hide the menu from players when I roll it.&nbsp; When making a PC, I copy/paste the menu to the PC sheet as an Ability, change the "/w gm " to "/w character name ", and edit the entries of the menu to only show the spells that character knows.&nbsp; As they learn new things, I just edit the menu to add in whatever they have gained. It may take a bit to figure out how to set up your macros, but once you do, you only need to write them once using this method. I make extensive use of this in my Palladium Fantasy games, since there are Psionics, 5 varieties of spell magic, and 2 different types of symbol magic. I have a macro sheet for each type of magic/ability and another one for poisons.&nbsp; In a pinch, I can create a token, link it to the macro sheet, set the casting stats there, and use the full chat menu list to run a random encounter or something where I didn't specifically prepare the npc spell list before hand.
1598882167
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If your system sheet has fields for spell characteristics, and you would prefer to use those, you could look into adapting a spreadsheet like the ones linked below to set up ChatSetAttr commands. 5e Shaped Class Feature writer &nbsp; OGL Sheet Inventory Writer
keithcurtis said: If your system sheet has fields for spell characteristics, and you would prefer to use those, you could look into adapting a spreadsheet like the ones linked below to set up ChatSetAttr commands. 5e Shaped Class Feature writer &nbsp; OGL Sheet Inventory Writer It does indeed have specific fields for the spells. Similar to how 5e has damage, range, components etc. I am very new to this whole thing, is there any advice you'd offer for figuring out how to ensure everything goes where it should?
1598900419
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I'd have to research the sheet to provide specific advice, which unfortunately I don't have time for. However, look at the macros those sheets create and compare to the documentation for ChatSetAttr (it's available in OnClick install on your game's API page) and try to get a sense for what it is doing. Practice on a test character (or better in a test game) with a single macro until you know you have the syntax down solid. Then figure out how to parse a macro command from the spreadsheet fields. Or just copy and paste relevant bits in from your spell source on copies of the working macro. Whichever works easier for you. I would strongly suggest doing this in a&nbsp; Macro Character Sheet , so that your work is portable to other games you run. If you are unfamiliar with installing an API script, here's a short video: How to Install Roll20 API Scripts