Ganelan

Regular
Regular
Joined
May 16, 2020
Messages
35
Reaction score
9
First Language
spanish
Primarily Uses
RMMV
Hello! I expose what I want to know if it can be done. I'm using the Galv plugin from Manual Level Up. Well, this leaves you at 1 EXP when you can level up. But there is no notification when you can level up.

My question is, can you do that, when the actor has 1 EXP left to level up, do an event to notify the player?

I would have to do it for each actor, but doing it for one would be copy and paste for each actor.

With variables is it possible?

Thank you!
 

ShadowDragon

Realist
Regular
Joined
Oct 8, 2018
Messages
7,790
Reaction score
3,179
First Language
Dutch
Primarily Uses
RMMV
everything is possible, but it probably require a plugin or a modifaction
to the plugin or addon.

it would be wise to link the plugin you target, so we can take a look at
the correct one without finding it.
 

Htlaets

Regular
Regular
Joined
Feb 1, 2017
Messages
404
Reaction score
217
First Language
English
Primarily Uses
You can do it without plug-ins or a script, but it'd be tedious. Have a common event that runs after combat (many ways to do this, but there are plug-ins that would make it simpler) that checks actor exp (variable = game data = exp of actor). Then check the actors level.

Then for every level you can check how much exp is needed before level up (There's surely a script call that can check that and simplify the process), then find the difference between the exp needed to level up and the current actor exp and then run whatever eventing you want to trigger if it's 1.
 

dopan

Regular
Regular
Joined
Mar 27, 2020
Messages
1,365
Reaction score
731
First Language
German
Primarily Uses
RMMV
JavaScript:
Math.abs($gameActors.actor(1).nextRequiredExp()) + Math.abs($gameActors.actor(1).expForLevel($gameActors.actor(1).level) - $gameActors.actor(1).currentExp()) - Math.abs($gameActors.actor(1).expForLevel($gameActors.actor(1).level) - $gameActors.actor(1).currentExp())

Actor EXP to Next LV
(=> Actor Max EXP of current LV - Actor current LV EXP)


you can use this code in an if condition, and when result is "1" thats what you are looking for as trigger..
This script code above is for usage on actor with id 1.. for other actors you need to edit the parts where the actor id is located


this code and some more can be found in my signature spoiler where i store the scripts for my srd hudmaker..
the script above is used for the hud that shows the needed exp for the next level up..
 
Last edited:

Ganelan

Regular
Regular
Joined
May 16, 2020
Messages
35
Reaction score
9
First Language
spanish
Primarily Uses
RMMV
JavaScript:
Math.abs($gameActors.actor(1).nextRequiredExp()) + Math.abs($gameActors.actor(1).expForLevel($gameActors.actor(1).level) - $gameActors.actor(1).currentExp()) - Math.abs($gameActors.actor(1).expForLevel($gameActors.actor(1).level) - $gameActors.actor(1).currentExp())

Actor EXP to Next LV
(=> Actor Max EXP of current LV - Actor current LV EXP)


you can use this code in an if condition, and when result is "1" thats what you are looking for as trigger..
This script code above is for usage on actor with id 1.. for other actors you need to edit the parts where the actor id is located


this code and some more can be found in my signature spoiler where i store the scripts for my srd hudmaker..
the script above is used for the hud that shows the needed exp for the next level up..

It works! Thank you, is just all i wanted!
 

Latest Threads

Latest Posts

Latest Profile Posts

Ringing in Halloween Month by watching a new-to-me movie! Yay! 'Tis the season!
Skill Tutor Scene is all but done!


1696133612827.png
HawkZombie wrote on Slaughty's profile.
SLAUGHTY!
I remember hearing some guy playing Warhammer Fantasy Battle and getting his butt kicked by a girl who painted all her dwarves pink. She kept calling them her 'Little Gimli's.
Every JRPG needs a mandatory cliff scene.

Forum statistics

Threads
134,955
Messages
1,252,325
Members
177,809
Latest member
new_omg
Top