Manalishi66
Well-known member
Tying to code the following....but I'm getting no where.....what the right track?
You gain a +2 natural armor bonus to Armor Class when wearing leather or hide armor. You do not gain this bonus if you are wearing, wielding, or holding anything made out of metal.
Code (pre Att, 10000)
~ Loop through all armor and weapons of metal material
foreach pick in container where "EquipType.Metal"
~ Add a -2 to our armor class
if (each.tagis[EquipType.Metal] <> 1) then
hero.child[ArmorClass].field[Bonus].value -= 2
endif
nexteach
Am I even close? Help!
P.S., I compiles without errors...but it does nothing?
You gain a +2 natural armor bonus to Armor Class when wearing leather or hide armor. You do not gain this bonus if you are wearing, wielding, or holding anything made out of metal.
Code (pre Att, 10000)
~ Loop through all armor and weapons of metal material
foreach pick in container where "EquipType.Metal"
~ Add a -2 to our armor class
if (each.tagis[EquipType.Metal] <> 1) then
hero.child[ArmorClass].field[Bonus].value -= 2
endif
nexteach
Am I even close? Help!
P.S., I compiles without errors...but it does nothing?