Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I realized I didn't think to handle custom/magic armors of the correct type.
In the next update, I'll make handling the armors and custom/magic versions of the same armor easier to accomplish, but for now, you'll need to add a second foreach to your script to search the custom/magic armors (add this at the bottom of the script): Code:
foreach pick in hero from BaseArmor where "thingid.iMagArmor" if (eachpick.gizmo.tagcountstr[searchexpr] <> 0) then eachpick.field[arArmorChk].value += field[abValue].value eachpick.field[arMaxDex].value += field[abValue].value endif nexteach |
#11 |
Member
Join Date: Dec 2010
Posts: 62
|
Yeah, it works. Thanks.
|
#12 |
|
|