• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding additional spells known?

Mergon

Well-known member
As part of the Artificer (2019) class, I am trying to set the number of spells known at 1st level to the character's Intelligence modifier.

This is the script I am trying to use:

Phase: Post-attributes
Priority: 10000

doneif (tagis[Helper.Disable] <> 0)

~ Spells Known Array
var iIntMod as number
iIntMod = hero.child[aINT].field[aModBonus].value
hero.child[cHelpArR].field[cArrKnSpl].arrayvalue[0] = iIntMod

I think my issue is with timing. Anyone know what timing I should be using with this script? :confused:
 
I know in the timing report there's a task in post-levels at 10000 that calculates the "Field cMaxKnSpl: Calculate (Max Spells Known This Level)".

I would try before that step and see what happens.
 
Any idea where I can find an example? I know I need to go Post-atrtribute (I thing) to get the final INT modifier.
 
The only thing I could think of was the logic baked into things like the Cleric memorization limits (allow level + Wis mod)- code we can't see directly.

I think you'll have to ping Shadow.

For some reason I thought there was an example where script #1 ran post-attribute and put the attribute modifier into a field like abValue2.

Then script #2 ran post-level, but before the official one and grabbed the modifier from abValue2.

But I may be mis-remembering something else, I have not had time to play with it.
 
Back
Top