Automatics skill types attacks

Hi,

As you know, in the battle system, If a member don't have access to the skill type "magic", it will be hide in the battle menu. And, if he have access to this skill type, even if he can use only one skill, the player will have to press "enter" one time to select the skill type "magic" and then another time to select the only  skill.

Basically, I want to do two things. First I want that if a character have access to the skill type "magic" but have no skills in this category, I want the command "magic" to be present in the command list but that when the player select it, it play the SE "cancel" and do nothing.

Also, I would like that when there is only one skill in the skill type "magic" , then if the player select that command, the it automatically choose the only "magic" skill.

Do you know if there is way to do that ?
Victor Sant has a script for that, let me see if I can find it here http://victorscripts.wordpress.com/rpg-maker-vx-ace/gameplay-scripts/direct-command/
The command manager allows you to create commands that will use a skill.


If you are looking for an evented solution while using the actor command window, there is no easy way to accomplish it.
Thanks you, stapleton1078 and Tsukihime.

I didn't tried theses scripts yet, but it seems that it respond to the second part of my question. But does it works for my first question, "First I want that if a character have access to the skill type "magic" but have no skills in this category, I want the command "magic" to be present in the command list but that when the player select it, it play the SE "cancel" and do nothing." ?

 
No, my script wouldn't do that. "Skill Type" command by default will open the skill selection window. If you want to change how this behaves, you will need to modify how that command behaves.


It sounds like you want the command to just execute whatever "magic" skill you have, without actually telling the player what the skill is.
No, my script wouldn't do that. "Skill Type" command by default will open the skill selection window. If you want to change how this behaves, you will need to modify how that command behaves.

It sounds like you want the command to just execute whatever "magic" skill you have, without actually telling the player what the skill is.
Yes. I want to do that because there will always be only skill in the skill type "magic", so telling the player the name skill is useless.

Anyway, even if your script can't do that, do you know  way to modify how the command behave to show the command "magic"  in the command list but that when the player select it,

it play the SE "cancel" and do nothing ?

thanks for your help,
I would wonder if that is a good idea for your players, as opposed to just not showing the command or disabling it.


So basically if there is no skill available, nothing happens, but if there is a skill available, it will use it?
Yes that's it. but if there is more than one skill available, nothing change, it will just show the skill list. Anyway, do you know a way to do it ?
Bump
Have you tried the Victor Sant script I recommended for you? The script leads a command "Magic" in this case to a skill in the database skills so it doesn't open a list. Have that skill do nothing. And not usable in battle.

Then use the database to gain the command Magic and a skill when you have one or more available skills through leveling up or whatever.

Try the script.
EDIT: Thanks you very much, I it worked.

Original thread: https://forums.rpgmakerweb.com/threads/automatics-skill-types-attacks.35739/