Okay, so I haven't scripted in a bit, trying to get back into the groove somewhat, so I've decided to pick back up on some old scripting projects, but alas! I have run into problems, of course.

So, I have a question about a issue at hand, and I also have a question in regards to something I want to do in the future.
Okay so, first thing: (Nevermind I figured this part out, but help with the second question would be appreciated.)
And secondly: I was wondering, how exactly would I go about checking through ALL the flags in a DB and see if they match to a specific sent array? Eg:
DBNpc - Test_Stats: Holds flags - this.test_1 = {1, 2, 3}; and this.test_2 = {3, 4, 5};
Now, say in a weapon NPC I have a weapon creating arrays: this.check_1 = {2, 3, 4}; and this.check_2 = {3, 4, 5}; and I want to send them both to the Test_Stats NPC to check if they match up to any flags that are stored within that DB. (Of course when actually made this flag list will be much more extensive.) How exactly would I go about checking all of those flags and seeing if they match up, so that I could than return whether they match up or not?
