Conditon branch: Actor is using a skill

Is there a script that would allow me to detect if an actor is using a skill?


So basically "If John uses Supernova, play this sound"
I'm about to leave to WOF soon so I need an answer fast. Sorry if I sound demanding... But I am desparate...
Well, you could set the sound to Supernova's animation...
You can use it inside the Conditional Branch,


($gameActors.actor(actorId).lastBattleSkill() !== null) && ($gameActors.actor(actorId).lastBattleSkill().id === skillId);


But you can only check the actor's last used battle skill.
So if I put that in a common event and use it as I would normally do for a skill, will it do it after the attack or will it do it after another skill is used?
I set the common event of checking last used battle skill in a skill effects. So it will run after the used skill if it meets the condtition.
I set the common event of checking last used battle skill in a skill effects. So it will run after the used skill if it meets the condtition.



So use the common event as if I were normally would. Got it.
Strange The sounds aren't playing at all. 


I filled in the IDs with 1 and 1 (Basically main character, normal attack) and nothing is happening.


($gameActors.actor(1).lastBattleSkill() !== null) && ($gameActors.actor(1).lastBattleSkill().id === 1);


Let's try plugins...


I'm thinking that Yanfly's Action Sequence would do the trick. Onward to Plugin support!

Original thread: https://forums.rpgmakerweb.com/threads/conditon-branch-actor-is-using-a-skill.63476/