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 .
×

Character Sheet Caster Vs Class

1782169662

Edited 1782169735
Hey folks, how are spells associated with a class? I know the Class above circled in red at the top of the screenshot circled in red like back to one of the 3 possible classes at the top of the page. If I am hauling out stuff like:                 rowIds.forEach(id => { let spellID = id; let spellName = getAttrByName( CharID, `repeating_spells_${id}_spell_name` ) || ""; //log(spellName); let spellCaster = getAttrByName( CharID, `repeating_spells_${id}_spell_caster_class` ) || 0; let spellLev = getAttrByName( CharID, `repeating_spells_${id}_spell_level` ) || "0"; spellLev = parseInt(spellLev, 10) || 0; //0 to 9 with 0 being cantrips etc, etc I can get repeating_spells_${id}_spell_caster_classwhich is that Castor 1 , for example: Zeffiro Zirconyd spells: Caster 1 Level 1 Detect Invisibility Caster 1 Level 1 Light Caster 1 Level 1 Phantasmal Force Caster 1 Level 1 Colour Spray Caster 1 Level 1 Wall of Fog I'm trying to figure out, is how does Caster 1 links to, in this case, illusionist? Or does it? Thanks. 
1782170820

Edited 1782170883
vÍnce
Pro
Sheet Author
The sheet expects the sheet user to choose which class is associated with Caster1 and Caster2 (if appliciable).  A sheetworker is used to display a class name with a spell based off of the sheet user's choice.  You would probably need to come up with similar logic in your API mod if you're after something similar.