• 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 Class Level as a Skill modifier

Tris

Member
I am trying to work out how to add Class Level as a modifier in Class special abilities. I am trying to make the Coglayer class from Dragonmech and it has a class feature that gives a bonus to 3 different skills from level 1.

How do you add the bonus?
 
Stealing some code I used when making the Divine Mind, it would look something like this:

Post-Levels 10000
Code:
var bonus as number
 bonus = #levelcount[DivineMnd]

 #skillbonus[kSpot] += bonus

You would, of course, substitute 'DivineMnd' with your class's name and 'kSpot' with whatever class you want to improve. You can improve as many skills as you want by adding additional lines and changing the skill. The timing is important in that it must be in Post-Levels or later in order to count the number of class levels you have.
 
If you are adding this script to the class helper, you can just use field[cTotalLev].value in place of the bonus.

Code:
#skillbonus[kSpot] += field[cTotalLev].value
 
Back
Top