MZ How to show 3 choices of random itens for the player to pick 1! SOLVED

Hello there.

I wanna use a system similar to Slay the Spire, where at the end of a battle the player is given a choice to get 1 out of 3 random items.
I tried to do without using scripts but I failed. How can I do that?
I want to show the 3 options with the name and Icon of the items and the player will pick 1.

Sorry for my sloppy English I'm from Brazil. =)
Not sure about inside battle before it ends but you can do something after.. i did a quick test on how.
Assuming the battle process ends and you DIDN'T die the show choices will then appear you can set this to centre right left etc on screen give the player the choice prize 1 2 or 3 or list that choice.

kinda only works if you didn't escape tho. of course you can change all of that by adding to the events below. But it's simple and it works.
1604295441087.png
Yes, it's something similar to this, but do you know how to add an item based on ID using a variable using a script?
I solved it!!
I had to use 3 variables for the choices, 1 variable to compare inside the loop and the following script to give the item:

$gameParty.gainItem ($dataItems[$gameVariables.value(5)], 1);

Original thread: https://forums.rpgmakerweb.com/threads/how-to-show-3-choices-of-random-itens-for-the-player-to-pick-1-solved.129446/