I am trying to input the Foe Hunter feat. This basically gives you a favored enemy and if you are a ranger and choose the same favored enemy as your favored foe they stack. The issue is that I can not seem to get the bonus added to the ranger's favored enemy. Here is what I have:
~if we choose the same favored foe they stack
if (field[usrChosen1].chosen.pulltags[thingid.feDragon] = 1) then
if (hero.childfound[resEnemSel].tagis[thingid.feDragon] = 1) then
hero.child[resEnemUpg].field[resMax].value += 1
endif
endif
If I use this: hero.child[resEnemUpg].field[resMax].value += 1
by itself it works fine, as soon as I put it in the if statment it quits working (no errors, just doesn't work). Which makes me think my if/then statements are broken.
~if we choose the same favored foe they stack
if (field[usrChosen1].chosen.pulltags[thingid.feDragon] = 1) then
if (hero.childfound[resEnemSel].tagis[thingid.feDragon] = 1) then
hero.child[resEnemUpg].field[resMax].value += 1
endif
endif
If I use this: hero.child[resEnemUpg].field[resMax].value += 1
by itself it works fine, as soon as I put it in the if statment it quits working (no errors, just doesn't work). Which makes me think my if/then statements are broken.