I need help with making a shop UI

So I'm wanting to make an rpg maker game (possibly a lifesim?) and I have ideas for UI and I want to know, how can I replicate this demonstration I made, plugins mostly but if there is a way I can make it, then how? Thank you!
Notes for buttons: Buttons slowly blink brightness when hovered, the item's buy button are the lavender buttons, and maybe the image of the items can load a description and info about the item along with a button to buy said item
Picsart_24-01-24_18-26-37-492.jpg
That's going to be a lot of work.

You're going to have to draw/buy/commission all of the artwork for the buttons and such.

Then for the displaying of item descriptions and hovering of buttons you'll need custom code.

My personal recommendation would be to work on your actual game mechanics and gameplay and any story you might have.

Use a placeholder for this while you decide whether you want to try to learn JavaScript to edit the scene and windows code yourself, or save up to commission someone to do it.

Maybe someone else will have another suggestion...I don't know if Graphical Design Mode can do stuff that's not standard to MV's engine like button animations on hovering.
Maybe someone else will have another suggestion..
It can be built with eventing, but as said, it's no small task. I built a somewhat similar system in my own game and using a high number of show picture commands and pre-rendering the text as a png file.
The problem with this is that the text is pre-rendered so it can't be easily edited within the editor itself.
There's a myriad of other problems eventing it the way I did as well, such as prices being unable to fluctuate (unless I wanted to render out more price pictures).

The point I am making is that it's very specialized, and I can give you some pointers how to do it, but I can't tell you how to make this on your own. You'll really need to grasp how to use all of the editor functions pretty well and some scripting (which, Turan, you may not recall but you actually helped me with my shops script :LZSlol:). Basically, not something for a beginner.
Thank you both! As for the UI/buttons I can actually make on my own, I made that image all off picsart and make a clock ui from it too! As for scripting I can learn that aswell, thank you for the help!
So in short, you'll need a autorun common event, a variable, and some conditionals.

Start by creating a autorun common event. When you talk to a shop keeper, turn on the switch that activates the common event.
At the bottom of the common event when the conditions are met, make sure to turn the switch off, otherwise players will be trapped in this menu.

Let's build the event:

This script:
Code:
Input.isTriggered("[key]")
(change [key] to the key that is being pushed. For example: Input.isTriggered("right") )
This particular script is going to detect when a key is tapped, rather than the default "key is pressed". The difference is that key is pressed will continue to meet the conditional as long as the key is held, while isTriggered is only going to detect the key once.
The reason is that you are going to use a autorun event. You will be using waits, but even short 5 frame waits are nearly faster than the average person's reaction time, so if we used isPressed, then it would trigger the conditional more than once.
Therefore, isTriggered is the correct conditional to use.

From there, you will use a variable to detect where the player's cursor is.
Technically for long lists I think you want to use a modulo operator, but honestly, I don't know how those things work :LZSlol: So just know my method is not the most efficient, but it's what we are going to work with. If you want to figure out how to make the modulo operand work for cursor selection or if someone else wants to clarify how that works then feel free.

So with that said, create a variable "PlayerCursor".
Now set up conditionals for every acceptable direction the player can move the cursor. In this case, it looks like you only have left and right.
So use the isTriggered script on 2 different conditionals.
On the left conditional subtract 1 from PlayerCursor. On the right, add 1 to PlayerCursor.
What this is doing is changing our variable value up or down. Depending on what value it is at, we can tell it what that selection is by using another conditional later

Below the isTriggered conditionals you will create a conditional to detect the value of our PlayerCursor variable.
So create a conditional for each value it can possibly be.
In each conditional you can assign the visuals to help the player know what selection they are on.

Next we need to add the completion/exit step.
So create another isTriggered conditional for "okay". This will validate the player's selection.
Place this conditional inside the PlayerCursor conditionals. That way:
If PlayerCursor is 1
(highlight the item)
If okay isTriggered
buy item (at PlayerCursor1)

You may also want to create an isTriggered cancel conditional as well using the same method as left and right, but now to remove all pictures and turn off the autorun event.

The end result can look something like these:
18ShopHUD.gif

31GratitudeFish-to-Gif.gif


Both of these were entirely evented, but both took awhile to set up. Like I said, this isn't easy.

