Seal Skill in boss fights

it's kind of a simple quetsion. I made an instant kill skill but I want to disable/seal it in boss figths, of course. I didn't succeed in doing this myself XD


Does anyone know if this is possible and how? 
use this in troop page or before the fight


$dataSkills[x].occasion=3


after the fight return it to 1
use this in troop page or before the fight


$dataSkills[x].occasion=3


after the fight return it to 1

could you explain what the occasion=3 does? I would assume it's a variable that if set to 3 throws a conditional argument. But, I'm not good at coding... Just a guess.
occasion = 3 means make the occasion of skill 'never' 


occasion = 1 means make the occasion of skill 'Battle screen'
use this in troop page or before the fight


$dataSkills[x].occasion=3


after the fight return it to 1

Thanks a bunch! It works perfectly now 😀

Original thread: https://forums.rpgmakerweb.com/threads/seal-skill-in-boss-fights.59637/