dwiseman57

Merchant Prince Digital
Veteran
Joined
Jun 29, 2014
Messages
62
Reaction score
10
First Language
English
Primarily Uses
N/A
Try as I might, I can't seem to get the Battle Log to limit to showing maximum of 3 lines of text.
When someone casts something that effects 3 or more enemies, I get 4+ lines of text appearing in the BattleLog.

I've even got a plugin, at the bottom of my plugin list with:

Code:
Window_BattleLog.prototype.maxLines = function() {
    return 3;
};

and still no change... Surely this should overwrite the core function...
Anyone got any tips?
 

eomereolsson

Veteran
Veteran
Joined
Sep 29, 2021
Messages
173
Reaction score
144
First Language
German
Primarily Uses
RMMV
You are correct, this should overwrite the core function. However (at least in the core engine) this function seems to be only called to calculate the height of the battlelog window.

As you can see in the refresh function every line in this._lines will be drawn, regardless of what maxLines has to say about that.

The actual maximum number of lines drawn seems to depend on this._baseLineStack somehow? I don't currently have time to look further into this. Hopefully this helps?
 

dwiseman57

Merchant Prince Digital
Veteran
Joined
Jun 29, 2014
Messages
62
Reaction score
10
First Language
English
Primarily Uses
N/A
Thank you for looking. It's a little beyond my JS skills. I wonder if any plugin devs has edited this before...
 

dwiseman57

Merchant Prince Digital
Veteran
Joined
Jun 29, 2014
Messages
62
Reaction score
10
First Language
English
Primarily Uses
N/A
Bump... Still looking for help on this, anyone got any ideas?
 

Latest Threads

Latest Posts

Latest Profile Posts

I officially declare today "test play day." I'm going to waste the whole day playing video games, which isn't a shock to anybody, but hopefully today I'll play my own and figure out what still needs fixin's.
Empty Bottles and Health Extenders are now a thing.
Also the Sling-Shot does damage to enemies now, but not a lot and you won't get gold from killing them that way.
ScreenShot_5_26_2022_11_36_32.png
added a Panic gauge to battle. it fills up according to your actions. each character has a different passive that activates once the gauge is full. also once full, a countdown starts and after each action taken, the gauges decreases. with each character, the decrease is different.
Genuinely considering making a thread informing people how to Google.

Forum statistics

Threads
122,165
Messages
1,146,969
Members
160,434
Latest member
SirBigSad
Top