Switch on when level up

IneptAttoney_08

Dimas Ridwan AP
Veteran
Joined
Mar 1, 2019
Messages
146
Reaction score
29
First Language
Indonesia
Primarily Uses
RMVXA
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?
 

mathmaster74

just...John
Veteran
Joined
Jun 12, 2016
Messages
285
Reaction score
193
First Language
English
Primarily Uses
RMMV
@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. :smile:

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.:wink:
 

IneptAttoney_08

Dimas Ridwan AP
Veteran
Joined
Mar 1, 2019
Messages
146
Reaction score
29
First Language
Indonesia
Primarily Uses
RMVXA
@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. :smile:

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.:wink:
Ah! I see! thanks for the idea! its very useful! :kaojoy:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,447
Members
137,820
Latest member
georg09byron
Top