TCArknight
Well-known member
Ok, I'm trying to add a Spell Known programatically.
I've added the following code to a Class Special:
Final/1000
This successfully adds both to the Know Max and assigns the tag correctly. However, I need to add it to the spell known list on the Class tab.
Is there an example of this being done or anyone with an idea how?
Thanks!
I've added the following code to a Class Special:
Final/1000
Code:
~ Add 1 to appropriate spell known level
if (root.field[cCastMax].arrayvalue[1] > 0) then
root.field[cKnowMax].arrayvalue[1] += 1
perform root.assign[KnowSpell.spAspeFal1]
endif
This successfully adds both to the Know Max and assigns the tag correctly. However, I need to add it to the spell known list on the Class tab.
Is there an example of this being done or anyone with an idea how?
Thanks!