Tagging entire section of database into one variable?

Hi.

Can someone please tell me how i can put data weapons ID or armors ID or item ID's into one variable like $game_variables[1] = 1 <--- if check in conditional branch then will be using $game_variables[1] == 1 which will be true if that weapon ID 1 is in inventory and so forth for using same variable adding weapon ID tagged as number 2 in variable like $game_variables[1] = 2 <--- weapon ID 2 and if use in conditional branch $game_variables[1] == 2 is true if weapon ID 2 is in inventory. I could easily do this under conditional branch putting weapons, armors, or items ID into condition but that would take alot of work, time, and one heck of a long page event to process persay if its even under one page. So, to make it more efficient and cleaner, is it possible to just link the whole weapons ID or armors ID or Items ID into one variable can be reference off that variable as 1,2,3,4,5,6,7 equals to 1,2,3,4,5,6,7 ID's in the tag section of the database like weapons, armors, or items? Any help would be appreciated. Thanks =)
I've moved this thread to VX Ace Support (Tutorials is for completed tutorials, not for questions). Please be sure to post your threads in the correct forum next time. Thank you.


Add some punctuation and line breaks to your question please. I get to $game_variables[1] = 1 and then I can't understand what you're saying. First you're talking about putting ids into a variable, then you're talking about conditional branches as if it's the same thing.


"the whole weapons ID or armors ID or items ID" doesn't mean anything. Your terminology is confusing and I can't figure out what you actually want. Perhaps if you explain WHAT you want to accomplish, or WHY, it will clear things up a bit.
I think OP wants to see if it's possible to have whatever equipment the player has on them, turn into the actual ID (which would be number and not a name nor quantity) of all the item/armour/weapon in question when setting it to a variable.


Probably something to do with an array.
Im sorry about that Shaz... =/

Thanks Celianna, this is already solved provided a solution by Galv 

http://www.rpgmakervxace.net/topic/17551-tagging-entire-section-of-database-into-one-variable/#entry120378
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/tagging-entire-section-of-database-into-one-variable.16532/