[VX Ace]Help with Yanfly's message system script

S.Court

Veteran
Veteran
Joined
Oct 17, 2012
Messages
394
Reaction score
98
First Language
Español
Primarily Uses
RMVXA
Hello everybody, I have a trouble with Yanfly's message system, I'm trying to make a name window, just like this script says it can make, it works normally if I use the regular fonts, but I added a new font to the game and I tried to make a window name with this command



Here comes the trouble, when I try to test it, the program shows the next error



#--------------------------------------------------------------------------

  # set_width

  #--------------------------------------------------------------------------

  def set_width

    text = @text.clone

    dw = standard_padding * 2 + text_size(text).width

    dw += YEA::MESSAGE::NAME_WINDOW_PADDING * 2

    dw += calculate_size(text.slice!(0, 1), text) until text.empty?

    self.width = dw

  end

 

The line 588 is this one

 

dw += calculate_size(text.slice!(0, 1), text) until text.empty?

 

I actually could fix this problem... Well Kind of, adding an extra \ to the tag in the window name, but it shows the name of this way...

 



 

I don't like the fact the window name looks really disproportionate considering the text's length... Is there a way to fix that? thanks by the help
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
your problem is probably that Amigo is not a string, it's a variable name (or at least, it's one for a programming language)


The command \fn[x] requires you to use a font name between the [].


Try \fn['Amigo'] - that would be a string.


If that does not work, we need a link to the script you're using to check its examples and descriptions.
 

S.Court

Veteran
Veteran
Joined
Oct 17, 2012
Messages
394
Reaction score
98
First Language
Español
Primarily Uses
RMVXA
your problem is probably that Amigo is not a string, it's a variable name (or at least, it's one for a programming language)

The command \fn[x] requires you to use a font name between the [].

Try \fn['Amigo'] - that would be a string.

If that does not work, we need a link to the script you're using to check its examples and descriptions.
Uhhh sorry for long wait, but I could this problem now, thanks anyways
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top