Sequencing UI in RMMV

MazeMaker

Villager
Member
Joined
Dec 28, 2017
Messages
8
Reaction score
13
First Language
English
Primarily Uses
N/A
Hello everyone.

Currently I'm developing a plugin for stat distribution on level up. The flow of the UI is this:
  1. Show a standard Game_Message level up notification (Game_Actor.displayLevelUp)
  2. Operate the stat distribution scene
  3. After popping the scene, show another Game_Message about what skills were learned. (this is a system where skills are learned through raising stats)
My problem is, I'm unfamiliar with how to properly sequence commands without running them through the interpreter. My current solution is some rather volatile callback patchwork:
Code:
Window_Message.prototype.terminateMessage = function() {
    term.call(this);
    if (this._onTerminate) {
        this._onTerminate.call();
        this._onTerminate = null;
    }
}
Can anyone point me in the right direction?
 

JGreene

Veteran
Veteran
Joined
Oct 24, 2015
Messages
395
Reaction score
297
First Language
English
Primarily Uses
RMMV
If you're wanting to play the messages back to back, you can add a wait for input command with this line:

Code:
this.setWaitMode('message');
It will also read the text code \^ and close the window if you have added that.
 

MazeMaker

Villager
Member
Joined
Dec 28, 2017
Messages
8
Reaction score
13
First Language
English
Primarily Uses
N/A
Hi JGreene, thanks for your response.
Since this sequence starts whenever Game_Actor.levelUp is called, I don't necessarily have access to the interpreter or the battle scene.
Currently, my above callback method creates the proper functionality, but I'm wondering if there is a more stable solution.

To get a better idea of what's going on, here's a video of the plugin in action from twitter. Sorry for the language difference.
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

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.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top