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

shadowfir

Warper
Member
Joined
Oct 15, 2020
Messages
3
Reaction score
1
First Language
Portuguese
Primarily Uses
RMMZ
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. =)
 

Sparky89

Game Designer
Veteran
Joined
Dec 18, 2019
Messages
326
Reaction score
138
First Language
English
Primarily Uses
RMMV
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
 

Attachments

  • 1604295412559.png
    1604295412559.png
    104.6 KB · Views: 4

shadowfir

Warper
Member
Joined
Oct 15, 2020
Messages
3
Reaction score
1
First Language
Portuguese
Primarily Uses
RMMZ
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?
 

shadowfir

Warper
Member
Joined
Oct 15, 2020
Messages
3
Reaction score
1
First Language
Portuguese
Primarily Uses
RMMZ
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);
 

Latest Threads

Latest Profile Posts

Now a videogame developer has been arrested in Japan for insider trading. Darn blue hedgehog! XD
The forum stalled for a second and I thought I got banned for using 1 swear word. :kaoswt2:
Today years old when I realized I can track Last Skill ID used as a variable... natively in engine....

*sighs in reconstructing skill system*

Forum statistics

Threads
131,751
Messages
1,222,920
Members
173,501
Latest member
Alexcrawler
Top