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

5E OGL Companion Assistance Needed, Spells with Attack Rolls not Tracked

Hello, thanks in advance for any assistance that can be provided.  I'm very, very new to the API Script world, having just upgraded to Pro at the start of the year. Naturally, I think it's awesome and have already implemented several in my games with no issue. However, I do have one particular issue with the 5E OGL Companion API. Via the 5E OGL Companion Spell Slot Tracking, spells that output attack rolls do not auto-deduct a spell splot, whereas spells that output a spellcard do auto-deduct a spell slot. I've got a cleric who is quite the fan of Guiding Bolt and Sacred Weapon, so naturally, this is less than ideal.  Perhaps this issue has already been discussed previously and I simply couldn't find the topic, but what solutions could be recommended to make the spell-tracking function more as intended? Are there other Spell Slot tracking API's that I could implement while disbaling the 5e OGL Companion tracking, or is it going to be more complicated than that? 
1609878298
Jordan C.
Pro
API Scripter
While I don't have a remedy for you, just thought I would provide an observation that this appears to happen due to the fact that the spell slot deduction is called once the attack is resolved by the damage output. So, this is only an issue if you have "Don't auto roll damage" selected (which I imagine is a fairly common setting for a lot of people). That being said, I don't know how difficult it would be to change the function to when a spell attack is made but that seems to be the appropriate solution.
Ah! I didn't even think to check if it deducted after the resolution of damage! That absolutely makes it not even a problem anymore, I was just being impatient, haha. Can you tell I'm new to this stuff? Thanks for the clarification, I really appreciate your input!
1609879917
Jordan C.
Pro
API Scripter
Oh nice! Happy to help!