OK I'm trying to save some computing power by not using a foreach.
I just need the statement to match once, the current foreach is:
I figure I could use something like:
But I'm not sure what to check just to see if that match happened. Any ideas?
FYI I have used "valid" and it works, but from reading the description I'm not sure if that is the proper use. I've also just done a tagis[thingid.?] check which obviously will come up 0 if nothing is there. But I was hoping for something that merely says "I exist"
I just need the statement to match once, the current foreach is:
Code:
~if we're using a shield bash, we get Two-Weapon Fighting
foreach pick in hero from BaseWep where "wCategory.ShieldBash & ((fieldval:wIs2nd <> 0) | (fieldval:gIsEquip <> 0))"
perform hero.assign[Hero.TwoWep]
done
nexteach
I figure I could use something like:
Code:
doneif (hero.findchild[BaseWep, "wCategory.ShieldBash & (Hero.MainHand|Hero.OffHand)"].??? = 0)
But I'm not sure what to check just to see if that match happened. Any ideas?
FYI I have used "valid" and it works, but from reading the description I'm not sure if that is the proper use. I've also just done a tagis[thingid.?] check which obviously will come up 0 if nothing is there. But I was hoping for something that merely says "I exist"