[SOLVED] Showing all message choices

Status
Not open for further replies.

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
167
Reaction score
64
First Language
French
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,923
Reaction score
535
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
167
Reaction score
64
First Language
French
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,923
Reaction score
535
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
2,091
Reaction score
1,508
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
167
Reaction score
64
First Language
French
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,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: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,088
Members
137,585
Latest member
Reversinator
Top