[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,888
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,888
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,832
Reaction score
1,291
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,426
Reaction score
5,061
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

I am thinking about redoing my portfolio video...
Degica has great discounts now on Steam too. MV & MV DLCs, VX Ace & VX Ace DLCs, and some DLC for MZ with a 10% discount. So if you are missing something, you can catch up now.
I'm streaming @jasonzeno 's game called Moonfall
I've been trying out Fell Seal: Arbiter's Mark, and it has an interesting approach to consumable items - you get a limited inventory that is automatically refreshed to max limits (1 or 2 each, craft to expand + improve effect) at the start of each combat. It's a mechanic that goes against the common urge to hoard consumables.

Forum statistics

Threads
103,197
Messages
997,946
Members
134,672
Latest member
MassiMatte23
Top