• 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

how do i check to see if a skill is a class skill?

drakahn99

Well-known member
im trying to code this ability:
you are considered trained in Knowledge (arcana); if already trained, you gain a +2 circumstance bonus on those checks instead.

but unable to get it to apply the skill bonus if the skill is already trained, commenting the if,endif and makeclassskill lines it will apply the bonus, np. so im lead to beleive something with the logic on the if statement....

timing: first, at 10000

if (hero.child[skKnowArca].tagis[Helper.ClassSkill] <> 0) then
#skillbonus[skKnowArca] += 2
endif
#makeclassskill[skKnowArca]

thanks
 
Also hero.child should be changed to hero.childfound. This is because Know skills are not always present on a hero. If not present the script will throw an error message.
 
Back
Top