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

Spells cast from "Attacks and Spellcasting" aren't reducing spell slots

So, I have the API that lets me track ammo and spell slots used.  However, if my players cast a spell from their "Attacks and spellcasting" list it doesn't reduce the spell slots used on their spell list sheet.  Is there a way to connect the two?   Thanks in Advance.
You don't give much information but I'm going to take a stab and assume you are using the Rolll20 5E D&D sheet and it's associated companion script? On the sheet, do you have Ammo Tracking set to 'ON'?
Doug E. said: You don't give much information but I'm going to take a stab and assume you are using the Rolll20 5E D&D sheet and it's associated companion script? On the sheet, do you have Ammo Tracking set to 'ON'? That is correct.  And yes, ammo tracking is set to ON.
You could try restarting the API sandbox, make sure it hasn't thrown any errors. Other than that, I don't have any ideas.
1612632819

Edited 1612632984
Oh hang on, you could check the script settings to make sure the option is on by running the command; !5estatus Or force the config; !spelltracking  on
Doug E. said: Oh hang on, you could check the script settings to make sure the option is on by running the command; !5estatus Or force the config; !spelltracking  on Everything is on.  Everything is fine when they cast it from the spell list page.  But when they just click on the core character page, under attacks and spellcasting, that doesn't reflect.  I may just end up removing any spells that are listed in that section and make them just use their spell list.
Chris L. said: Everything is fine when they cast it from the spell list page.  But when they just click on the core character page, under attacks and spellcasting, that doesn't reflect. I think that's intentional, so that if you have to roll a subsequent attack it doesn't take away another spell slot. For example, when casting Scorching Ray, you get to make 3 attack rolls with it, or with Spiritual Weapon you can use a bonus action on subsequent turns to make another attack with it (10 round duration).
1612638551
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Adam P. said: Chris L. said: Everything is fine when they cast it from the spell list page.  But when they just click on the core character page, under attacks and spellcasting, that doesn't reflect. I think that's intentional, so that if you have to roll a subsequent attack it doesn't take away another spell slot. For example, when casting Scorching Ray, you get to make 3 attack rolls with it, or with Spiritual Weapon you can use a bonus action on subsequent turns to make another attack with it (10 round duration). That actually makes sense, and is a good explanation for something that has mystified me.
1612655455

Edited 1612655807
Oosh
Sheet Author
API Scripter
They're deducting just fine for me, from either the repeating attacks section (Core tab) or the spells section. The script triggers on the dmg and atkdmg templates, but not on the atk template. The only other things that should stop the spell slot function firing are: - spelltracking setting (already covered above) - no spell level digit found in the roll template, e.g.  {{spelllevel=}} edit - also, having anything in the "innate" field will abort the spell slot change. It searches for the string {{innate=}} , and returns early from the function if it doesn't find it. Literally any character or whitespace will cause an issue there.