Hi everyone,
Im trying to make a customizable amulet of natural armor using a the customizable bracers of armor as a jumping off point, and while the item works, I cant seem to get it to not stack with other enhancement bonuses to natural armor.
the evalscript Im running looks like this
~ If we're equipped, add a natural armor bonus
if (field[gIsEquip].value <> 0) then
hero.child[ArmorClass].field[tACNatural].value = maximum(hero.child[ArmorClass].field[tACNatural].value, gizmo.child[gCustMagic].field[gCustBonus].value)
endif
and Im just not seeing what is wrong. when equipped at the same time as an amulet of natural armor, both bonuses are added to AC.
if anyone can lend me a second set of eyes, I would greatly appreciate it.
Im trying to make a customizable amulet of natural armor using a the customizable bracers of armor as a jumping off point, and while the item works, I cant seem to get it to not stack with other enhancement bonuses to natural armor.
the evalscript Im running looks like this
~ If we're equipped, add a natural armor bonus
if (field[gIsEquip].value <> 0) then
hero.child[ArmorClass].field[tACNatural].value = maximum(hero.child[ArmorClass].field[tACNatural].value, gizmo.child[gCustMagic].field[gCustBonus].value)
endif
and Im just not seeing what is wrong. when equipped at the same time as an amulet of natural armor, both bonuses are added to AC.
if anyone can lend me a second set of eyes, I would greatly appreciate it.