View Single Post
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old December 6th, 2017, 12:32 PM
It looks right, but I haven't tested it. I also wouldn't use abValue for basic variable usage.

I would do something like:
Code:
var int_bonus as number
int_bonus = hero.child[aINT].field[aBonus].value
foreach pick in hero where wCategory.Firearm
       eachpick.field[dmrBonus].value += int_bonus 
nexteach
I will also note that the fields you are using may or may not be correct, I dont have HL handy to confirm.

Last edited by Minous; December 6th, 2017 at 12:34 PM.
Minous is offline   #5 Reply With Quote