C4-N

Warper
Member
Joined
Sep 28, 2022
Messages
2
Reaction score
1
First Language
Indonesia
Primarily Uses
RMMV
Hello Everyone, I'm C4-N.
I'm a Newbie to this RPG Maker Software.

I had a problem with the Window_TittleCommand. so i'm trying to add an Exit to Window/ Quit Game button, it works but the problem is there is no text appear on the screen it just blank. i trying to edit the TextManager and it didn't shows up. is there a way to make the Text appear on the Window_Tittle?

1664553759413.png


1664553782460.png
1664553541628.png
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,966
Reaction score
16,019
First Language
English
Primarily Uses
RMMV

I've moved this thread to Javascript/Plugin Support. Thank you.

 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
3,069
Reaction score
2,351
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi there!

The problem is that does not exist any command with the ID 26, as you created:
1664587876743.png

To explain better, let's take a look at two methods of text manager:

JavaScript:
TextManager.command = function(commandId) {
    return $dataSystem.terms.commands[commandId] || '';
};

TextManager.getter = function(method, param) {
    return {
        get: function() {
            return this[method](param);
        },
        configurable: true
    };
};

So as you can see on the TextManager.command, when it does not find a command ID under the $dataSystem.terms.commands, it will return an empty string.

Those commands IDs came from here:
1664588034421.png

So you can't create a new command ID like that.

The better solution will just do that:

TextManager.exit = "My command Name"

Then on the Window_GameEnd.prototype.makeCommandList, it will work.

Or if you also like, you don't even need to create a new property on TextManager. Just write the command name there.
 

C4-N

Warper
Member
Joined
Sep 28, 2022
Messages
2
Reaction score
1
First Language
Indonesia
Primarily Uses
RMMV
Hi there!

The problem is that does not exist any command with the ID 26, as you created:
View attachment 241713

To explain better, let's take a look at two methods of text manager:

JavaScript:
TextManager.command = function(commandId) {
    return $dataSystem.terms.commands[commandId] || '';
};

TextManager.getter = function(method, param) {
    return {
        get: function() {
            return this[method](param);
        },
        configurable: true
    };
};

So as you can see on the TextManager.command, when it does not find a command ID under the $dataSystem.terms.commands, it will return an empty string.

Those commands IDs came from here:
View attachment 241714

So you can't create a new command ID like that.

The better solution will just do that:

TextManager.exit = "My command Name"

Then on the Window_GameEnd.prototype.makeCommandList, it will work.

Or if you also like, you don't even need to create a new property on TextManager. Just write the command name there.

1664599482930.png

God bless! Thank you so much for your help. IT WORK!
I'm still learning about javascript and how a Code works, with the way explain it to me.i can easliy understand.:LZScheeze:
 

Latest Threads

Latest Profile Posts

working on an A/V sync system for my game! was NOT expecting the first roadblock to be accessing a variable from a public class!! Computers are so finicky sometimes :kaosigh:
For the first real time since my game's inception I found myself actually having fun playing around with my party's skills while testing out some battles! So much so, that I actually forgot what I was doing for a minute and had to force myself to move on to the next thing! :guffaw:

That's got to be a good sign considering it only has place holder animations, enemy skills, troop comps, etc. right now. Feels good!
Bex
Finally upgraded to RMMZ.
ScreenShot_11_28_2022_7_52_34.png
FINALLY, I figured out how to get the "tail" to appear IN the window and not directly below it lol. now it looks like it's part of the window and not hanging from the bottom of it.
Twitch! Stream is about to go live with some Dark Souls 2! Feel free to drop by!

Forum statistics

Threads
126,925
Messages
1,182,399
Members
166,755
Latest member
Hahah520
Top