Here is the event code for the bottom gif shown above.
Spoiler
Code:
◆Control Variables:#0237 APgame-actionChoice = 1
◆Loop
  ◆Comment:--------------------------------------------------------
  ◆Comment:CHOICE CONTROLLER
  ◆Comment:--------------------------------------------------------
  ◆If:Script:Input.isTriggered("right")
    ◆Play SE:001_UI-Select (90, 100, 0)
    ◆Control Variables:#0237 APgame-actionChoice += 1
    ◆
  :End
  ◆If:Script:Input.isTriggered("left")
    ◆Play SE:001_UI-Select (90, 100, 0)
    ◆Control Variables:#0237 APgame-actionChoice -= 1
    ◆
  :End
  ◆Comment:--------------------------------------------------------
  ◆Comment:VAR LIMITER
  ◆Comment:--------------------------------------------------------
  ◆If:APgame-actionChoice < 0
    ◆Control Variables:#0237 APgame-actionChoice = 0
    ◆
  :End
  ◆If:APgame-actionChoice > 2
    ◆Control Variables:#0237 APgame-actionChoice = 2
    ◆
  :End
  ◆Comment:--------------------------------------------------------
  ◆Comment:CHOICE DISPLAY
  ◆Comment:--------------------------------------------------------
  ◆If:APgame-actionChoice = 0
    ◆Comment:Boost STACK
    ◆Move Picture:#3, Center (300,360), (100%,100%), 255, Normal, 10 frames
    ◆Move Picture:#4, Center (640,360), (80%,80%), 255, Normal, 10 frames
    ◆Move Picture:#5, Center (980,360), (80%,80%), 255, Normal, 10 frames
    ◆If:Script:Input.isTriggered("ok")
      ◆Play SE:001_UI-Okay (90, 100, 0)
      ◆Change Parameter:Fidel, Luck + 1
      ◆Comment:------
      ◆Control Variables:#0018 TimerEvents = 30
      ◆Loop
        ◆If:TimerEvents ≤ 0
          ◆Break Loop
          ◆
        :End
        ◆Move Picture:#3, Center (300,360), (120%,120%), 255, Normal, 10 frames
        ◆Wait:1 frame
        ◆Control Variables:#0018 TimerEvents -= 1
        ◆
      :Repeat Above
      ◆Comment:------
      ◆Jump to Label:WrapUp
      ◆
    :End
    ◆
  :End
  ◆If:APgame-actionChoice = 1
    ◆Comment:Boost Healing
    ◆Move Picture:#3, Center (300,360), (80%,80%), 255, Normal, 10 frames
    ◆Move Picture:#4, Center (640,360), (100%,100%), 255, Normal, 10 frames
    ◆Move Picture:#5, Center (980,360), (80%,80%), 255, Normal, 10 frames
    ◆If:Script:Input.isTriggered("ok")
      ◆Play SE:001_UI-Okay (90, 100, 0)
      ◆Control Variables:#0342 BonusHealingPoints += 2
      ◆Comment:------
      ◆Control Variables:#0018 TimerEvents = 30
      ◆Loop
        ◆If:TimerEvents ≤ 0
          ◆Break Loop
          ◆
        :End
        ◆Move Picture:#4, Center (640,360), (120%,120%), 255, Normal, 10 frames
        ◆Wait:1 frame
        ◆Control Variables:#0018 TimerEvents -= 1
        ◆
      :Repeat Above
      ◆Comment:------
      ◆Jump to Label:WrapUp
      ◆
    :End
    ◆
  :End
  ◆If:APgame-actionChoice = 2
    ◆Comment:Boost ConP
    ◆Move Picture:#3, Center (300,360), (80%,80%), 255, Normal, 10 frames
    ◆Move Picture:#4, Center (640,360), (80%,80%), 255, Normal, 10 frames
    ◆Move Picture:#5, Center (980,360), (100%,100%), 255, Normal, 10 frames
    ◆If:Script:Input.isTriggered("ok")
      ◆Play SE:001_UI-Okay (90, 100, 0)
      ◆Control Variables:#0343 BonusBattleConP += 3
      ◆Comment:------
      ◆Control Variables:#0018 TimerEvents = 30
      ◆Loop
        ◆If:TimerEvents ≤ 0
          ◆Break Loop
          ◆
        :End
        ◆Move Picture:#5, Center (980,360), (120%,120%), 255, Normal, 10 frames
        ◆Wait:1 frame
        ◆Control Variables:#0018 TimerEvents -= 1
        ◆
      :Repeat Above
      ◆Comment:------
      ◆Jump to Label:WrapUp
      ◆
    :End
    ◆
  :End
  ◆Wait:1 frame
  ◆
:Repeat Above
◆Comment:///////////////////////////////////////////////////////
◆Comment:WRAP UP
◆Comment:///////////////////////////////////////////////////////
◆Label:WrapUp
◆Move Picture:#3, Center (640,360), (80%,80%), 255, Normal, 10 frames
◆Move Picture:#4, Center (640,360), (80%,80%), 255, Normal, 10 frames
◆Move Picture:#5, Center (640,360), (80%,80%), 255, Normal, 10 frames
◆Move Picture:#6, Center (640,360), (80%,80%), 255, Normal, 10 frames (Wait)
◆Erase Picture:#3
◆Erase Picture:#4
◆Erase Picture:#5
◆Move Picture:#6, Center (640,820), (80%,80%), 0, Normal, 10 frames (Wait)
◆Wait:30 frames
◆Flash Screen:(255,255,221,255), 20 frames
◆Show Animation:Player, GratitudePowerReceived (Wait)
◆Wait:10 frames
◆Control Switches:#0215 PassEventData = ON
◆Common Event:GratitudeStatue
◆Control Switches:#0214 EnableGratitudeChoice = OFF

**NOTE: the variable labeled "APgame-actionChoice" is the variable I am using as my PlayerCursor.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-with-making-a-shop-ui.165109/