Basically what the title says. I am looking for some way to limit a specific skill's usage so that any character with the skill can ONLY use that skill on their first turn in combat. After that turn, regardless of if they used it or not, it should be sealed. Any assistance or ideas would be greatly appreciated.
Limiting a specific skill's usage to the first turn of combat.
RPG Maker MV SupportUse a troop event set to run at the end of turn one that applies an invisible state (no icon, no messages) to all battlers that seals the skill.
if neccessary then use a base troop plugin to have that troop event run in all battles.
if neccessary then use a base troop plugin to have that troop event run in all battles.
This would sort of solve the problem, but I would prefer if the skill wasn't sealed for a character until after they have had their first turn in combat as, if an enemy or a different allied unit goes first, it would also seal the skill which is an issue. This was a good idea I hadn't considered though, and if there are no better options it may be my only choice.
the end of turn is after all battlers had their action, not after the first action - unless you've changed the battlesystem mechanics.
if you have changed them you'll need to tell us how you changed it before we can give a better solution.
I actually was not aware that was how the system handled end of turn (mentally I always think of them as rounds, myself), but I am currently using Yanfly's CTB system which does seem to prevent this from feasibility (the state is automatically applied at the beginning of combat instead of after the first turn end). When disabling CTB and testing with default system it works, so CTB seems the most likely culprit. I assume this is because the charge system sees each 100 ticks as a turn, but I am not sure if there is a workaround available for me.
yes, all timebased battlesystems have that problem simply due to the problem that they have no defined battleturns - that is not only a problem with the troop event trigger, but with state duration counting and other things as well.
because of this there is usually a configuration in the plugin where you can modify how the turns are counted in some way, for example defining how many ticks count as a turn.
but while that allows some customisation to what your turns will be, it is far from perfect, and often leaves points like this open...
because of this there is usually a configuration in the plugin where you can modify how the turns are counted in some way, for example defining how many ticks count as a turn.
but while that allows some customisation to what your turns will be, it is far from perfect, and often leaves points like this open...
CTB hasn't given me much issue with the state durations (yet, knock on wood), so realizing it was the issue surprised me a bit. I did try playing with the tick-per-turn but it didn't seem to resolve the issue. I really like CTB for the ability for high enough speeds to allow for a unit to go twice through lapping, but I may have to dig around for other means to achieve a similar combat system that won't interfere with YEP plugins. Regardless, thank you for the help.
-EDIT: I appear to have found a workaround for the issue. Tweaking the CTB settings for ticks and changing full turn to 4 ticks, and using AutoPassiveStates to apply the state that seals when a switch is activated. It even applies to each actor on the end of their turn, instead of to everyone at once at turn end. A strange quirk is that it also applies this state to any unit being attacked, but I have no issue reworking the skill to be intentionally disabled if you take damage before getting to use it in combat. I will need to continue testing to make sure this isn't an isolated success but for now my needs are met.
Original thread: https://forums.rpgmakerweb.com/threads/limiting-a-specific-skills-usage-to-the-first-turn-of-combat.180934/