I'm either missing it, or it's not possible.
Is there a way to set a companion's memorized spells via scripting?
I'm either missing it, or it's not possible.
Is there a way to set a companion's memorized spells via scripting?
You want them to change midgame?
You want them to change midgame?
Sort of. It's for testing purposes.
I have scripts that do all sorts of things to generate my party and level them up (and the PC) so I can test faster. I like to be able to start the mod, type a debug command, and have everything setup automatically and jump my party to the encounter.
I wrote a lot of code in a couple of scripts for the prologue to make this happen, but the spell memorization was the only real hurdle.
As I get further and further into this, and get to the higher level encounters, it can take some time to setup memorized spells. My preference would be to simply script it. I can already do the scripting for feats, stats, spells known, items, and item equipping. The whole thing makes testing very quick and easy. Except for memorized spells... which I have to setup myself, and then run a rest script (the rest script is no big deal, but manually setting up everyone's spells is tedious and slows things down).
Is there a way to set a companion's memorized spells via scripting?
I didn't even think about this, but when you save "saves" kevL, it got me thinking... I can just clone each one of the companions, and change the tag to name_x, where x is the level, and then setup the memorized spells, feats for that level, etc. I could have gear automatically put into inventory and equipped, the whole nine yards. I'd have a companion for every level. Then when I login to test, just instantiate the companions for the correct level of the encounter and bingo - ready to go.
And with the PC, I could do the same thing: load my "level up" mod, level up the PC, equip proper items, and then export it. I'd have a bunch of exports to use.. just pick the one for the appropriate level I plan to test, and bingo. Done.
Problem solved.
Sometimes you just gotta throw spaghetti at the wall and see what sticks!
It will take some time to setup, but considering the amount of time I'll save testing.. this is going to be great.
Thanks kevL!
Sometimes you just gotta throw spaghetti at the wall and see what sticks!