MV Lunatic mode help needed with Yanfly's Limited Skill Use plugin : ) please

This request involves the Yanfly skill core and Yanfly limited skill uses plugins. I am not entirely sure they can do exactly what I'm requesting, but I figured that if it was possible then someone here would be able to figure it out.

My main request: I want skills with no uses left (as per limited skill use plugin) to be hidden from the player's view (a function listed in the skill core plugin.) Then when they have use again, they will re-appear. This is essential to my game, and a very large number of skills will work this way. If you're reading this and thinking "Oh that's easy, you can do that with just this other thing" I'm also totally open to that. Complete!

How I intend this to be used in battle: Imagine Lucius has a move called Inspiration, which targets all allies. This gives a charge of a special attack to each ally depending on who they are- Harold might get Inspired Slash where Marsha might get Inspired Fire or such. Imagine Lucius becomes a support character in this way, using a variety of inspiration-based moves to give special attacks to the other characters. But since there are so many possible moves for a character to be Inspired with, displaying them when there are 0 charges left would make battles extremely unwieldy for players.

Other things I'd like to be able to do: Firstly, I need a way to set the charges of a move to zero when needed (preferably when a battle starts, either way.) Since I want the moves to need inspiration to become available, it defeats the purpose for them to start with full charge. I'd be willing to try anything on this, even if it's a clunky or slow solution.

Secondly, I'm looking for a way to change what moves get inspired based on various things. Primarily, I'd like it to be possible for the inspired skill to be randomly determined from a set list. For example, maybe a 90% chance of charging a medium strength attack and a 10% chance of charging a powerful attack. It would also be nice if the randomization could run multiple times- such as once for Harold's possible moves, once for Marsha's, etc etc. That way good luck for Harold wouldn't guarantee identical luck for other characters on that turn. (I would be perfectly fine with the randomization just running over and over through the entire character list's abilities to account for any present party members, assuming that wouldn't cause a huge slowdown)

I was told an action sequence could accomplish this second one, and I do have the relevant yanfly plugin, but no matter how many tutorials I look at for them I can't seem to wrap my head around how they work.

Thank you for reading! :LZSsmile:
(Edit: Edited to remove extraneous info about the request that was completed, and to better explain the other requests)
Lucius has a move called Inspiration, which targets all allies. This gives a charge of a special attack to each ally depending on who they are
Yeah, Yanfly's Skill Core has Custom Show Requirements.
Code:
<Custom Show Eval>
value=user._skillLimitedUses[skillId]>0;
</Custom Show Eval>

where skillId is the ID of the skill.
I'd like to be able to change what special skill a character gets from an Inspiration move based on variables
This depends a bit on how you're giving them the Inspiration skills in the first place, but I would stick this...well, if it got long and convoluted enough, I'd probably stick it into a plugin and call the function during the skill 😛 But I think that's a bit much for you at the moment, so I'd stick it into an action sequence.
Moved to: Plugin Support

(seeing as you are looking for help with plugins you already have, rather than looking for plugins)
Yeah, Yanfly's Skill Core has Custom Show Requirements.
Code:
<Custom Show Eval>
value=user._skillLimitedUses[skillId]>0;
</Custom Show Eval>

where skillId is the ID of the skill.

