So in my game there are two party members right now. You play as both of them. However in one certain battle one of the characters used his "special skill" can can only be used once. I want this skill to be Invisable until a certain point in this battle. How do I do it? (Also if possible how do I remove it after the battle?)
Adding Skills Mid-Battle
RPG Maker MV SupportYou can use events to learn/unlearn skills, but I'm not sure if a skill learned during a battle through events will immediately be useable.
Well, you can set a troop event at a specific turn when the actor should learn the skill and use this script call:
And then, for the end of the battle, create another event set to the end of the turn, but by default (I think) Rpg Maker doesn't check the end of the battle, so you will need this script from HIME (link)
Then create an event without battle conditions (only the end turn) and set it as described:
CONDITIONAL BRANCH --> Script: $gameTroop.aliveMembers().length <= 0
In the Branch use a script call:
If you want to avoid to use this plugin or forget the skill during the battle, if this battle is the part of a cutscene, you can set the forget command in your cutscene event itself.
Code:
$gameActors.actor(id).learnSkill(skillId)
And then, for the end of the battle, create another event set to the end of the turn, but by default (I think) Rpg Maker doesn't check the end of the battle, so you will need this script from HIME (link)
Then create an event without battle conditions (only the end turn) and set it as described:
CONDITIONAL BRANCH --> Script: $gameTroop.aliveMembers().length <= 0
In the Branch use a script call:
Code:
$gameActors.actor(id).forgetSkill(skillId)
If you want to avoid to use this plugin or forget the skill during the battle, if this battle is the part of a cutscene, you can set the forget command in your cutscene event itself.
Original thread: https://forums.rpgmakerweb.com/threads/adding-skills-mid-battle.82047/