Jump to content


CamDawg's Content

There have been 2 items by CamDawg (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#612240 Adding mod scrolls to the scroll scribing component

Posted by CamDawg on 06 February 2022 - 09:56 AM in aTweaks

Spell scribing is done via dialogue, so you can apply all of the normal triggers to restrict it (variables, DV checks, &c.). However, the code as I've written it doesn't support adding triggers, but it should be easy to adapt.

 

If there's interest, I can certainly generalize the code to support custom triggers.




#612234 Adding mod scrolls to the scroll scribing component

Posted by CamDawg on 05 February 2022 - 05:28 PM in aTweaks

One of my favorite bits of aTweaks is the Scroll Scribing component, and I was bummed that it didn't cover the stuff we added for IWDification. So I made a fork, coded it up, and am awaiting it being merged and released. It was coded to be extensible, so other modders can easily add their own spells.

 

Essentially, aTweaks will process the cd_mod_scrolls array which is comprised of entries like so:

scroll item file name, level of spell, strref of name => spell file name

The file names are sans extensions, e.g. spwi225 not spwi225.spl. You can generate these however you want; for IWDification the array is built on the fly by an item regexp since all of its scrolls are named CDIAxxx.itm. You can see the added code; I foist the array generation for IWDification into a separate library which gets included if the mod is detected, and then all of this gets processed at the end.

 

At any rate, I mainly wanted to raise awareness of this so that other mods can add their spell scrolls.