01-02-2025, 02:05 AM
Level Up Common VX + ACE
by Kyonides
Introduction
For RMVX
This simple scriptlet will let you call a given Common Event by configuring the ACTORS_EVENT in such a way that it will find the target actor's current level and call the common event if any was found.
How does it find the right common event?
Well, it is very simple to explain. The scriptlet will look for the lowest level possible.
If you set a level like 5 and your actor has just reached level 2, it will trigger the level 5's common event.
Once that actor's level goes beyond that point, it will have to search for a higher level if available.
If no other level is available, nothing will happen.
If you wanna set a specific common event for the remaining levels, 100 or your game's maximum level will suffice.
I embedded some comments in the script to help you add more actors.
Right now it will only work with Aluxes aka Alex or Ralph.
For RMVX ACE
This simple scriptlet will let you call a given Common Event by leaving an extremely simple note tag in an Actor's Note Box.
Instructions for the Old Script
Code:
<level up ce 50>
Thus once the leveling up process ends, and the level up message shows up on screen, the game will call that common event in no time.
Old Script
Code:
# * Level Up Common ACE * #
# Scripter : Kyonides Arkanthes
# 2024-03-18
# Leave a tag in a given Actor's notebox.
# Example: <level up ce 100>
# And it will call that common event after the actor finishes leveling up.
module LvUpCm
COMMON_EVENT = /<level up ce (\d+)>/i
end
class RPG::Actor
def level_up_common_event
@note[LvUpCm::COMMON_EVENT]
$1.to_i
end
end
class Game_Actor
alias :kyon_lvl_up_cmmn_gm_act_lvl_up :level_up
def level_up
kyon_lvl_up_cmmn_gm_act_lvl_up
call_level_up_common_event
end
def call_level_up_common_event
event_id = actor.level_up_common_event
$game_temp.reserve_common_event(event_id) if event_id > 0
end
end
Instructions for the New Script
Code:
<level up 1-5 ce 100>
There 1 and 5 define the range of levels while 100 stands for the Common Event #100.
Thus once the leveling up process ends, and the level up message shows up on screen, the game will call that common event in no time.
Terms & Conditions
Free for use in ANY

Due credit is mandatory.

Mention this forums in your game credits.
That's it!
