hey there! ive found a way to give the player 5 random items by calling this common event five times:
but i dont want any multiples of items just 5 different items each time- was wondering if theres a simple way accomplish this?
JavaScript:
var temp = [];
$dataItems.forEach(function(v) {if (v && v.name) {temp.push(v);}});
$gameParty.gainItem(temp[Math.floor(Math.random()*temp.length)],1);