[SOLVED] Showing all message choices

Status
Not open for further replies.

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
125
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,892
Reaction score
522
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
125
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,892
Reaction score
522
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,850
Reaction score
1,314
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
125
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,455
Reaction score
5,084
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

Good morning. Please introduce caffeine in the proper slot. Not sufficient caffeine, add more. Add more. Continue until you hear a sound signal. Please continue. Insufficient caffeine. Increase the quantity of SRW music. Add caffeine.
I have to fix a little more.
Or maybe a lot. Yeah, I need to make the characters look a little bit more fit in some poses.
There once was a man whose name was my own
Who tried to make games for console and phone
But after ten years
Some blood sweat and tears
Weird status updates were all that he'd shown.....
I go out once every two weeks. My bf works full-time. Why is it only ever me getting sick? T_T
I've been debating on this as the title screen for a while now...

Forum statistics

Threads
103,394
Messages
999,005
Members
134,916
Latest member
VItheSixth
Top