Hiding skills and commands unless a certain TP threshold is met.

Hello, I'm looking to replicate the limit break system from the FF series. FF7 specifically. So I have the skills and balancing all setup and preserve TP. Is there a way without a plugin to hide the skill and command its listed under unless the certain condition is met? Such as my skill type is "Limit" and the skill is "Sharpshooters Fury" TP required 100 but isnt listed in the command list or skill list unless TP is 100 then the "Limit" command will appear?

Thanks in advance I dunno if I'm able to explain it better
No, not well.

The only thing you could do is put a troop event into every troop that runs at the end of every turn.

It would check each actor for whatever your condition is, and if it's true, give them a state with Add Skill Type for Limit; if false, remove that state.

But, obviously, that would only take effect at the end of each turn so if your actor gets damage and fills their limit gauge before they enter their action, it wouldn't show up until the next turn.

And you'd have to copy and paste that page into every troop in your game.

I'm not sure why you specify "without a plugin," because it's pretty simple to do with one.
Without a plugin because i dont want plugin bloat. I think this is taken care of in the VZ plugin battle core through notetags.

If there is a plugin you know thats lightweight let me know, im looking around for information
Without a plugin because i dont want plugin bloat.
Whatever you like, but that's not really a thing. Plugins are text files that take up a tiny amount of disk space, it really doesn't affect the size of your project.

