Resource icon

Resource Mr. Gela's Name Windows

Mr. Gela

Elite Trainer
Member
Posts
140
#1
Mr. Gela submitted a new resource:

Mr. Gela's Name Windows - Enables the use of custom windows with names in them, to use for the name of NPCs, for example.

What's this?
See screenshots. owo

O.K. What do I do?
Import this Pastebin Link into a new script section. Use with the text code "\xn[text]".

It will default to the choice windowskin (left screenshot) but, if there's a file in the Windowskin folder called "speech whatever xn", it will use that one instead (right screenshot). A bunch of those are included in one of my other resources:...
Read more about this resource...
 

Hermanaso

Rookie
Member
Posts
1
#3
I cant change names windowskin

I named the image ''speech 1 xn'', 'speec xn'', 'speech01xn'' and ''speech whatever xn'' and it didnt work. It always use the ''choice 1'' image

Anyways this script its so nice and easy to plug in
 

Mr. Gela

Elite Trainer
Member
Posts
140
#4
I cant change names windowskin

I named the image ''speech 1 xn'', 'speec xn'', 'speech01xn'' and ''speech whatever xn'' and it didnt work. It always use the ''choice 1'' image

Anyways this script its so nice and easy to plug in
My instructions might've been vague. Are you using the default windowskins that come in Essentials? ("speech hgss 1" etc). If you are, the "XN" filename should look like "speech hgss 1 xn".

Please, let me know if that was it. :-)
 

Diego Mertens

Rookie
Member
Posts
2
#7
Hi, Mr. Gela!
I do it! I was coding since an hour, and I get what i'd want!
(en mi idioma/in my laguage)
¡Hola, Mr. Gela!
¡Lo hice! Estube codificando como por una hora, ¡Y conseguí hacerlo! Puse esto:
Ruby:
def pbDisplayNameWindow(msgwindow,param)
  if msgwindow.y <= 25
    namewindow=Window_AdvancedTextPokemon.new(_INTL("<ac>{1}</ac>",param))
    namewindow.setSkin("Graphics/Windowskins/"+MessageConfig::TextSkinName+" xn")
    namewindow.resizeToFit(namewindow.text,Graphics.width)
    namewindow.width=180 if namewindow.width<=180
    namewindow.width = namewindow.width
    namewindow.y=0
    namewindow.x=msgwindow.x
    namewindow.y+=OFFSET_NAMEWINDOWUP_Y
    namewindow.x+=OFFSET_NAMEWINDOW_X
    namewindow.viewport=msgwindow.viewport
    namewindow.z=msgwindow.z
    return namewindow
  else msgwindow.y >=25
    namewindow=Window_AdvancedTextPokemon.new(_INTL("<ac>{1}</ac>",param))
    namewindow.setSkin("Graphics/Windowskins/"+MessageConfig::TextSkinName+" xn")
    namewindow.resizeToFit(namewindow.text,Graphics.width)
    namewindow.width=180 if namewindow.width<=180
    namewindow.width = namewindow.width
    namewindow.y=msgwindow.y-namewindow.height
    namewindow.x=msgwindow.x
    namewindow.y+=OFFSET_NAMEWINDOW_Y
    namewindow.x+=OFFSET_NAMEWINDOW_X
    namewindow.viewport=msgwindow.viewport
    namewindow.z=msgwindow.z
    return namewindow
  end
end
And:
Ruby:
OFFSET_NAMEWINDOW_Y=0
OFFSET_NAMEWINDOW_X=0
OFFSET_NAMEWINDOWUP_Y=108
OFFSET_NAMEWINDOWUP_X=-1
 
Top