RMMV Editing the controls of Scene_Status with rpg_scenes.js

Brancliff

Veteran
Veteran
Joined
Jul 21, 2015
Messages
43
Reaction score
4
First Language
English
Primarily Uses
Did you know you can use pageup/pagedown to change which actor profile you're looking at in the menu? Yeah, neither did I. I'm looking for a way to change this. Ideally, press left to go back an actor and press right to go forward an actor. Seems pretty intuitive right?

I feel like I'm really close to the answer, but not quite hitting it. In rpg_scenes.js, starting at line 1547, you'll see this:

JavaScript:
Scene_Status.prototype.create = function() {
    Scene_MenuBase.prototype.create.call(this);
    this._statusWindow = new Window_Status();
    this._statusWindow.setHandler('cancel',   this.popScene.bind(this));
    this._statusWindow.setHandler('pagedown', this.nextActor.bind(this));
    this._statusWindow.setHandler('pageup',   this.previousActor.bind(this));
    this._statusWindow.reserveFaceImages();
    this.addWindow(this._statusWindow);
};

I tried changing "pagedown" to "okay", and that made me able to press Z to go to the next actor. So I know I can change the controls here! But I tried changing "pagedown" to "right" and "pageup" to "left", and... that just made neither pageup/down or left/right do anything.

Any ideas on what to try next?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,885
Reaction score
1,875
First Language
Dutch
Primarily Uses
RMMV
some wrote how keys behave on page down or up/down
for battle scene which was left or right only.

similair could be done here as well.
but you could try ("pagedown" || "right", this.nextActor

but I dont know if you use something before hand like let right = "keycode"
without quoutes, and place the number of right there, than "pagedown" || right, this.Actor
and the likes.

it's worth a try at least so you can use both.

I knew that pageDown and is and left, so is Q and W I believe.
 

Brancliff

Veteran
Veteran
Joined
Jul 21, 2015
Messages
43
Reaction score
4
First Language
English
Primarily Uses
It doesn't seem that's working for me. Using it seems to just disable either input from working. I tried your suggestion, and here's what it looks like:

JavaScript:
    this._statusWindow.setHandler ("right" || "pagedown", this.nextActor.bind(this));

But I also tried it using apostrophes instead of quotation marks and switching the order around.

The rest of my base .js files are just the stock MV ones, I haven't edited them at all. I also tried disabling my plugins just in case any of that was a problem.

About the keycodes... I'm not fully sure I understand, but I know that the aforementioned stock MV .js files have something like this in rpg_core.js:

JavaScript:
Input.keyMapper = {
    9: 'tab',       // tab
    13: 'ok',       // enter
    16: 'shift',    // shift
    17: 'control',  // control
    18: 'control',  // alt
    27: 'escape',   // escape
    32: 'ok',       // space
    33: 'pageup',   // pageup
    34: 'pagedown', // pagedown

It goes on and on a bit after that. I tried changing the pageup/pagedown buttons here to left and right as well, and I couldn't get any results on that either. I'm really not sure why either, I mean, how many ways are there to say "left", right? I even tried copy/pasting the word left just to make sure I didn't somehow make a typo.
 

Latest Threads

Latest Posts

Latest Profile Posts

Now it's official: My first RPG Maker game released on Steam will be released this year! I am so glad for this achievement and I am so happy to see a lot of gamedevs like me here working on what we love!
Mais informações no Post.png
Check out my MZ thread for 2 new waterplant edits and my MZVind water autotiles now without ground/cliffs, so you can put them on your own ground-tiles. Have fun!
It's for side-extra content. :kaophew:

“Battle not with monsters, lest ye become a monster, and if you gaze into the abyss, the abyss gazes also into you.”
gxQUtTE.gif
Don't you hate it when you play an mmo to pass some time then an update drops that makes your playing experience less enjoyable and quit because of it?
sigh...

Forum statistics

Threads
118,663
Messages
1,117,673
Members
155,770
Latest member
alvezeno
Top