My question is, what would be the most efficient way to store the central database, speed- and memory-wise? We're talking about over 1,000 spells, roughly. Should I create a library token with > 1,000 properties, one for each spell? Or should I store it in the macro code itself as like one HUGE json array full of StrPropLists?
Also, if I'm storing the spells as StrPropLists, would it be faster or more memory-economical to break each spell into a bunch of variables for each aspect of the spell, like:
Code: Select all
spellName=Magic Missile ; spellSchool=evocation; spellLevel=1; spellCasting=1; spellComponents=VS; spellRange="medium"; etc...
Code: Select all
spellName="Magic Missile" ; spellDescription="School evocation [force]; Level magus 1, sorcerer/wizard 1 Casting Time 1 standard action Components V, S Range medium (100 ft. + 10 ft./level) Targets up to five creatures, no two of which can be more than 15 ft. apart Duration instantaneous Saving Throw none; Spell Resistance yes" etc...