• 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

Help on House Rule for Druids

Aldaron

Well-known member
Hi guys,

We have a house-rule in my campaigns for druids, where a druid's wild empathy checks get a bonus equal to half his Handle Animal skill. Without recreating druids from scratch, I'm trying to create an Adjustment in the editor. So far, so good. By using the Eval Script from the Ring of Sacred Mistletoe, I've created a simple Adjustment with the following Eval Script:


Code:
if (hero.childlives[cWildEmp] <> 0) then
        hero.childfound[cWildEmp].field[abValue].value += 3
        endif

This works nicely, and give the bonus the Wild Empathy for the character (ups the current +6 to +9)

The problem comes about when I try to make the "3" in the above code equate to half the Handle Animal skill of the character. I've tried using the following in place of "3", but get errors:

Code:
(hero.skHandleAn)/2
(hero.child[skHandleAn])/2
skHandleAn/2

At the moment, I'm just guessing, really, and I was hoping someone might be able to clue me in on the correct syntax. I'm also assuming there is some sort of rounding function, as well.

Thanks in advance :)
 
hero.child[skHandleAn].field[FIELDNAME].value

FIELDNAME will depend on what you're trying to get. skRanks is the number of ranks, skTotal is the total bonus.
 
Thanks for that Aaron...it didn't quite work as planned, but you set me on the track for finding what did! :)

I ended up finding a macro that grabbed the value, and then chucked it into a variable, because the ROUND() function didn't seem to like working on the macro. The code I ended up with, which is working perfectly, is:

Code:
var div_ranks as number

div_ranks = #skillranks[skHandleAn]   
  
if (hero.childlives[cWildEmp] <> 0) then
        hero.childfound[cWildEmp].field[abValue].value += round(div_ranks/2,0,-1)
endif

Thanks for setting me straight and telling me what to look for! :)
 
Back
Top