Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-07-2010, 06:49 PM
Sage_Shadowbane Sage_Shadowbane is offline
Graal Developer
Sage_Shadowbane's Avatar
Join Date: Mar 2004
Posts: 585
Sage_Shadowbane will become famous soon enough
Kind of rusty. =/

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?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.