RMMV Editing the controls of Scene_Status with rpg_scenes.js

Brancliff

Veteran
Veteran
Joined
Jul 21, 2015
Messages
47
Reaction score
9
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
7,225
Reaction score
2,855
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
47
Reaction score
9
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

Today I released one of my favourite tutorials :3 Learn how to make consistent yet interesting towns!
As always, I am very open for feedback!
1679673622425.png
This girl is jealous because I haven't drawn her again in months.
Fr_RrgwaUAAafNa

New sprites in my project!
Updating my stream thumbnail collection here Streaming more game dev in 30 minutes or so. :LZSexcite:

Programming languages are amazing.

Someone needed help with a problem in C#. I've got 0 experience in C#. I read 0 lines of their code. I only knew what they wanted to do. I wrote a completely generic code in Javascript containing the generic answer. But they understood what I was doing and translated that to their code. 20 seconds later, problem solved.

Forum statistics

Threads
129,815
Messages
1,205,441
Members
170,929
Latest member
Kallister
Top