Skill that activates a switch

Hi! - I'm trying to create a skill that activates a switch. I have all of the common events and the switch itself set up..

I just have no idea how to connect the skill to the switch ( Probably a script in the notes box )

-If anyone knows how to do this or knows a script that would be awesome!

-Thanks!
In the damage formula box, just add this to the beginning:

Code:
$game_switches[id] = true;
followed by the current damage formula.
In the damage formula box, just add this to the beginning:

$game_switches[id] = true; followed by the current damage formula.
Brilliant! - it worked!

-Thanks!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-activates-a-switch.20515/