Can you help me with the EXP increase script?

Hi !

I know I can use $gameParty.menuActor().gainExp(1000) this script to increase experience using items.

So I made an item.
An item that increases experience for the selected actor using the item.

But the game style I'm using should be used in between very large loop events.
However, when I use this item, a message window appears indicating that the level has been increased only after the loop event is completely finished or when entering battle.

In addition to the above methods, is there a way to increase the experience value by using an item, or is there a way to prevent the message window from appearing even if the experience value is increased with a script?
Probably you placed your exp gain event outside loop, show me the event / code that gives exp.
Probably you placed your exp gain event outside loop, show me the event / code that gives exp.


$gameParty.menuActor().gainExp(1000)

Nothing else.

When using an item, a common event is called up.
in common events
$gameParty.menuActor().gainExp(1000)
Just this script.
Then try this code

$gameParty.members()[$gameParty._targetActorId].gainExp(1000)

If this happens again then probably you have incorrect values in exp curves in classes.
Another question, are you using any kind of plugin that alters exp table?
Then try this code

$gameParty.members()[$gameParty._targetActorId].gainExp(1000)

If this happens again then probably you have incorrect values in exp curves in classes.
Another question, are you using any kind of plugin that alters exp table?

The code you wrote doesn't even increase the experience point...

And i am not using plugins related to EXP of actors.
show me screen of your item
show me screen of your item

gggg.png


I don't know if the translation is correct.
That's strange, because I recreated this item in my clean project and everything works fine.
Perhaps we misunderstood each other, or I miss something about RPG Maker MV, but both methods works fine.
That's strange, because I recreated this item in my clean project and everything works fine.
Perhaps we misunderstood each other, or I miss something about RPG Maker MV, but both methods works fine.

Hmm...
Is it correct to use the item by opening the menu in the middle of the loop event?

As I said at the beginning, the default $gameParty.menuActor().gainExp(1000) script works fine if you use it, but it's in the middle of a loop, so the LEVEL UP message window ends in the middle of the loop or enters the battle. It is a problem because it comes after it is over.
Then show me the loop (I shouldn't say this, but to clarify things I've just opened 5th beer) and after this "blessing state" I'm more ... "useful" So, show me that loop, just a quick note... I didn't view all methods in engine so also my guess be, that level up message might break (stop) a loop you are using.
Then show me the loop (I shouldn't say this, but to clarify things I've just opened 5th beer) and after this "blessing state" I'm more ... "useful" So, show me that loop, just a quick note... I didn't view all methods in engine so also my guess be, that level up message might break (stop) a loop you are using.

Please wait a second.
For you to understand, we will make it the same as the new event in English.
Then show me the loop (I shouldn't say this, but to clarify things I've just opened 5th beer) and after this "blessing state" I'm more ... "useful" So, show me that loop, just a quick note... I didn't view all methods in engine so also my guess be, that level up message might break (stop) a loop you are using.

gggg.png



Use it like this.

Here, when I use the open menu to use the experience value increase item, a message window appears after the loop ends.
Then sorry, I cannot more help, because in my game I'm trying to avoid (actually I don't have any) evented loops, the only thing I can say is that (I read it somewhere in this forum) using jump to label is not a good idea, especialy in loops, besides, why are you making your eventing difficult? Wasn't be simpler if that exp giving item would be a regular, consumable item? Anyway, what kind of style of game you are making?
Then sorry, I cannot more help, because in my game I'm trying to avoid (actually I don't have any) evented loops, the only thing I can say is that (I read it somewhere in this forum) using jump to label is not a good idea, especialy in loops, besides, why are you making your eventing difficult? Wasn't be simpler if that exp giving item would be a regular, consumable item? Anyway, what kind of style of game you are making?

This game is a game in which the player decides the route through choice and moves forward rather than directing the player.

It's not just an RPG, hmm... it's hard to explain, it's similar to the genre of a game exploring dungeons.

In Eroge, it is the same as Rance 10.
Hmm.... Give me a moment, because I have an idea, I need to just speed map to visualize it.
Hmm.... Give me a moment, because I have an idea, I need to just speed map to visualize it.

Oh, maybe I'll tell you in advance
I can't change this loop related event.

My game already has over 8 hours of playtime and is about 1.5 Giga in size.

Too many to fix.

That is why we are trying to get rid of the level-up message when acquiring experience.
I think I know that style of game, but I might be wrong, but I speed evented movement mechanics like this: https://prnt.sc/u1s60d

Now a brief explanations:

1. if SceneManager._scene instanceof Scene_Map - it's a small protection preventing to execute event elsewhere, thus this event will run ONLY on game map(s)

2. Control Variable - defines how many times loop occur (edit to your likings)

3. When you choose to open menu you forcibly break loop, preventing event to execute, the loop once again occurs when menu will be closed.

4. Now, when player decides what to do we need to check how many times loop looped and if it's higher or equal defined value, stop it.

5. And at the very end you can again change loop limit (optional), because when event will trigger again, loop_limit will take value from top event. (Look at point 2)
I think I know that style of game, but I might be wrong, but I speed evented movement mechanics like this: https://prnt.sc/u1s60d

Now a brief explanations:

1. if SceneManager._scene instanceof Scene_Map - it's a small protection preventing to execute event elsewhere, thus this event will run ONLY on game map(s)

2. Control Variable - defines how many times loop occur (edit to your likings)

3. When you choose to open menu you forcibly break loop, preventing event to execute, the loop once again occurs when menu will be closed.

4. Now, when player decides what to do we need to check how many times loop looped and if it's higher or equal defined value, stop it.

5. And at the very end you can again change loop limit (optional), because when event will trigger again, loop_limit will take value from top event. (Look at point 2)

If I use it as the image you showed, it will work just for that event.
However, there are multiple events on one map that are triggered automatically in that way.
That's why the moment one loop ends and the event ends, another event will occur. (T^T)

Besides, as I said right above, every event needs to be modified to take advantage of it (over hundreds of them).

What I can use right now seems to find a new plugin that makes items that earn EXP
I gave you a concept - I made this on map, but you can put it as parallel common event and it also work.

Original thread: https://forums.rpgmakerweb.com/threads/can-you-help-me-with-the-exp-increase-script.125412/