RMMZ How i can change the WY position of the Actor Command Window

Gigadragon78

Veteran
Veteran
Joined
Feb 2, 2019
Messages
55
Reaction score
17
First Language
Spanish
Primarily Uses
RMMV
Sorry to bother yourselves, im having problem changing the Y position of the Actor Command Windows.
My code works for Party Command with no changes in the Actor WIndow,im doing something bad?
JavaScript:
Scene_Battle.prototype.partyCommandWindowRect = function() {
    const ww = 192;
    const wh = this.windowAreaHeight();
    const wx = 0;
    const wy = Graphics.boxHeight - wh - 203;
    return new Rectangle(wx, wy, ww, wh);
};

Scene_Battle.prototype.actorCommandWindowRect = function() {
    const ww = 192;
    const wh = this.windowAreaHeight();
    const wx = 0;
    const wy = Graphics.boxHeight - wh; - 203;
    return new Rectangle(wx, wy, ww, wh);
};
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
608
Reaction score
1,432
First Language
English
Primarily Uses
RMMZ
You have an extra semicolon after wh in this line:
Code:
const wy = Graphics.boxHeight - wh; - 203;
Remove the semicolon and it should work.
 

Gigadragon78

Veteran
Veteran
Joined
Feb 2, 2019
Messages
55
Reaction score
17
First Language
Spanish
Primarily Uses
RMMV
Thanks for your fast response sir,i removed the semicoln but nothing.
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
608
Reaction score
1,432
First Language
English
Primarily Uses
RMMZ
The problem seems to come from this line in the function
Scene_Battle.prototype.createActorCommandWindow:

Code:
commandWindow.y = Graphics.boxHeight - commandWindow.height;

I removed that line and got the actor command window to line up with the party window.
 

Gigadragon78

Veteran
Veteran
Joined
Feb 2, 2019
Messages
55
Reaction score
17
First Language
Spanish
Primarily Uses
RMMV
It worked now,thanks you very much friend.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

I realized that I don't talk about my game's plot too much. not that I'm hiding stuff, I just don't know what I should tell people in general that would be important. I know more so what plot points NOT to tell.
Have any of you read Sutter Kane?
jaynightwolf wrote on GalacticGod's profile.
hello GALACTICGOD I loved your characters especially the super heroes, I am new to this rpg program and I would like to know if you have more characters from DC comics, be they villains or heroes
My winter pack is now free on itch.io!
Writing music for Utara Forest, a location in All the King's Men. Nothing evokes a mysterious, dreamy sound like solo clarinet and modulation!

Forum statistics

Threads
111,472
Messages
1,061,351
Members
144,848
Latest member
YoSocrates
Top