MV Condition to use a skill when another can't be used...

Basically I'm trying to do a check that if the player can't use a certain skill to add another one as a replacement. I feel I could use this... http://www.yanfly.moe/wiki/Skill_Core_(YEP) to show and hide skills, but I'm unsure how to show the new skill based on the old skill no longer being usable.

Tho I'm wondering is there an easier way to do this... I've been trying to figure out a clean way to have it so if any attack isn't usable, that the new skill replace it. Some plugins I've found do it when you select the skill and it'll do a different one, but I need somewhere moreso where the old skill is off the skill list (which I can do with Skill Core easily) and put the new one on there. I'm just unsure how to put the condition for the new skill showing up based on the old one being gone.
I haven't tested this, but try using

!user.canUse($dataSkills[skill id])

as your condition.
Tried it and it works, big thanks! I'm curious, is there any place that has that code written or something? I scoured the script calls and other posts and I never came across something for if you can use a skill, just if you HAVE used it.
Tried it and it works, big thanks! I'm curious, is there any place that has that code written or something? I scoured the script calls and other posts and I never came across something for if you can use a skill, just if you HAVE used it.
It's a default function of the Game_BattlerBase class from which actors derive (via Game_Battler), so it should be in the script calls list. I haven't checked to see if it is.
ahh ok thanks. Knowing me, I probably wasn't checking in the right spot. But yeah, I've been at this all afternoon so yeah, thanks for the help.
Tried it and it works, big thanks! I'm curious, is there any place that has that code written or something? I scoured the script calls and other posts and I never came across something for if you can use a skill, just if you HAVE used it.
ive always used this to find the default stuff with mv. theres the script call doc on this forum but i find this easier to use personally.
ahh ok thanks. Knowing me, I probably wasn't checking in the right spot. But yeah, I've been at this all afternoon so yeah, thanks for the help.
If it's any consolation I once spent 4 hours trying to find the cause of a bug to find it was a missing single quote.

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/condition-to-use-a-skill-when-another-cant-be-used.162714/