View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old October 13th, 2014, 04:58 AM
You can also shortcut the following bit:

Code:
      hero.child[vFort].field[Bonus].value = hero.child[vFort].field[Bonus].value + bonus
      hero.child[vRef].field[Bonus].value = hero.child[vRef].field[Bonus].value + bonus
      hero.child[vWill].field[Bonus].value = hero.child[vWill].field[Bonus].value + bonus
to this:

Code:
      hero.child[vFort].field[Bonus].value += bonus
      hero.child[vRef].field[Bonus].value += bonus
      hero.child[vWill].field[Bonus].value += bonus
Sendric is offline   #3 Reply With Quote