PDA

View Full Version : How do I add this item?



alloowishus
August 30th, 2025, 03:21
I am trying to automate creating random spell lists in my game system for NPCs. Here is an example spell list under the "spells" node for the NPC in the db.xml:

<id-00002>
<public />
<custom type="number">0</custom>
<esf type="number">0</esf>
<maxlevel type="number">10</maxlevel>
<name type="string">Spirit Mastery</name>
<open type="windowreference">
<class>spelllist</class>
<recordname>reference.spelllist.essence.lists.list-020@Spell Law</recordname>
</open>
<preprounds type="number">0</preprounds>
</id-00002>

Any ideas on how I would add a new item under the spells node using code? Thanks!

superteddy57
August 30th, 2025, 05:35
A good example of adding spells to a NPC would be in the 5e ruleset. It's done through drag and drop.