Im makiing a random reward and the code works in that regard but i cannot get the item to show its icon as well.
I have tried adding "\I[reward.iconIndex]" but it doesnt work. Any help would be appreciated.
const items = [152, 153, 154, 155, 156, 157];
const index = Math.randomInt(items.length);
const reward = $dataItems[items[index]];
$gameMessage.add("Your party gained " + reward.name + "!");
$gameParty.gainItem(reward, 1);
$gameMessage.newPage();
I have tried adding "\I[reward.iconIndex]" but it doesnt work. Any help would be appreciated.