Trigger Switch when character uses Skill or Attacks?

Is there some way to trigger a switch in RPG Maker VX Ace when a character attacks or uses a certain skill during battle? For example if an actor uses the Fire-spell to attack an enemy, its hair catches fire, and the enemy shouts "ouch".

Is it possible to do something like that with vanilla scripts, or is there some more difficult script for that?

Thanks in advance.
there are several ways to do this - using common events, using damage formula, using state settings and more.

Which one to use best depends on the details of your game...
I've moved this thread to Support - RPG Maker VX Ace.  Resources means the art and music. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/trigger-switch-when-character-uses-skill-or-attacks.41149/