Member
Join Date: Feb 2012
Posts: 95
|
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 |
#1 |
Senior Member
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328
|
Change the timing to Post Levels.
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#3 |
Member
Join Date: Feb 2012
Posts: 95
|
thanks guys, that worked!
|
#4 |
|
|