Create a conditional branch

I am using Chrono Engine Action Battle Demo
https://mega.nz/#!SV5yGYBB!Y9CUZVHWbUtvcuxx2XgkYxser_LAQU0HlagKbM-Tq1A

I want to create a conditional branch

If actor 2 uses skill id 5 , turn a specific switch on


I found this script, but don't know how to apply.
this.actor ( ID )
Definition of the actor based on the ID


any help is appreciated.
Use the damage formula field instead.
Something like if a.ID == 2 then turn on switch
sorry I am new to rpg maker mv, so what exactly do I put in the skill damage formula field ?
Use the damage formula field instead.
Something like if a.ID == 2 then turn on switch
sorry I am new to rpg maker mv, so what exactly do I put in the skill damage formula field ?

Original thread: https://forums.rpgmakerweb.com/threads/create-a-conditional-branch.99824/