• 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

Skill Bonus Help

Frodie

Well-known member
Need a little help with a custom ability.

You gain a bonus to all Knowledge checks equal to half your level.


Script

~our bonus is level /2
var bonus as number
foreach pick in hero from BaseSkill where "Helper.SkCatKnow"
bonus = field[xTotalLev].value / 2
eachpick.field[Bonus].value += maximum(round(bonus,0,-1),1)
perform eachpick.delete[Helper.TrainOnly]
nexteach
 
you might try:

Post-Levels 1000
Code:
var bonus as number
bonus = herofield[tHitDice].value / 2

foreach pick in hero from BaseSkill where "Helper.SkCatKnow"
eachpick.field[Bonus].value += maximum(round(bonus,0,-1),1)
perform eachpick.delete[Helper.TrainOnly]
nexteach
 
Frodie, half of what level? I see that Sendric has given you a "half character level" version of this script, but if this is an ability on a class, the rule for those is that anytime they refer to the level, it means the level of the class (unless it specifically says character level or total level).

What phase & priority were you using? If it is a class ability, switch to Post-Levels/10000, but I don't think you'll need to change anything else about your script.
 
Timing, I had "pre-levels" not post-levels. Sorry about that. Sometimes I over look the simple things. Thanks yall.
 
Back
Top