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,876
Reaction score
1,872
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

Awright ya marshmallows! :kaopride: Here's a peek of what Alice's 8-bit Gothic gonna be like! EXPECT IT! (...in 2025?) :kaoswt:

alice_gothictiles.png
SF_People3_4 added!
index.php

Finds notes for an old side project... Oh, that's right, the two tracks that sounded really cool and gave inspiration for the big bad in that game... Spends day working on cutscene from old notes, looks okay, now lets slot in the first track... um... I did have those tracks??? It was a year or so ago but I did buy them didn't I?
CA9mtHJ.gif

Everything is really confusing for me

Forum statistics

Threads
118,592
Messages
1,117,169
Members
155,660
Latest member
greattiger
Top