Temporary removal of battle command

Temporary is the key word here.

I have a character who can change states. When he does so, it also changes which type of magic skill he has access to.

When he changes his mode, his normal magic skills are sealed and he is given a different magic type and another set of skills. This is done by his transforming skill applying a state. The state ends either when he uses a skill to change back or at battle end. This removes the state.

In his normal (starting) mode his command window looks like this:
1719077204041.png



At the moment, when he changes his command window then looks like this (Void is the type of magic he can access).
1719083205519.png

As you can see, it is showing both types of skill. If you click the Magic type, you'll find all the skills greyed out, so at least they are not accessible, but I would rather it didn't show this command at all. I think it's potentially confusing.

Is it possible to temporarily remove the Magic command? I have looked at the options available in the VS Battle Core plugin which I am using, but if I have understood it correctly, my particular wish is not covered.

Any suggestions?
Thank you.
The only way I could see to do it via VS is this:

Assign the actor a passive in the actors tab which grants access to the skill type Magic. Set that passive to only be active when a switch is on (doable with a notetag).

Then when they transform, have that transformation turn the switch OFF.

I actually do something like that with team attacks in my current game, here is a pic of my setup for that so you can see. In this case until I turn on switch 201, that state is disabled. And the relevant actors have this as a passive state in their notetags.

Team_attacks_Passive.png
@bgillisp I have the transforming bit okay. It's the temporary removal of the original type from the battle command window that I haven't got, and I can't understand how your solution would do that. Wouldn't it just show both types the same way as my method does?
Wouldn't it just show both types the same way as my method does?
No. If they only have access to the Magic type because of a state, and that passive state is turned off, there's nothing giving them access to it.

Just like they don't see Void when there's nothing giving them access to it.
@ATT_Turan got it. Thanks. I'll give it a go in the morning.
Right. You'd do it where that switch is ON at game start (or when Magic is available) then turn it OFF in the transformation.

You will also need to turn it back on though when they transform back. That may take some coding depending on how you implemented that.
@bgillisp and @ATT_Turan
I am clearly doing something wrong, as it is not working.

The actor has these 2 notetags giving state #108 (Magic) and #109 (Void)
1719121653102.png


State 108 looks like this:
1719121817950.png


I tested this by starting a new game, adding him to the party and turning on switch #313
1719122016503.png


Checking his skills from the menu showed that he had none, and no skill type was shown.
His battle command window did not show Magic either. Without that, he does not have access to the skill which transforms him.

If I remove the condition switch from #108 he does start with Magic.

Can either of you spot the newbie-level mistake?
Thanks
So... at the risk of derailing the thread.

Is it not an option to do this with a class change (to a copy of the class)? There are battle command class notetags that overwrite the default battle command settings.
@werzaque That's certainly an idea, but I think that changing class mid-battle might become rather complicated. While I can automatically save EXP from one to the other, grabbing all the other things (current HP, MP, states etc.) could prove tricky, and then there is the change back, either again mid-battle or at the end of battle.
Can either of you spot the newbie-level mistake?
Not off the top of my head, it looks like it should be correct; but it's possible other VisuStella plugins are screwing with how traits are added by states or skill types are gotten.

Have you tested that the state itself actually toggles correctly with the switch? If you give it an icon and take away the no-tooltip tag?
@ATT_Turan Yes, I'd tried that test. Nothing. It looks most likely that your suggestion about other plugins is the prime contender. I'll have to do a slow sifting. Thanks for the suggestion.
Can't you just give the actor a state, which seals the attack skill? The command will be there, but greyed out and disabled.
@JohnDoeNews that's what I started with, and it was precisely the greyed out command that I wanted removed.

@ATT_Turan I now have precisely what I want with a cunning bit of code from @Ahuramazda but thank you for your time and trouble with this.
@Kes
Glad I was able to come up with what you needed!
Always happy to help when I can. 😀
@Ahuramazda Thanks.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/temporary-removal-of-battle-command.169711/