[SOLVED] Showing all message choices

Status
Not open for further replies.

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
124
Reaction score
47
First Language
Français
Primarily Uses
RMMV
Hi all. This one is driving me nuts, can't figure what plugin to modify...

I'm using Yanfly message core.

When positioning my message box at the top of the screen, all 6 message choices do show up.
6.png

But when I position the message box in the middle, only 4 options show up.
4.png

What I want to do is to position the message box about 200px from the top of the screen, have 4 lines of text and then when message options show up, show ALL of them, not truncated to max 4 message options.

I don't mind hard-coding stuff in the plugins... I just can't find which one I need to modify.

Is anyone able to help?

Thanks!
 
Last edited:

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,885
Reaction score
521
First Language
English
Primarily Uses
N/A
Can you modify the choices position so It's at the top of the message box?

Edit: what happens if you press down a bunch? Does it scroll to the other choices?
 

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
124
Reaction score
47
First Language
Français
Primarily Uses
RMMV
Ideally no. This, made with image editor (Gimp) is what I want to achieve:

all.jpg
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,885
Reaction score
521
First Language
English
Primarily Uses
N/A
So your magic schools are: Red, Gold, Green, Birch and Obscurus? Ooooh! can you grow tree's with the birch shcool of magic?
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,819
Reaction score
1,277
First Language
EN
Primarily Uses
RMMZ
The main text window is Window_Message; the choice window is Window_ChoiceList. The code for both of these is found in rpg_windows.js. :)

I think this is the method you're seeking:
JavaScript:
Window_ChoiceList.prototype.numVisibleRows = function() {
    var messageY = this._messageWindow.y;
    var messageHeight = this._messageWindow.height;
    var centerY = Graphics.boxHeight / 2;
    var choices = $gameMessage.choices();
    var numLines = choices.length;
    var maxLines = 8;
    if (messageY < centerY && messageY + messageHeight > centerY) {
        maxLines = 4;   // <-- This line!
    }
    if (numLines > maxLines) {
        numLines = maxLines;
    }
    return numLines;
};
You could try copying that method into a plugin, with the maxLines = 4 if clause removed. :kaophew:
 

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
124
Reaction score
47
First Language
Français
Primarily Uses
RMMV
So your magic schools are: Red, Gold, Green, Birch and Obscurus? Ooooh! can you grow tree's with the birch shcool of magic?
Schools of Magic
Following the end of The Great War a few centuries ago, the Mage Council decided that only the following five schools shall be allowed to be taught:

  • Rubeus (Red): Raw power, fire, destruction.
  • Aurum (Yellow): Energy, electricity, balance.
  • Viridis (Green): Nature, protection, growth.
  • Caerulus (Blue): Mind, control, retribution.
  • Obscurus (Purple): Life, death, underworld.





The main text window is Window_Message; the choice window is Window_ChoiceList. The code for both of these is found in rpg_windows.js. :)
[SNIP]
You could try copying that method into a plugin, with the maxLines = 4 if clause removed. :kaophew:

THANK YOU!!! I wasn't even looking in the right folder, no wonder why I could not find it!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,404
Reaction score
5,045
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: 1)

Latest Threads

Latest Profile Posts

"Humble Bundle Sound Designer Bundle" just noticed this with a day left. Useful for those of you who want to mix your own music. :LZSwink:
Lots of artists very active right now :)
I'll try all of my gestures.

This Is Vasily. I like him very much
If any composer here would like me to use their music as background on my plugin videos, just let me know.

Forum statistics

Threads
103,082
Messages
997,128
Members
134,546
Latest member
rasdf
Top