Menu Category Selection EX


Menu Category Selection EX
[ Version 1.0.1 ]
NaosoX
​



Introduction
Previously an Item Menu category selector, now rebuilt and includes Item, Skill, and Status(Visustella only) Scenes.
Automatically jump to a category upon entering Scene_Item, Scene_Skill, Scene_Status.

Features
Compatible with Visustella.
Scene_Status parameters only work with Visustella Elements and Status Menu Core as vanilla RPG Maker MZ doesnt have categories.

Code:
 * ============================================================================
 * MENU CATEGORY SELECTION EX
 * ----------------------------------------------------------------------------
 * ITEM SCENE CATEGORY:
 * Automatically jump to a category upon entering Scene_Item.
 * Compatible with Visustella.
 *
 * Plugin Parameter to set which variable to use.
 * Plugin Parameter to reset variable to 0 upon exiting.
 *
 * Set the declared variable to a value from 0 to ?
 * If the value less than 0, variable will
 * automatically set to 0.
 * If the value exceeds available categories, variable will
 * automatically set to highest available category.
 * ----------------------------------------------------------------------------
 * SKILL SCENE CATEGORY:
 * Automatically jump to a category upon entering Scene_Skill.
 * Compatible with Visustella.
 * http://www.yanfly.moe/wiki/Skills_and_States_Core_VisuStella_MZ
 * http://www.yanfly.moe/wiki/Skill_Learn_System_VisuStella_MZ
 * http://www.yanfly.moe/wiki/Enhanced_TP_System_VisuStella_MZ
 *
 * Plugin Parameter to set which variable to use.
 * Plugin Parameter to reset variable to 0 upon exiting.
 * Plugin Parameter to activate selected category.
 * When activating category, processOK sound supression for seamless transition.
 *
 * Set the declared variable to a value from 0 to ?
 * If the value less than 0, variable will
 * automatically set to 0.
 * If the value exceeds available categories, variable will
 * automatically set to highest available category.
 * ----------------------------------------------------------------------------
 * STATUS SCENE CATEGORY:
 * Automatically jump to a category upon entering Scene_Status.
 * Only for use with Visustella Elements and Status Menu Core.
 * http://www.yanfly.moe/wiki/Elements_and_Status_Menu_Core_VisuStella_MZ
 *
 * Plugin Parameter to set which variable to use.
 * Plugin Parameter to reset variable to 0 upon exiting.
 *
 * Set the declared variable to a value from 0 to ?
 * If the value less than 0, variable will
 * automatically set to 0.
 * If the value exceeds available categories, variable will
 * automatically set to highest available category.
 * ----------------------------------------------------------------------------

Screenshots
Spoiler: Screenshots
MenuCatSelEx.png

VariableSelect.png

VariableList.png

Choose your variable
Reset.png

Reset to default after first change?
You can also not reset, and have the category always appear -- or change the variable whenever you need.
Example.png

Example of how to set variable and call Scene_Item
works the same through main menu
Menu.png

Download
https://naoso.itch.io/menu-category-selection-ex

Terms and Credits
Credit: Naoso

[License]
this plugin is released under MIT license.
Updated to include: Items, Skills, and Status.
Hey, this feels like a smart add for me since I want to jump to Moogle Xs equip skill category in the skill scene.

Will this work even if the place of that sub menu changes? It always comes last under all other Skill Types:


1678584155615.png


1678584289606.png
=>
1678584299491.png



Would this be a solve? Or should I stick to the updates you suggested to the Main menu cores command list parameters?


The plugin used to create the "Grimoire" category
you would have to know how many commands you have before you set the variable, otherwise the variable resets to 0 if the variable you selected is out of range.
@Puppet Knight Plugin updated.
Should the variable be set under 0(negative), automatically sets to 0 [FIRST]
Should variable be set above category amount(example: 99), automatically set to last available category. [LAST]
Enjoy!
Tried, unfortunately it seems to be remembering the previous position used even if additional skill types get added in:

1678628648479.png


1678628679764.png


With default Skill Types available, it opens to the last option:
1678628741810.png


When i trait a skill type in though, it remembers the previous position:

1678628779644.png
.


I know its a matter of remembering the last because if I trait a Skill type in before entering the Skill Scene, it goes all the way to the bottom as its supposed to. But if I unequip the traited item and requip it. It gets back to the "Range, Melee, Test" image.



Thoughts?
As An example: you have 2 actors.
One(A) has 3 categories, the other(Z) 4...
You set the variable value to 4(0 indexed)
If you call the menu for (Z), the variable will shift to value 3[LAST].
If you then call (A), the current value is 3.. but their skill index is maximum 2.. it will shift to 2
So, now calling (Z) index is 2.

It's up to you to set a high value for your variable before calling the menu.

Example:
Code:
$gameVariables.setValue(25, 99);
SceneManager.push(Scene_Skill);
So i should set the value each time the scene switches, not just for that first go?
So i should set the value each time the scene switches, not just for that first go?
OFC
Cool, got it working as needed withthat tip. Great plugin for my purposes ^_^
Hey, revisiting this plugin as Im tidying up menu navigation:

If Actors dont have the same amount of skill types its a bit wonky when cycling between the party's skill views:


Starting with Actor with onl 2 Stypes, appropriate behavior:


1684868821425.png


But Switching Allly (using visustella skillsstatescore)

1684868872317.png


It maintains position.

I have the variable set above so its working as designed. The issue I believe is that I'm technically not leaving the skill scene, so the variable isnt being checked again when cycling.


Thoughts?

Original thread: https://forums.rpgmakerweb.com/threads/menu-category-selection-ex.155535/