• 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 specific spell to known list?

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
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!
 
Back
Top