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

Is proberly eating one of evmaster's Brownie's.
Veteran
Joined
Dec 18, 2019
Messages
154
Reaction score
54
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

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);
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top