Help window for skills

Status
Not open for further replies.

Erinblue

Villager
Member
Joined
Jan 9, 2018
Messages
12
Reaction score
3
First Language
Spanish
Primarily Uses
RMMV
Hi,
I have been trying to edit the help window in battle, at the moment only with position, width and height. The thing is that it changes for all the help windows of skills, items, etc and I would like to only edit the skills one. I don't know if its possible somehow or if I have to make a new scene/window for that. Any help is appreciated.
Thanks!
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
You could make a new type of window (say, Window_SkillHelp) that inherits from Window_Help. Then make sure to create an instance of the new window in battle, and also update the skill select window to update the new help window rather than the old one.
 

Erinblue

Villager
Member
Joined
Jan 9, 2018
Messages
12
Reaction score
3
First Language
Spanish
Primarily Uses
RMMV
Hello and thank you for your response!
I managed to make a new window and show it on battle, but I don't know how to make the skill select window update this new one. Any steps I have to follow?
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Start by looking through Scene_Battle to find where the skill selection window is created (I forget exactly the name of that window). Inside there, you'll see something like this (pseudo code)

Code:
Scene_Battle.prototype.createSkillzWindow() {
    this._skillzWindow = new Window_Skillz;
    this._skillzWindow._helpWindow = this._helpWindow;
}
You see the help window is assigned as a property of the skills window. Here is where you need to assign your special help window instead of the default help window
 

Erinblue

Villager
Member
Joined
Jan 9, 2018
Messages
12
Reaction score
3
First Language
Spanish
Primarily Uses
RMMV
Thank you very much! I have finally made it work as intended!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top