Default Commands Greyed out due to an inflicted state

Good Morning / Day / Afternoon / Evening everyone.

I am in need of your assistance once again.

I think I have requested this before

19.06.2022_12.49.43_REC.png


Is there a way to GREY OUT the attack commands and item commands when actors are inflicted with certain states?

I remember that it was something like " ! state (x) " right next to add_command...

Can someone please help me achieve this?
I use this one.
Not sure if it works with the default command (by command, you mean attack?)

This is good but I know it can be done with states... by adding a certain code somewhere in Actor_Command...!
19.06.2022_13.40.36_REC.png
Problem has been solved, mods may lock this thread please!!

Original thread: https://forums.rpgmakerweb.com/threads/default-commands-greyed-out-due-to-an-inflicted-state.148687/