[Solved] Help with Yanflys Item Requirements

Hello everyone!

I'm using yanfly's plugins and I'm trying to work out how to check the characters level when equipping a weapon using his Item Requirements plugin. I read the documentation and I know its going to require a javascript eval using the
<Custom Enable Requirement> </Custom Enable Requirement> note tags. I've looked around for some time now and have yet to find the answer to this. I'm looking to make a weapon unequipable if the character is say level 10. Thanks for those of you who took the time to read this. Sorry ahead of time if this has been answered a million times already.

I tried something like this to no avail. I'm sure it's way off.
<Custom Enable Requirement>
condition = battler.level >= 10;
</Custom Enable Requirement>
You can achieve this through Yanfly's Equip Core Plugin utilizing this notetag:

<Custom Equip Requirement Condition>
if (user.level >= 10) {
condition = true;
} else {
condition = false;
}
</Custom Equip Requirement Condition>

Item Requirements is strictly for usable items, not for weapons and armor.

I've moved this thread to Plugin Support. Thank you.

Ahh, I see. Thank you very much, I didn't even realize that it wasn't for weapons and armor. I suppose I should read more next time. But I do have what I need for Equip Requirement so I really appreciate it! I apologize for posting in the wrong area, thank you for moving it.
I tried something like this to no avail. I'm sure it's way off.
<Custom Enable Requirement>
condition = battler.level >= 10;
</Custom Enable Requirement>

Also, I've had trouble shortening these types of custom requirement condition statements in this way in the past. Maybe it was just me messing up the syntax but I've found it successful more often when I write it out in the same way as it shows in the plugin commands, i.e. in the response I posted earlier.
Thanks for the tip, I dabble in JS but thats about as far as it goes. Any help is a big help.
I'm glad to help, honestly. I am still learning as well but these formus have definitely gone a long way to help me get to where I am now. Other than just trying to solve my own problems, trying to help solve other issues that come up helps me learn so much more than I would by working on my own game alone.
🤘 :LZYcool: 🤘

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/solved-help-with-yanflys-item-requirements.121491/