Greysion said: HoneyBadger said: Yup. [[ [txt] 1t[TableName] ]] Just curious... what does PowerCards offer that Templates don't if you already have that working? Holy Moly, I know people can be humble and all, but PowerCards is literally the best API out there at the moment, or at least most definitely the best one that I've used. The base template functions of Roll20 are pretty sub-standard to be honest, they don't really compare well at all to the customisability of Powercards, not even getting close to mentioning conditional functionality. Don't look down on yourself man, your shit is fantastic! Brian B. said: Is that spell actually reducing the available spell slots on the sheet? If so, could you maybe post the code for it? Sure does and I certainly can. It's using the !Ammo API in conjunction with PowerCards. I'll chop out all of the irrelevant / repeating stuff to keep it short so it doesn't fill up the entire page; !power {{
--hroll|[[ [$lvl] @{Selected|level} + 0d0 ]]
--?? $lvl.total > 0 ?? !rSpell1|**Level [[1]] Spells:**~R[[ {{ @{selected|level}+ X , X }kl1, 0d0}k1 + @{selected|spellclass-0-level- X -bonus} ]]~R
}}
!ammo @{selected|token_id} vLVL X [[ ({{ @{selected|level}+ X , X }kl1, 0d0}k1 + @{selected|spellclass-0-level- X -bonus} ) - @{selected|vLVL X } ]]
So, I'll run you through a few things; Change this to the "Level Requirement" of the Spell level for the class, so that only the spells that the caster has access to display; --?? $lvl.total > 0 ?? Change this; {{ @{selected|level}+X , X }kl1, 0d0}k1 + @{selected|spellclass-0-level-1-bonus} To the rough forumla of { Formula to generate the amount of base level X spells at any level , 0d0}k1 + INT/CHA (etc) bonus to the spells you get And change this; !ammo @{selected|token_id} vLVLX To a custom attribute of your own naming choice that you can add to the character's sheet. You cannot use the ones built into the character sheet (Or maybe you can, depends on the character sheet you are using). Just set the value to 0, it'll be declared properly from your Daily Refresh macro. To be honest, it's a little hard to give you a direct copy of what I'm using as different systems follow different rules, as well as the fact that you have to reference the character sheet for optimal results and that of course differs for basically anything. However you should be able to get to grips with a rough idea of how to manage your own spells from what I've left here. If you're still having some difficulty automating spell countdown / automatic daily refresh, toss me a private message and I'll give you a more thorough explanation of how to set it up when I've got some more free time. The way I've set it up means you basically never have to touch it after you've put in the macro. It'll automatically update itself based on your level and your spell bonuses. However when you put it in you'll also have to think about adding special slots for custom abilities (Like Lay on Hands or Ki Points) and you'll have to change the values to be correct for that specific class. Mine in action looks something like this; Thanks a bunch for posting this. I'm not overly fluent in all the macro, API, character sheet stuff, but I think that I understand what I need to do to implement this into my campaign (I'm running 5e using the shaped character sheet). I really appreciate the help.