Two Skill Questions (One-shot Skill and Stance Skills)

So, recently I started implementing some Limit Break style skills in my game, but a side effect is some of them are extremely good when they can be triggered more than once per battle.

I thought about having activating such skills flip a switch that would then flip off at the end of battle via a Common Event, but I'm not sure how to set a switch to flip at battle's end (or even if that's the best way of doing it).

The other one was I have one character, a Red Mage-like fighter/spellcaster who enters a 'Berserk' mode when they lose their spells but gain ATK buffs and access to a couple of stronger melee skills.

I made a Berserk state and know how to use a Conditional Branch in a Common Event to give them the buffs and the skills, but while I can set the State to end at the end of battle, I'm not sure again how to remove the skills.   I also ideally wanted it that their attack buff got stronger for each physical hit they took (or failing that, to get stronger as their HP goes down, this I at least know a formula for) but again I only know how to code that into a skill, not a State or an event.

Any help would be appreciated.   🙂
For the first one, couldn't you add a state that would seal certain skills that would leave at the end of a Battle ?

Like this : 

Spoiler
7J4jw.png
For the second one, currently figuring something out
Hey Radical

Here's a couple ideas for you.

1. Limit Break

Yanfly's Skill Restiction Script has a restriction to allow limited number of uses per battle. This could be used to solve the problem of limitless limit breaks. This assumes there are no conditions that need to be met to initially allow the use of a limit break in any given battle.

2. Berserk Mode

The only thing you would need a common event for is the increased Atk based on actor HP. The rest can be accomplished with basic databasing. Here are 3 solutions A, B & C:

   A. State Database

   - create a state that seals off skill type magic

   - the state will also add skill type special (or whatever your skill type with physical attacks the player has)

   - if you want a flat increase in atk when the state is added, then you can just increase physical attack on the state as well

   - all features of a state will be removed when the state is removed. this will not do the higher atk based on actor hp though.

   B. Common event upon State Removal

   - The reason things are not returning to normal is because the way you currently have them set up is through a common event. And there is no common event          that occurs when the state is removed

   - You could pick up Shaz's State Add/Remove Commands which allows for common event calls when a state is removed to undo the effects as well if you prefer.

   - You can then create a common event to be called on state removal to undo anything you'd like.

   C. Universal Troop Events

   - You can use Yanfly's Base Troop Events to create universal troop events.

   - in the troop event you would want it to run every turn,

   - check if the player has the berserk state.

   - if he does make several conditional branches checking actor hp at different percentages. and increase power based on which one returns true.

Hopefully one of these solutions works for you! Let me know if any need further explanation.

~ Dinhbat
Those are really helpful solutions, Dinhbat!

Thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/two-skill-questions-one-shot-skill-and-stance-skills.25373/