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

[DnD 5e] [Request] provide a filter/seach for spells

Hey folks, As a caster in D&D I have way too many spells to keep track of. Often it would be extremely helpful if I had filters/generic search capabilities for my spellbook. For example, I'd like to be able to search for a spell based on a partial name or description. Other times I'm looking for a spell that uses an attack roll; or perhaps a spell that doesn't use a wisdom save. Having filters like this can make combat go much faster. I looked at modifying the existing DnD 5e character sheet to provide this functionality, but found that I could not do this without changes to the underlaying sheet infrastructure. It would be nice to be able to apply a javascript filter across all spell data, then present the standard spell template for each result passing the filter/search. As far as I can tell direct javascript access is not possible in the sheet, and further the way that spells are currently stored in the sheet makes it hard to apply the filter easily. Am I missing something or is this just not possible with the current architecture? -- Casey
The D&D 5e Shaped Character Sheet has an elaborate filter system for spells.
1440407934
Kryx
Pro
Sheet Author
API Scripter
Javascript cannot be used so we're limited to HTML and CSS. As Silvyre has pointed out I've implemented some basic finltering like V, S, M components, concentration, ritual, casting time, prepared. Searching requires JS and cannot work I could add a toggle for attack/save spells, but I'd have to change the html order slightly. Save types would require a radio group (see casting time) and would quite in-efficient to do it that way. Javascript cannot work on sheets.
1440504533

Edited 1440505067
couldn't you do searching in php and wouldn't make it sense to use a database for spells/weapons/stuff like mysql or something like that? a mysql database could even speed the charactercreation up... at least if you stick to a ruleset ^^ so what would be needed are tables for: Class: Bard, Druid,... (Classname|starting equipment|starting stats|Modifiers|Class Skills|...) Race: Human, Dwarves,... (Racename|starting stats|Modifiers|Race Skills|...) Spells: (Spellname|casttime|duration|components|range|level|school|...) Weapons: (Weaponname|Type|damagetype|damage dice|range|magic bonus|crit modificator|Weight|...) Armor: (Armorname|Type|Base AC|magic bonus|Stealthdisadvantage|Speedmodificator|Weight|...) Equipment: Tools, consumables, vehicles,... (Name|description|Amount per Unit|Weight per unit|Price|...) Animals: (Name|stats|...) naturally you should add a description to everything... admitted i don't actually know if that could get me into license problems as long as i don't earn any money with it XD
1440505165

Edited 1440505185
Kryx
Pro
Sheet Author
API Scripter
Character sheets can use html and css only. If JavaScript is ever allowed you could do searching with just it and optionally a json file.