So to preface I'm an RPG/MV baby. I'm just trying to create a random item generator. I've figured out how to do so using an event creation and a common event. However, I can't get the text box that appear after player receives the item, to display the item name and not the random number. The corresponding item appears in the player inventory but I want the name to display in the text box once the player receives the item. What am I missing in my script? Common Events? Control Variable? Etc...
my common event reads as follows
Name: Gacha
Contents
Control Variables : #0020 LOOT ROLLER = Random 1..10
Script : var item = $gameVariables.value(20);
$gameParty.gainItem($dataItems[item.name], 1);
Text : None, Dim, Bottom
You've obtained a \ii\v[20]!
Does my common event 20 need to have specified item names for each number instead of pulling from the item database I have? Please send help ;u;
Thank you.
my common event reads as follows
Name: Gacha
Contents
Control Variables : #0020 LOOT ROLLER = Random 1..10
Script : var item = $gameVariables.value(20);
$gameParty.gainItem($dataItems[item.name], 1);
Text : None, Dim, Bottom
You've obtained a \ii\v[20]!
Does my common event 20 need to have specified item names for each number instead of pulling from the item database I have? Please send help ;u;
Thank you.