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

Old September 7th, 2009, 03:57 PM
I can't get this code to apply the Wisdom Modifier to ranged attacks i've tried altering the timing but to no avail.

Timing final phase 10000

Code:
var bonus as number
bonus = maximum(hero.child[aWIS].field[aModBonus].value - hero.child[aDEX].field[aModBonus].value , 0)
doneif (bonus= 0)
 
foreach pick in hero where "wCategory.RangeProj & wCategory.RangeThrow & !wCategory.Melee"
eachpick.field[wAttBonus].value += bonus
nexteach
Any pointers on what i'm doing wrong.
bodrin is offline   #10 Reply With Quote