Hi how's going script for geting item ID to variable ?? I mean normal items like potions ?
Normal Item ID to variable script command
RPG Maker VXAce SupportThis is not a script, but a normal Event command. Using the Event Command Menu
Click Control Variables
Click the 'Game Data' button (near the bottom, and then the ... at the end of the box. This pulls up a variety of things you can put into variables
Click Item and then select the item you want to go into the variable.
This is a very basic question. Could I suggest you look at this thread where Andar has compiled all the information that new users need to know. For this sort of query, you need to learn what is in Celianna's variables guide, which Andar lists, and which can be found here. Spending some time on this now will save you a huge amount of time and frustration in the future.
Click Control Variables
Click the 'Game Data' button (near the bottom, and then the ... at the end of the box. This pulls up a variety of things you can put into variables
Click Item and then select the item you want to go into the variable.
This is a very basic question. Could I suggest you look at this thread where Andar has compiled all the information that new users need to know. For this sort of query, you need to learn what is in Celianna's variables guide, which Andar lists, and which can be found here. Spending some time on this now will save you a huge amount of time and frustration in the future.
Sorry, but there is no such thing as an Event Command whichs stores the Item ID in a variable. The only thing you can do is to store the number of items in possession in a variable. For storing the ID of an Item in a variable you'll need scripting. I would like to know the script call, too.
heh too bad. I figure out other option of doing this 😉 Thanks for answers 🙂
This puts into a variable how many of that item you have in inventory, not the item's id.
To answer you, we first need to know how you know what item you're looking at? Is it an item that's been chosen from the menu, and you've attached a common event? Usually, you, the developer already know the id of the item before you use it.
There is a Select Key Item command which opens a list containing all the key items (Item Type in database is set to Key Item) that you currently have in inventory and lets the player choose one. It then puts the id of that item into the variable you specify on the command. You can then do a Conditional Branch to check if that variable shows the id of the item you're interested in.
Yeah I figuret it out 🙂 , I was just making droping items in my custom menu thats all 🙂
Original thread: https://forums.rpgmakerweb.com/threads/normal-item-id-to-variable-script-command.42340/