When the character opens a box, it should pull from a list and get a random result.
Ambush, gold, and nothing work fine.
Adding an item, weapon or armor doesn't work and I'm beating my head against the wall trying to figure out what I'm doing wrong.
This is the script I'm using
The control pulls a random number and stores it in (11)
var item = $gamevariables.value(11);
$gameParty.gainItem($dataItems[item], 1)
Please tell me it's something easy to fix
Ambush, gold, and nothing work fine.
Adding an item, weapon or armor doesn't work and I'm beating my head against the wall trying to figure out what I'm doing wrong.
This is the script I'm using
The control pulls a random number and stores it in (11)
var item = $gamevariables.value(11);
$gameParty.gainItem($dataItems[item], 1)
Please tell me it's something easy to fix