View Single Post
alientude
Senior Member
 
Join Date: Apr 2011
Posts: 101

Old July 26th, 2013, 11:35 PM
Looking at Toughness is a good call, but I'm still not able to get it to work. The feat references container.child[Wounds].field[wndFeat].value, which didn't sound like what I wanted to adjust. I checked the timing report for a creature with Wounds and Vigor enabled, and found the field wndTotal. For now, I'm just trying to create a Wounds adjustment, so I copied the HP adjustment and altered as I thought needed, like so:

Code:
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      if (hero.tagis[source.UCWound] <> 0) then
      ~ Add to our Wounds
      herofield[wndTotal].value += field[pAdjust].value
endif
Compiling this works fine, but when I enable the adjustment, I get:

Attempt to access field 'wndTotal' that does not exist for thing 'Totals'

repeated twice. I'm stumped again, unfortunately.
alientude is offline   #4 Reply With Quote