Unless you just mean having unwanted features that you have to disable or work around (I'm guessing since you also mention VisuStella). 🙂

If there is a plugin you know thats lightweight let me know, im looking around for information
You could do it with my Eval Tags plugin, linked in my signature.

You haven't explained how your limit condition works, so I can't give you exact code, but you can put on the actor an <Action Respond Eval> notetag that will check every time the actor gets hit; if the conditions are fulfilled, apply your state that has the Limit skill type. Otherwise, remove it.
Youre exactly right by understanding what I meant with plugin bloat. Its difficult with VisuStella but they work well.

So my condition is when TP reaches 100 the command can appear as another category called "Limit"

I have it setup to where you can only use the skill with 100 TP so eval tp 100%?
Whatever you like, but that's not really a thing. Plugins are text files that take up a tiny amount of disk space, it really doesn't affect the size of your project.

Unless you just mean having unwanted features that you have to disable or work around (I'm guessing since you also mention VisuStella). 🙂


You could do it with my Eval Tags plugin, linked in my signature.

You haven't explained how your limit condition works, so I can't give you exact code, but you can put on the actor an <Action Respond Eval> notetag that will check every time the actor gets hit; if the conditions are fulfilled, apply your state that has the Limit skill type. Otherwise, remove it.
the condition is hitting 100 TP. I looked at the note tags and I dont see anything in it that allows me to hide a command unless tp=100
I looked at the note tags and I dont see anything in it that allows me to hide a command unless tp=100
I didn't say there was.

I'm confused by your plugin comments - are you already using VisuStella plugins in your project? If yes, you can do this with the Skills and States Core. Or the Battle Core.

If you're not using VisuStella, that's when you would use my Eval Tags. Per my previous post:
if the conditions are fulfilled, apply your state that has the Limit skill type. Otherwise, remove it.
So:
Code:
<Action Respond Eval>
if (target.tp == 100)
    target.addState(42);
else
    target.removeState(42);
</Action Respond Eval>
where 42 is the state that has Add Skill Type: Limit in its Traits.
I didn't say there was.

I'm confused by your plugin comments - are you already using VisuStella plugins in your project? If yes, you can do this with the Skills and States Core. Or the Battle Core.

If you're not using VisuStella, that's when you would use my Eval Tags. Per my previous post:

So:
Code:
<Action Respond Eval>
if (target.tp == 100)
    target.addState(42);
else
    target.removeState(42);
</Action Respond Eval>
where 42 is the state that has Add Skill Type: Limit in its Traits.
yes i am using visustella. I found the command for removing the skill unless tp is 100
but i need to figure out how to remove the command as well. It still shows Limit when i dont cant see the skill yet
I'm doing something similar in my game. Here's how you hide the Limit Break command until the Actor reach 100 TP:

First, I suggest you make TWO Skill Types called Limit Break (Mine is called Blitz). Then in the SkillsStatesCore plugin, under Skill Settings parameters, make sure you hide one of the Limit Skill Type command during Battle. (For me is 10.) The reason for this is so that the player can see what Limit Breaks they have in the Skills Menu:

Screenshot 2024-07-08 142317.png
Screenshot 2024-07-08 142812.png


Next, for your Limit Break skills, make sure that the skill type is one of the Limit Break Skill Type and use the notetags:
Code:
<Skill Types: x,y>
<TP Cost: 100%>
Replace x with the ID of the 1st Limit Break skill type and y with the 2nd Limit Break skill type.
Furthermore, the reason why I'm suggesting you use the <TP Cost: 100%> for these skills, is just in case you want to change how much TP an Actor has using the EnhancedTPSystem plugin. (Like changing it from 100 to 255, for example.) The Limit Break skill will always use 100% of the Actor's TP.

Here's an example:
Screenshot 2024-07-08 144023.png


Finally, you will need to create a passive state.
In the Traits section of the state, use Add Skill Type to add the Limit Break Command that IS NOT hidden with the SkillsStatesCore plugin.
Then in the Notes of the State, add this:
Code:
<Bypass Combat Log>
<Hide State Popup>
<Exclude From Tooltips>


<JS Passive Condition>
condition = (user.tp === user.maxTp());
</JS Passive Condition>

The state has no icon and the priority is 1. This is what it looks like:
Screenshot 2024-07-08 145026.png



Finally, in the SkillsStatesCore plugin, under the Passive States Parameters, in the Actors-Only Passives, enter the ID of the Limit Break state. (For me, it's 240)
Screenshot 2024-07-08 145332.png


And that's it!
I'm doing something similar in my game. Here's how you hide the Limit Break command until the Actor reach 100 TP:

First, I suggest you make TWO Skill Types called Limit Break (Mine is called Blitz). Then in the SkillsStatesCore plugin, under Skill Settings parameters, make sure you hide one of the Limit Skill Type command during Battle. (For me is 10.) The reason for this is so that the player can see what Limit Breaks they have in the Skills Menu:

View attachment 310774View attachment 310775

Next, for your Limit Break skills, make sure that the skill type is one of the Limit Break Skill Type and use the notetags:
Code:
<Skill Types: x,y>
<TP Cost: 100%>
Replace x with the ID of the 1st Limit Break skill type and y with the 2nd Limit Break skill type.
Furthermore, the reason why I'm suggesting you use the <TP Cost: 100%> for these skills, is just in case you want to change how much TP an Actor has using the EnhancedTPSystem plugin. (Like changing it from 100 to 255, for example.) The Limit Break skill will always use 100% of the Actor's TP.

Here's an example:
View attachment 310776

Finally, you will need to create a passive state.
In the Traits section of the state, use Add Skill Type to add the Limit Break Command that IS NOT hidden with the SkillsStatesCore plugin.
Then in the Notes of the State, add this:
Code:
<Bypass Combat Log>
<Hide State Popup>
<Exclude From Tooltips>


<JS Passive Condition>
condition = (user.tp === user.maxTp());
</JS Passive Condition>

The state has no icon and the priority is 1. This is what it looks like:
View attachment 310783


Finally, in the SkillsStatesCore plugin, under the Passive States Parameters, in the Actors-Only Passives, enter the ID of the Limit Break state. (For me, it's 240)
View attachment 310784

And that's it!
I really appreciate this!
I'm doing something similar in my game. Here's how you hide the Limit Break command until the Actor reach 100 TP:

First, I suggest you make TWO Skill Types called Limit Break (Mine is called Blitz). Then in the SkillsStatesCore plugin, under Skill Settings parameters, make sure you hide one of the Limit Skill Type command during Battle. (For me is 10.) The reason for this is so that the player can see what Limit Breaks they have in the Skills Menu:

View attachment 310774View attachment 310775

Next, for your Limit Break skills, make sure that the skill type is one of the Limit Break Skill Type and use the notetags:
Code:
<Skill Types: x,y>
<TP Cost: 100%>
Replace x with the ID of the 1st Limit Break skill type and y with the 2nd Limit Break skill type.
Furthermore, the reason why I'm suggesting you use the <TP Cost: 100%> for these skills, is just in case you want to change how much TP an Actor has using the EnhancedTPSystem plugin. (Like changing it from 100 to 255, for example.) The Limit Break skill will always use 100% of the Actor's TP.

Here's an example:
View attachment 310776

Finally, you will need to create a passive state.
In the Traits section of the state, use Add Skill Type to add the Limit Break Command that IS NOT hidden with the SkillsStatesCore plugin.
Then in the Notes of the State, add this:
Code:
<Bypass Combat Log>
<Hide State Popup>
<Exclude From Tooltips>


<JS Passive Condition>
condition = (user.tp === user.maxTp());
</JS Passive Condition>

The state has no icon and the priority is 1. This is what it looks like:
View attachment 310783


Finally, in the SkillsStatesCore plugin, under the Passive States Parameters, in the Actors-Only Passives, enter the ID of the Limit Break state. (For me, it's 240)
View attachment 310784

And that's it!

Everything worked well except getting the skill itself to show up in the skills menu screen, other than that it works great.

Edit: I figured out the issue. Appreciate the help my man!!
No problem.
For future reference, you'll get better help faster if you give full information in your initial request.

If you'd said in the first place that you were already using VisuStella plugins instead of just saying "without a plugin," you would've gotten that answer in the first reply 😛

Glad you got it working, good luck in your project.
For future reference, you'll get better help faster if you give full information in your initial request.

If you'd said in the first place that you were already using VisuStella plugins instead of just saying "without a plugin," you would've gotten that answer in the first reply 😛

Glad you got it working, good luck in your project.
I did.
"I think this is taken care of in the VZ plugin battle core through notetags."


If that wasnt enough to imply i was using battle core, my bad.
If that wasnt enough to imply i was using battle core, my bad.
It wasn't, because the full context of that quote was:
Without a plugin because i dont want plugin bloat. I think this is taken care of in the VZ plugin battle core through notetags.

That implies you know it could be done with Battle Core notetags, but you are avoiding using that plugin because you feel it's bloated. 😉 I figured if you both had Battle Core in your project and knew it could be used for this, your entire first post would've been "how do I do this with Battle Core?" not "how do I do this without plugins?"

I was just giving the advice that giving as much information up front will help you get faster/better answers.

Have fun making games!
It wasn't, because the full context of that quote was:


That implies you know it could be done with Battle Core notetags, but you are avoiding using that plugin because you feel it's bloated. 😉 I figured if you both had Battle Core in your project and knew it could be used for this, your entire first post would've been "how do I do this with Battle Core?" not "how do I do this without plugins?"

I was just giving the advice that giving as much information up front will help you get faster/better answers.

Have fun making games!
thats a huge assumption. I actually didnt know it was available in the plugin because the wiki isnt clarified enough for a lay man to understand it.

By plugin bloat I'm referring to how many plugins the game has to check periodically therefore bloating the game causing it to lose frames on mobile or weak pc devices. Which is explained in many, many, many tutorial videos involving rpg maker specifically.

So yes, Id much have rather done this simple thing without a plugin at all. The other guy solved the issue and I appreciate that.

Original thread: https://forums.rpgmakerweb.com/threads/hiding-skills-and-commands-unless-a-certain-tp-threshold-is-met.170138/