This depends a bit on how you're giving them the Inspiration skills in the first place, but I would stick this...well, if it got long and convoluted enough, I'd probably stick it into a plugin and call the function during the skill 😛 But I think that's a bit much for you at the moment, so I'd stick it into an action sequence.
I really appreciate the help! I'm having a hard time getting this working though. This goes in note tags, right? No matter what I tried, I couldn't quite get it to work. Please forgive me, I am incredibly new to this sort of thing. I'm dumb and don't understand well, so I tried all sorts of variations- putting it in as is, replacing skill ID with 4 or 0004 (4 is my testing skill I'm trying to target), leaving in the brackets, leaving out the brackets, etc. The skill remained visible with 0 charges. I'm not sure what I'm doing wrong (probably something obvious to everyone but me.)

On how I'm giving them:
Code:
<Skill Test- delete Limited Uses: +1>
(Skill Test- delete being the name of the skill I'm using for testing.)
I plan on just listing out every skill this is supposed to inspire. So if the idea is to give an inspired attack, I might have it charge the skill inspired slash and inspired bash and inspired clash and etc. Actors that can't learn the relevant skill won't get a charge regardless, so it's fine if I tell it to charge Harold's inspired attack when Harold isn't around.

Though that being said, I hit another snag in testing. The skills start out with maximum charge by default, which sorta defeats the purpose of what I'm going for.

Also I have no idea how to use action sequences. I have the yanfly action sequences plugins since I bought the bundle, but they're a little advanced for me to understand well.
I really appreciate the help! I'm having a hard time getting this working though. I tried...replacing skill ID with 4 or 0004 (4 is my testing skill I'm trying to target), leaving in the brackets, leaving out the brackets, etc.
The only thing you should change is the thing I told you to change: replace the word "skillId" with the ID of your skill. We never use leading 0s, so it should just be 4.

Please provide a screenshot of the entire skill page in your database. It's entirely possible that the code just doesn't work the way I think it should, I read through the plugin quickly to find this solution.
Though that being said, I hit another snag in testing. The skills start out with maximum charge by default, which sorta defeats the purpose of what I'm going for.
Can't you just start skills with 0 charges in the plugin parameters and then increase it with Inspiration?
The only thing you should change is the thing I told you to change: replace the word "skillId" with the ID of your skill. We never use leading 0s, so it should just be 4.

Please provide a screenshot of the entire skill page in your database. It's entirely possible that the code just doesn't work the way I think it should, I read through the plugin quickly to find this solution.

Can't you just start skills with 0 charges in the plugin parameters and then increase it with Inspiration?
below is the page for my test attack.

I tried setting it to 0 charges by default, but it doesn't seem that there's an easy option for this? I already tried changing the plugin settings, but it seems that only affects the maximum charges skills will default to instead of changing how many 'free' charges the skills are given by default. I really wish that was written more clearly, the plugin isn't very clear when it's talking about max charges and when it's talking about individual charges given to a character.

I did consider just making an event that, upon adding a party member to your party, just does a minus 999 charges on all possible skills in the game. Time-consuming but workable. But when I went to do that, I realized this plug in only has note tag commands. Which means that, as far as I know, I can't just activate the commands by event whenever I want to?

out of bees.jpg
There's a bug in the Skill Core plugin.

Open it in a text editor, go to line 765, and make it read:
Code:
visible=eval(code);
There's a bug in the Skill Core plugin.

Open it in a text editor, go to line 765, and make it read:
Code:
visible=eval(code);
Okay, that did... something. Not quite what I was hoping for though. It seems now that ALL skills are invisible, but if I go to the magic window I can still use one of the invisible skills. Other things also seem to be semi-broken.

Can you confirm I got the right line? I used the ctrl+g function in notepad to try to find the right spot. This is the original:
Code:
    var code = skill.costShowEval;
    try {
      eval(code);

And this is what I changed it to

Code:
    var code = skill.costShowEval;
    try {
      visible=eval(code);
Is that correct?
(I really appreciate the help btw)
It's the notetag. The skill uses work a little differently than I thought - replace the value line with:
Code:
value=user.skillLimitedUseCurrent(10)>0;
It's the notetag. The skill uses work a little differently than I thought - replace the value line with:
Code:
value=user.skillLimitedUseCurrent(10)>0;
I hate to keep replying saying "it doesn't work" but... it doesn't work : (

The edited version of skill core seems completely broken. When I turn off regular and turn on edited, the magic menu is just totally broken. All skills turn invisible, regardless of how many charges they have or if they're a limited use skill at all. Even regular skills with no note tags are invisible. The very first skill in the database that the character knows is invisible as well, but can still be selected and used blindly. Trying to charge other skills does not cause them to show up.

I thought maybe I had an issue with another plugin, but even after disabling everything other than limited use and YEP main engine and skill core it still did not work.

Using the new note tag does not work in either the regular or the edited versions of the plugin. Regular probably doesn't work because it lacks the edit, edited doesn't work probably because it doesn't work at all.
I can't figure out what I'm doing wrong.
I'm not sure what to tell you...I can't duplicate any of these issues.

Changing that line could not normally cause skills that have no notetag to become invisible. And if a skill isn't shown, it can't normally be selected.

Please make sure that you have the most recent version of the skill core plugin (and, really, everything else). Is your MV and your project file at version 1.6.2?

Try testing it in a new project with no plugins other than the skill core and limited skills (engine core is not required by either) - this, as I've said, works perfectly for me.
If you can verify that, then you can add back in one plugin at a time, see if it breaks at some point.

And,of course, you're replacing the number (10) in my fixed notetag with the appropriate skill ID (not that that could cause any of the issues you're reporting).
I'm not sure what to tell you...I can't duplicate any of these issues.

Changing that line could not normally cause skills that have no notetag to become invisible. And if a skill isn't shown, it can't normally be selected.

Please make sure that you have the most recent version of the skill core plugin (and, really, everything else). Is your MV and your project file at version 1.6.2?

Try testing it in a new project with no plugins other than the skill core and limited skills (engine core is not required by either) - this, as I've said, works perfectly for me.
If you can verify that, then you can add back in one plugin at a time, see if it breaks at some point.

And,of course, you're replacing the number (10) in my fixed notetag with the appropriate skill ID (not that that could cause any of the issues you're reporting).
OH! After messing around with a fresh file, it hit me what I was doing wrong. I completely forgot that changing the file name on plugins isn't just a cosmetic way to differentiate them, it totally messes up the entire function of the plugin... I'm used to stuff like game mods where the file name doesn't matter at all. I was dumb and was like "Oh I'll rename the patched plugin so I know which one it is and I'll still have an unpatched backup just in case." Which of course messed up the entire plugin and caused it to break totally.

I corrected the name, and it worked immediately! How embarrassing.

Thank you so much, I really, really appreciate your help! I'm sorry the problem with your fix turned out to be me! Wish I could throw you a dollar or two or something for your time. Since I doubt this forum allows posting of donation links, please accept this very quick and messy little doodle.
inspired.png

Original thread: https://forums.rpgmakerweb.com/threads/lunatic-mode-help-needed-with-yanflys-limited-skill-use-plugin-please.142310/