Switch on when level up

I'm looking for a script that can activate switches when actors level up. does anyone know of such a script or how to make such features without a script?
Without script or plugin you can't, i suggest this plugin
http://himeworks.com/2015/10/level-up-events/
@IneptAttoney_08 @Soulrender Actually, unless I'm missing something here, you can do this in engine, no plugin or script needed. At start of game (first map), initialize variables called OldLevel and CurrentLevel to Game Data: Actor: [ID#]: Level through a Control Variable Event Command. Now...when does the character level up? When they get EXP. When does that happen? After battles or when using a Change EXP Event Command. So...if you make a Control Variable Event Command run after a battle for CurrentLevel (set the same way as before), then you can compare OldLevel to CurrentLevel and if it went up, then throw the LevelUp switch and update OldLevel as well. Otherwise, you just have to follow up any Change EXP Event Command with the Control Variable CurrentLevel Event Command to be able to run the comparison and, if need be, throw the switch and update OldLevel. Done. 🙂

EDIT: Since Level Up may happen in a script, you may also want to follow up any script where this could happen with the same Event Commands prescribed.😉
@IneptAttoney_08 @Soulrender Actually, unless I'm missing something here, you can do this in engine, no plugin or script needed. At start of game (first map), initialize variables called OldLevel and CurrentLevel to Game Data: Actor: [ID#]: Level through a Control Variable Event Command. Now...when does the character level up? When they get EXP. When does that happen? After battles or when using a Change EXP Event Command. So...if you make a Control Variable Event Command run after a battle for CurrentLevel (set the same way as before), then you can compare OldLevel to CurrentLevel and if it went up, then throw the LevelUp switch and update OldLevel as well. Otherwise, you just have to follow up any Change EXP Event Command with the Control Variable CurrentLevel Event Command to be able to run the comparison and, if need be, throw the switch and update OldLevel. Done. 🙂

EDIT: Since Level Up may happen in a script, you may also want to follow up any script where this could happen with the same Event Commands prescribed.😉
Ah! I see! thanks for the idea! its very useful! 😂
@IneptAttoney_08 You're welcome! 😀

Original thread: https://forums.rpgmakerweb.com/threads/switch-on-when-level-up.109030/