• 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

Feat help

saruichiban

New member
After reading some of these amazing guides, I went to try and re-create a feat I used in 3.5. Unbelievable Luck. It's mechanic would give your lowest save +2 luck bonus. This what I tried in the Eval scripts.

hero.child[svAll].minimum[svRef,svWill,svFort].field[Bonus].value += 2

but I get an error "Syntax error in 'eval' script for Thing 'fMWLuck1' (Eval Script '#1') on line 1 -> Invalid use of a reserved word in script"
Was reading between two of Mathias's post.
 
Is this based on the total of the save, or just the base saves?

Either way it'll look something like this
I believe it'll need to run after Final 27500
Code:
if (hero.child[svFort].field[svTotal].value < hero.child[svRef].field[svTotal].value) then
   if (hero.child[svFort].field[svTotal].value < hero.child[svWill].field[svTotal].value) then
      hero.child[svFort].field[Bonus].value += 2
   endif
elseif (hero.child[svRef].field[svTotal].value < hero.child[svFort].field[svTotal].value) then
   if (hero.child[svRef].field[svTotal].value < hero.child[svWill].field[svTotal].value) then
      hero.child[svRef].field[Bonus].value += 2
   endif
elseif (hero.child[svWill].field[svTotal].value < hero.child[svFort].field[svTotal].value) then
   if (hero.child[svWill].field[svTotal].value < hero.child[svRef].field[svTotal].value) then
      hero.child[svWill].field[Bonus].value += 2
   endif
endif

It's not pretty and it's not tested, but I think it will work. Now it doesn't give the bonus if no save is lowest as logic would suggest that it just wouldn't work.

I don't know how experienced you are but it is a fairly ambitious first attempt (going by the single post you've made)

Also welcome aboard to the world of Hero Lab scripting.
 
Thank you for the response. I am a complete novice to this stuff. I just wanted to make a feat I carried over from 3.5 Complete Scoundrel. in the case of a tie you would choose the one to get the bonus. I am excited to start reading more on these boards for custom stuff.
 
Back
Top