View Single Post
Kendall-DM
Spy
 
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220

Old January 14th, 2011, 04:49 PM
Ok, I shall try that. Not too keen on the character class adjustment, but if worst comes to worst, I'll try that as well. My script comes out something like:

if (hero.child[aSTR].field[aModBonus].value > 0) then
hero.child[Attack].field[tAtkMelee].value -= hero.child[aSTR].field[aModBonus].value
var temp_mod as number
temp_mod = round (hero.child[aSTR].field[aModBonus].value / 2, 0, -1)
temp_mod = maximum (temp_mod, 1)
hero.child[Attack].field[tAtkMelee].value += temp_mod
endif

With another script to cover Dexterity and Ranged attacks. I set it Post Attribute, but I haven't yet tested it. Again, I feel that there should be an easier way to do this right inside the XML code.

Last edited by Kendall-DM; January 14th, 2011 at 09:33 PM.
Kendall-DM is offline   #7 Reply With Quote