View Single Post
Aldaron
Senior Member
 
Join Date: Dec 2007
Posts: 139

Old March 21st, 2013, 05:13 PM
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
Aldaron is offline   #1 Reply With Quote