How to place the cursor in a specific item of a list?

Magusalfador

Veteran
Veteran
Joined
Jun 15, 2014
Messages
239
Reaction score
40
First Language
English Spanish
Primarily Uses
Hi all!

Im making my custom menus and I go back and forth between them and its kind of a bummer to have to go all the way back to the item I was positioned last. Example.

My MAIN MENU is: skills, options, achievements, save.

So my cursor starts at SKILLS when I go to the MAIN MENU and lets say I want to save my game, so I go to SAVE and once im in there I save my game, after saving, it automatically calls the MAIN MENU back and the cursor is back at skills, the question here is, HOW do I make my cursor appear at SAVE (since it was the last item selected from the MAIN MENU).

Thanks.
 

Hyouryuu-Na

Procrastinates 24/7
Veteran
Joined
Jun 15, 2017
Messages
631
Reaction score
1,335
First Language
Not English
Primarily Uses
RMMV
Did you code the entire thing or is it an evented system? Regardless of which one it is, you should provide screenshots of how the system is set so people can help.
 

Magusalfador

Veteran
Veteran
Joined
Jun 15, 2014
Messages
239
Reaction score
40
First Language
English Spanish
Primarily Uses
Hi!

I didnt code it, I use an evented system. I attached some pictures.

Pic1 = I open my menu and my cursor starts at the first item, Inventory.
Pic2 = I go to the option Save -Load.
Pic3 = I save the game.
Pic4 = Automatically takes me back to main menu, where the cursor its positioned on the first item of the list Inventory, An I would want to be positioned in the last Item I picked, in this case, Save - Load.
 

Attachments

Hyouryuu-Na

Procrastinates 24/7
Veteran
Joined
Jun 15, 2017
Messages
631
Reaction score
1,335
First Language
Not English
Primarily Uses
RMMV
It's pretty hard to provide suggestions without knowing the structure of your event but I'll just say what I'd do if I was in this situation. Instead of resetting the cursor(selected item), you can save the last item index or something temporarily to a variable so that after the scene change, it returns to highlighting that command.
 

Magusalfador

Veteran
Veteran
Joined
Jun 15, 2014
Messages
239
Reaction score
40
First Language
English Spanish
Primarily Uses
Makes sense, but the question here is, how do I save the item index on a variable. Im looking at rpg_scenes and I cant find out which is the code that tells the cursor to be placed on the first item of the menu list. (index 0 of the list)

Im looking on the wrong .js?
 

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

Latest Threads

Latest Profile Posts

So I just spent the weekend...playing my own game. The one I released last year. Yep you heard that right.
Goal for MZ? None... I'm still curious how to finish my VXA project and how it looks like when it actually finished. Which will take at least another two years. Coming late again to the party.
Finding it amusing that people are posting support questions in new threads for an engine that isn't even released yet. Touch and Archeia are the only ones authorised to say anything, and there's only one active thread where they'll be answering questions.
I think my goal for MZ ... is to actually release a game and not have twenty technical demos and debugging projects. Let's see if I can manage that. ;o
I am starting to enjoy writing. I never thought I would enjoy it since my dyslexia was holding me back so much.
Thanks to the community here :)
For those interested chapter 2 and 3 are available to read here:

Forum statistics

Threads
100,652
Messages
978,096
Members
132,261
Latest member
DarthNinjus
Top