RPG Maker VX Ace

RPG Maker VX Ace

View Stats:
Item Recieved Message Common Event?
I'm trying to make a Common Event to send a message to the player about how many of what item they recieved. I would use this for opening chests, NPCs giving items, etc. The message would be something like this:

"Received (#) of (item)[s]"

I was thinking that with this in place, I wouldn't have to type out a message every time I wanted to give the player an item. I could just call the event. I created variables to store the data, but I don't know how to store the item name and then display it in the message.
< >
Showing 1-7 of 7 comments
Kio Kurashi Mar 8, 2014 @ 11:33pm 
To store the non numerical data in a variable in the control variables command ensure set is selected and script is selected. In the script box put what ever you want to call the item in "".
"Potion", "Drawing", "Flooped the Pig!", ect.

to have it display in the message by variable: when in the message window type it out like so
Recieved \V[1] of \V[2].
this with variable one being 5 and variable 2 being "Potions" will give:
Recieved 5 of Potions.
using quotations around words while in the script box will set variables to be exactly that minus the quotations when printed out.
Hajami Mar 9, 2014 @ 4:17am 
Kurashi you did not showed how to get the item name by just knowing the item id.
something like:
$game_variables[1] = get.Item_name[from this item ID]

Do you know the Code? Me not^^ i would be interested because i learn itmyself.
Karanum Mar 9, 2014 @ 4:31am 
It would be this, with 'id' as the item number:
$game_variables[1] = $data_items[id].name
Hajami Mar 9, 2014 @ 5:25am 
Cool thank you very much.
The Real Mcwill Mar 9, 2014 @ 7:18am 
Thank you. This is exactly what I was looking for.
Kio Kurashi Mar 9, 2014 @ 7:57am 
Originally posted by Hajami:
Kurashi you did not showed how to get the item name by just knowing the item id.
something like:
$game_variables[1] = get.Item_name[from this item ID]

Do you know the Code? Me not^^ i would be interested because i learn itmyself.
1) This was asked?
2) Great so now the Variable knows the name from the input of the ID. and it only took typing in 3 times or more the text.
3) Using either method will still require the same amount of effort.
Last edited by Kio Kurashi; Mar 9, 2014 @ 7:58am
Hajami Mar 9, 2014 @ 1:45pm 
No it will not if he uses a variable pointer.
But it would take me some hours to have the code^^ so i invest it in learning more ruby insteed^^.Sorry i cant help, but maybe a Scripter is able to help and write a methode to call.
Last edited by Hajami; Mar 9, 2014 @ 1:51pm
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Mar 8, 2014 @ 9:33pm
Posts: 7