Selecting Skill Types have sub skill type menu in battle

Hey! I've been looking all over the internet on how to make a selected skill type in your battle command have a popup menu with other skill types to narrow down the selection when finding a skill to select. I have been unable to find one. So the battle command menu would theoretically look like this:

- Attack

- Defend

- Magic:
--> Black Magic --> Fire, Ice, Lightning
--> White Magic --> Heal, Cure, Revive
(Black magic and white magic are in a submenu together after selecting Magic, and selecting one of those leads to that category of spells)

- Sword Skills --> Slash, Spin Attack, Backslash
(sword skills leads straight to the skill list of sword attacks)

- Items

- Escape

Hopefully, that makes sense. If needed, I could go into greater detail and show some better examples. Thank you!
edit: nevermind, just realized this is for vxace. My apoligies.

edit 2: this is the closest thing I know of to what you want, but I'm not entirely sure it behaves as you would like.

Original thread: https://forums.rpgmakerweb.com/threads/selecting-skill-types-have-sub-skill-type-menu-in-battle.123244/