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
271
Reaction score
119
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: 0

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

If only RM had the capability to show whether a project has been edited, or not... like 99% of all other editors out there. That don't cost, too, or release new versions with very few features just to get the extra money... ugh, just too many basic features missing even after, what, two decades?
Surgically removing people's faces and grafting them on to other people is kind of fun.

(editing character art busts for my game)
I think sleep is like a foreign language to me.
I really love it when major blocks preventing me from going all out in game design get shattered.

Like finally developing a fully functioning Technical Machine system where certain characters cannot learn certain moves.

You have no idea how much that helps me.

Forum statistics

Threads
118,819
Messages
1,118,948
Members
156,003
Latest member
arsenic333
Top