I'm not good with spell-modding either, but here's something to get that started. Feel free to edit/leave out things as you feel necessary.
SPELL MODDING
- Increasing the range of available spell IDs and spell descriptions.
- #newspell <nbr> This would be a modification of the existing #newspell command and would allow the modmaker to use spesific spell IDs to create complex spell effects that work even when several mods adding new spells are used together.
- #event <nr> This command does not exist currently. The spell would cause the indicated event to happen in target province. Alternatively:
- #message "text" This command does not exist currently. The spell would create a message with the spesified text in the target province.
Spell-related:
- #onebattlespell <nr> | "name" Currently, #onebattlespell does not find modded spells referenced to by name, unlike #nextspell. Because spell IDs of modded spells vary with the number of enabled mods, multiple mods using #onebattlespell won't work as intended.
-----------------
Unrelated but interesting find of the day:
#nextspell "name" works on modded spells! I thought it was like #onebattlspell and would throw an exception, but no, it works perfectly! This means that modded summon spells can summon as many units and commanders as spell IDs allow without causing any problems with other mods.