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

5th edition OGL by roll20 companion

Hi everyone,  I am using this API to keep track of spells, and it is working fine for one of my players but not for another one. Any one know what might cause the issue. The spells are all dragged from the compendium and I am using Token Action Maker too. Thanks for any help 
1691709760

Edited 1691711184
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
A quick tests seems to indicate that spells that are set to output as Spell Card do not track, while those set up as Attack do. This is not expected behavior. Found a better explanation below
1691709780
Gauss
Forum Champion
Hi Silva,  Please provide a screenshot of the settings view of the character sheet. 
1691711155
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
More testing. The test character I used was fairly old. Re-adding the spell did not give the same results I noticed before, but I do get it consistently when I toggle "ritual", which makes more sense. A ritual spell would not cost a spell slot. Note that toggling "Ritual" does not affect the "r" marker next to the collapsed spell name. But toggling the checkbox in the spell's edit mode toggles the tracking.
1691759405

Edited 1691759457
Thank you both for taking the time to help me! It is not a ritual spell issue as the magic missile and shield don't have ritual toggled in the spells edit mode and still don't track. Here is the character sheet as requested. 
1691780918

Edited 1691780942
Gauss
Forum Champion
Silva, what happens when you trigger the spells rather than your player?  Also, can you screenshot the output for your player triggering it? 
1691786473

Edited 1691786731
@keithcurtis. Actually, toggling the ritual checkbox on then off for a spell with the ritual tag clears the tag, as least on the one sheet I tried it on. I always thought the checkbox was tied to the tag, and had no other function.  Is it supposed to do something else?
1691788019

Edited 1691789460
Gauss
Forum Champion
Ken S. said: @keithcurtis. Actually, toggling the ritual checkbox on then off for a spell with the ritual tag clears the tag, as least on the one sheet I tried it on. I always thought the checkbox was tied to the tag, and had no other function.  Is it supposed to do something else? The Ritual checkbox causes the spell not to cost any spell slots when you cast it while having the spell tracker active (from the companion script).
1691856096
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can turn the checkbox off and the ritual tag remains. Not every ritual spell is always cast as a ritual. Some classes don't have the ritual casting feature, for example.
1691876305

Edited 1691876349
Gauss
Forum Champion
Keith,  Regarding the ritual checkbox (plus the 5e companion script's spell tracker):  State 1: ritual tag is present, checkbox is off. Spell costs a slot when cast.  State 2: checkmark the box, ritual tag is still present, now the spell doesn't cost a slot to cast. This also adds "(ritual)" to the School line. State 3: uncheckmark the box, ritual tag is no longer present. Spell costs a slot when cast.  Once you do state 2 there is no means to get back to state 1 short of deleting the spell and re-adding it.
1691884301
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You are correct. I was hasty in my testing.
Thank you all for your time on this. In the end I remade the character sheet from scratch and that solved the problem. For future reference I had tried reloading the spells from the compendium, but that didn't work. Among the spells causing issue were magic missile and shield, neither of which have a ritual tag, so I presume it couldn't have been that. Anyway thank you for your time!