Linebreak in Yanfly's Event Mini Label?

KoalaFrenzy

Eucalyptus Salad. Every day.
Veteran
Joined
May 5, 2019
Messages
57
Reaction score
27
First Language
English
Primarily Uses
RMMV
Hello,

My game is partially set in an MMO, and I'm adding elements to make it feel like one. Typically, above every NPC and player, there's a name and guild tag. The best way to get this in seems to be the Event Mini Label plugin which works great for one line of text, but I'm not sure how to get a linebreak in it as \n doesn't do anything on this one.

I'm using the following line in the comment box: <Mini Label: \c[14]<Night Horde>\n\c[3]<Butterfly3918>>

Any thoughts?
 

Attachments

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
188
Reaction score
132
First Language
French
Primarily Uses
RMMV
Hello! I might need something similar eventually so I made a slight Edit of the Plugin. With it, you can add a single linebreak in a mini label using '\n'.
I tested it using the label you provided:
<Mini Label: \c[14]<Night Horde>\n\c[3]<Butterfly3918>>
Should do what you asked...

*also, additionals '<' and '>' in your label are useless. It can be writed just like this:
<Mini Label: \c[14]Night Horde \n \c[3]Butterfly3918>

edit: just updated the file with a few fixes.
 

Attachments

Last edited:

PresaDePrata

Veteran
Veteran
Joined
Dec 4, 2014
Messages
84
Reaction score
17
First Language
Portuguese
Primarily Uses
RMMV
@TSR

Nice i was doing the same by the morning today. You added this part right?

JavaScript:
for (var i = 0; i < max; ++i) {
      var ev = list[i];
      if ([108, 408].contains(ev.code)) comment += ev.parameters[0] + '\n';
    }
I'm thinking to add a configurable Y offset to it.

EDIT: It already exists <Mini Label Y Buffer: +x> :oswt2:
 

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
188
Reaction score
132
First Language
French
Primarily Uses
RMMV

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Profile Posts

A mousefolk sprite I made, I think I did good.
Discovering math. functions for damage formulas was one of the greatest things for me.
It's very useful for balancing skills to work in a variety of possible circumstances.
For example if you have a skill that is supposed to work for both mages and warriors:
Code:
Math.max(a.atk * 2 - b.def, a.mat * 2 - b.mdf)
SpaceX: First-ever successful (manned) commercial spaceflight!! In these terrible and self-sabotaging times for the world, that's a ray of excitement and hope I needed badly.
GameDevJohn wrote on whtdragon's profile.
Hey I used you bunny and cat spritesheet for a game jam game. Thanks so much! You have really beautiful stuff here. I'll credit you at https://gamedevjohn.itch.io/bunny-boy

Forum statistics

Threads
98,018
Messages
948,575
Members
129,276
Latest member
abhikhurana
Top