View Single Post
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old February 21st, 2009, 06:52 AM
I've just entered the Greater Resiliency feat from the Complete Warrior this Eval Script for checking for Damage reduction works up to the point where it adds +1 to the Damage reduction

Code:
~ Check for Damage Reductiion as a Class or Innate Ability

hero.childfound[cBbnDR].field[hTotal].value += 2
    hero.childfound[cPfPTaDam1].field[hTotal].value += 2 
hero.childfound[cDwDDR1].field[hTotal].value += 2

~ We passed, so add +1 to our total  Damage Reduction.
hero.child[xDamRd].field[hTotal].value = hero.child[xDamRd].field[hTotal].value + hero.child[xDamRd].field[hTotal].value + 1
done

hero.child[cBbnDR].field[hTotal].value = hero.child[cBbnDR].field[hTotal].value + hero.child[xDamRd].field[hTotal].value + 1
done
                 
hero.child[cPfPTaDam1].field[hTotal].value = hero.child[cPfPTaDam1].field[hTotal].value + hero.child[xDamRd].field[hTotal].value + 1
done                  

hero.child[cDwDDR1].field[hTotal].value = hero.child[cDwDDR1].field[hTotal].value + hero.child[xDamRd].field[hTotal].value + 1
done
This Pre-Req script also works

Code:
Damage Reduction ability required.

@valid = pickexists[cBbnDR] + pickexists[cPfPTaDam1] + pickexists[cDwDDR1]
However it won't add +1 to the total Damage Reduction. Any ideas?

Last edited by bodrin; February 21st, 2009 at 07:09 AM.
bodrin is offline   #1 Reply With Quote