2 knowledge skills, only one gets the bonus
So back into coding things for Beats & Barbarians to name a few.
Have an Edge that should apply a +2 bonus to 2 specific Knowledge Skills. So I have some code, but it only ever applies the bonus to ONE of them. I am a bit code rusty so I am probably just missing something obvious: Set at Pre-Traits 5000, with Calc trtFinal in apparopriate spot. Code:
if (field[abilActive].value <> 0) then Even when I separated these into 2 separate Eval scripts same results. |
By separating you mean something like this?
Code:
if (field[abilActive].value <> 0) then |
Zarlor,
I hear you, 2 years plus away from working in Hero Lab and zero gaming so I am way rusty as well. Your version of the code is like mine, it only applies the bonus to one of the Knowledge skills, never both. It will apply it to whichever you choose first. Go figure. I am just trying to finish up Beasts and Barbarians and move onto their Jalizar book and some others. I don't get to game anymore but still own the books and felt like working in Hero Lab again... I will keep plugging away at this until someone with more recent experience than you and I has a better suggestion :) |
Ah...
It's the PERFORM. It's operating against the first skKnow it finds. It needs to address the eachpick. Not sure how to code that right off-hand (not at my home computer at the moment). I don't know if you can use the #traitprof, you may need to use: Code:
eachpick.field[trtRoll].value += 2 |
Try this to mimic the #traitprof:
Code:
perform eachpick.field[trtNoStack].modify[+,2,"Demon Hunter"] |
Oops, right - that should be trtNoStack, not trtRoll.
|
For some closure for others who might encounter this problem. The solution posted by
TCArknight solved the problem. Thank you very much to all who chime in with solutions. Cheers! |
All times are GMT -8. The time now is 02:18 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.