thanks, that's right, stupid me
one more thing, if i wanted to search for items that have +X to cold damage, how would i write the code?
i used the logresults to where this value is contained, and it shows:
STAT: 3 (Adds to Cold Damage)
from this code: haLog('STAT: ' .. stat.value1 .. ' (' .. stat.text .. ')')
would it be something like:
if stat.text == (' .. Adds to Cold Damage .. ') then <-- seems to show an error when ran.