I really need help to change settings for item's description

Luke85

Warper
Member
Joined
Dec 4, 2013
Messages
3
Reaction score
0
First Language
Italian
Primarily Uses
Hi! (sorry for my english!)

I need to decrease the font size ONLY in the item's description font, where I can do it?

I found "windows_help" but any change in that code isn't reducing the font! I'm newbie in script ^_^

Plus: how I can force the game to show me the item's description on THREE lines instead of two?

Two lines aren't enough, I set a bigger height size for the description window and I would love if I can control the number of lines.

I need these 2 modifications to show a longer description text for each item 


I'm creating an RPG game based a lot on dialogues, descriptions, texts, etc

Thank you so much!!! ^_^
 

orathan

Villager
Member
Joined
Oct 11, 2013
Messages
27
Reaction score
3
Primarily Uses
For the font size reduction, put the code (like the one used in the show message) in the description.  I've tried using \v[x] to show a variable's value and it works which would also apply to the other codes.

For the number of lines, you'll need to edit the script.  It's somewhere in the Windows section.  I tried doing the same thing but I can't recall where exactly it is located.  I'll look into one of my test projects.

The things I said above only applies if you aren't really going to resort to external scripts.
 
Last edited by a moderator:

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Put this code into your script list

Code:
class Window_Help < Window_Base  def reset_font_settings    change_color(normal_color)    contents.font.size = 15 # <-- change it here ~    contents.font.bold = Font.default_bold    contents.font.italic = Font.default_italic  endend
 
Last edited by a moderator:

Luke85

Warper
Member
Joined
Dec 4, 2013
Messages
3
Reaction score
0
First Language
Italian
Primarily Uses
After 1 week I finally found where the lines are!

Is "def initialize(line_number = 2)" in Windows_Help class, just change the default number to the desired one :)

I write it here, maybe this will help someone!

THANKS for the code!!!!
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Test that - does it work? I'd be a bit surprised. You also need a way to GET 3 lines of description into your items.


theodoric's suggestion will change ALL descriptions to a smaller font, not just items. You'll need to specify if that's acceptable, or if you ONLY want it to affect items.
 

Luke85

Warper
Member
Joined
Dec 4, 2013
Messages
3
Reaction score
0
First Language
Italian
Primarily Uses
For the lines, I found that number and it works fine!

For his font code, that I put in Window_Help, works on all text in that windows, same thing for italic that I set. for example, in Load and Save I can't have the default settings right now. I tried to put the same code in Scene_Load and Scene_Save but I't doesn't work, he take the code in the WIndow_Help.

So, if possible, It would be GREAT to reduce size and apply italic ONLY for items and not for all the rest too... ^_^
 
Last edited by a moderator:

danielson

Villager
Member
Joined
Oct 21, 2014
Messages
8
Reaction score
2
First Language
Hungarian
Primarily Uses
Hello!

I'm new here and translating a hentai game.

Put this code into your script list

class Window_Help < Window_Base def reset_font_settings change_color(normal_color) contents.font.size = 15 # <-- change it here ~ contents.font.bold = Font.default_bold contents.font.italic = Font.default_italic endend
...
theodoric's suggestion will change ALL descriptions to a smaller font, not just items. You'll need to specify if that's acceptable, or if you ONLY want it to affect items.
Does anybody know how to specify the font size change for the items's descriptions ONLY with TheoAllen's method? Adding more lines at "def initialize(line_number = 2)" would be the last resort......

Has a solution been made?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Danielson, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Please start a NEW thread with your question.


The answer will involve creating a new class based on the Window_Help class and changing the item window to use the new class instead.
 

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top