Skill that can only be selected if the user's MP is 0?

I am trying to make a skill that can only be used if the user's current MP is 0 and is greyed out and unusable if they have 1 or more MP. How would I set this up so that it works as intended? I found online how to make it where the skill isn't visible when the user's MP is 0, but I'd rather it be visible at all times and just can't be selected until MP is at 0.

EDIT: Nevermind- I found that this did the trick:

Code:
<Custom Requirement>
 if (user.mp == 0) {
   value = true;
 } else {
   value = false;
 }
</Custom Requirement>

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-can-only-be-selected-if-the-users-mp-is-0.169735/