MV selecting between events using keyboard?

i'm a little unsure how to specifically word this, but i'm looking for a plugin that can allow you to select events in a scene using your keyboard

here's a mockup to maybe make it clearer what i mean? i'm really awful with words, so i haven't been able to find anything along the lines of what i'm looking for ;;a;;
1636201166564.png
bump? im still looking for this kind of thing if it exists
What do you need this for? Depending on the use case, the answer can vary a lot.

If you're making a Tactical RPG (Fire Emblem, Final Fantasy Tactics, etc.), and you're trying to select a unit to control, use an actor for the cursor, make the player the cursor, and have each event trigger on key press.

In this case, the events can be anywhere on the map, and the player must move all the way to the events.


If you're making a custom menu, make the player invisible, make a Parallel Event that manipulates a Variable on key press, make the events switch between selected and unselected state depending on the value of the Variable. If the key press is the Enter key, then do something based on the value of the Variable.

In this case, the events are in predefined static locations, and you only wish to cycle between the events, no matter how far apart they are (the cursor can't be in-between events).


And so on...
i was thinking of making some kind of puzzle game akin to sudoku, where instead of having the characters have to manually walk to an event to interact with it and change it, it would be simpler to have a scene where using an arrow you'd be able to just select the piece and then swap it.


...then again, in hindsight coding a sudoku puzzle is kind of tedious. its not exactly make-or-break for me, and i can easily just get rid of this idea if no such possibility exists. so it's not the end of the world if i have to do something else instead.
What do you need this for? Depending on the use case, the answer can vary a lot.

If you're making a Tactical RPG (Fire Emblem, Final Fantasy Tactics, etc.), and you're trying to select a unit to control, use an actor for the cursor, make the player the cursor, and have each event trigger on key press.

In this case, the events can be anywhere on the map, and the player must move all the way to the events.


If you're making a custom menu, make the player invisible, make a Parallel Event that manipulates a Variable on key press, make the events switch between selected and unselected state depending on the value of the Variable. If the key press is the Enter key, then do something based on the value of the Variable.

In this case, the events are in predefined static locations, and you only wish to cycle between the events, no matter how far apart they are (the cursor can't be in-between events).


And so on...
I don't think you really need a plugin for that.
Since it's for a Sudoku, you have the advantage that all squares are in known locations.

To determine keyboard presses, you can use a Conditional Branch (page 1, "Flow Control"). You can check for button presses on page 4 using Button -> is being triggered.

You'll need 2 Variables for the arrow's location. Depending on which key was pressed, you'll add to or subtract from the Variables. Don't forget to handle the case when the player has reached the edge of the Sudoku and is trying to "move" away from it.

You can use the Set Event Location command (page 2, "Movement") to change the position of the arrow event, based on the 2 Variables.

When the player presses the Enter key, you can use the value of the 2 Variables to determine which square the player wants to interact with.

You'll need to put all that in a Parallel Process event.

Original thread: https://forums.rpgmakerweb.com/threads/selecting-between-events-using-keyboard.141893/