PDA

View Full Version : Adding spells to spell class



Neovirtus
October 10th, 2023, 03:22
I am working on creating the Animist class from the War of Immortals playtest and one issue I've run into is how to notate the apparition spells for each apparition. The Animist can pick their Apparitions each day, so they need to be implemented in a flexible way, and I though the best way might be to give them a spell class for each apparition, they then can manually track which two they have active each day. But at least the spells available to them would be automatically added to their sheet. So first I automated the creation of the spell class, and added the spells they get at character creation:



[SPELLCLASS add spontaneous|Custodian of Groves and Gardens|divine|wisdom]
[SPELL add tangle vine|Custodian of Groves and Gardens|0]
[SPELL add wall of shrubs|Custodian of Groves and Gardens|1]


Unfortunatly even though these are added to the character sheet according to the tracker (and the spell class is added), the spells are not placed in the actions tab. However, if you then manually add the first one "tangle vine", both of them are added. So it seems like some check is performed when the spell is added.

So I thought fine, if a person has to add the first spell once, that's no big deal... but I later added a class feature for second rank spells and had it automate the addition of the appropriate spells but those do not get added at level up either.

Any tips on a better way to do this? Or am I misusing the [Spell add] automation?

I have attached the in progress version here in case that is helpful.

Trenloe
October 10th, 2023, 10:17
Thie issue is that the spell class being created doesn't have any spell slots per level assigned. As soon as you add that, the spells appear.

There's currently no automation to add the spell slots which are currently coded directly into the ruleset based off the spellclass name. Adding a way of automating the spell slots is something I have on my list to do in future.

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=59025

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=59026

Trenloe
October 10th, 2023, 10:25
Looking at the ruleset code, if the spell slots per level is 0 when a spell is dropped in the spell class, then the slots for that level is set to 1. This code isn't present for the SPELL add automation. I'll look into adding that in a future release.

EDIT: see next post.

Trenloe
October 10th, 2023, 11:22
Further information - if you set the number of spell uses in the SPELL add entry, and this is higher than the base spells per level, the uses will be used for spells per level. So, use the following to set the base spells per level to 1 for that level when adding the spell.



[SPELLCLASS add spontaneous|Custodian of Groves and Gardens|divine|wisdom]
[SPELL add tangle vine|Custodian of Groves and Gardens|0|1]
[SPELL add wall of shrubs|Custodian of Groves and Gardens|1|1]

Neovirtus
October 10th, 2023, 14:07
Ok thanks for the advice. I was aware that the added spell class wouldn't have any "spells per day" because those are tracked in the Apparition Spellcasting feature, but I didn't realize the other implications. Looks like I should be able to get to a working implementation with the changed code.

Trenloe
October 26th, 2023, 19:11
Looking at the ruleset code, if the spell slots per level is 0 when a spell is dropped in the spell class, then the slots for that level is set to 1. This code isn't present for the SPELL add automation. I'll look into adding that in a future release.
Added today: https://www.fantasygrounds.com/forums/showthread.php?79419-Release-Updates-for-October-24th-2023&p=700567&viewfull=1#post700567