Is there a way to put bigger descriptions to items into the game? I managed to increse the size of the descriptions window but i can still put only 2 lines of text
RMMZ descriptions
RPG Maker MZ Supportyou can add more, but you require to change the "this.lineHeight" as well.
default as default is probably 2, so you need to set it to 4 or 5 or more
for more lines to add there.
I don't have MZ, so I hope the name is the same, and maybe there are
plugins for it as well (VS plugin or alternate as in MV, one of YEP plugins
could do it.
default as default is probably 2, so you need to set it to 4 or 5 or more
for more lines to add there.
I don't have MZ, so I hope the name is the same, and maybe there are
plugins for it as well (VS plugin or alternate as in MV, one of YEP plugins
could do it.
That's what i did but all the lines that i addded can only be blank because i can add only two lines
can you show the code what you did?
JavaScript:
Scene_MenuBase.prototype.helpAreaHeight = function() {
return this.calcWindowHeight(7, false);
};
you overwrite the menubase which you dont want.
it's more the window part you need, not sure on the "false".
I think I have a game for MZ, give me a moment.
edit:
set this inside the window of the Window ItemList you use
I cannot test this if it works, but it alter the helpwindow lines to more lines
and the lineheight was a mistake.
it's more the window part you need, not sure on the "false".
I think I have a game for MZ, give me a moment.
edit:
set this inside the window of the Window ItemList you use
JavaScript:
Window_ItemList.prototype.fittingHeight = function(numLines) {
//return numLines * this.itemHeight() + $gameSystem.windowPadding() * 2;
return 7
};
I cannot test this if it works, but it alter the helpwindow lines to more lines
and the lineheight was a mistake.
I don't understand, do i have to replace the code?
While I don't have MZ to test it, I'm fairly sure this change will just make that window 7 pixels tall, which is probably not what you want.
fittingHeight(2) = 2 lines correct or did I miss something? or required the rest of the code too?
Nothing you do can change the editor, so the database text will always be limited to two lines of text.
to get longer descriptions it is not enough to increase the space for more text, you also need to add a way to get more infor than two lines of text.
What most programmers do is to create a notetag that then gets added to the description code, and that part isn't shown anywhere in the code above - so I assume it is completely missing, limiting your info to the original two lines of database description.
to get longer descriptions it is not enough to increase the space for more text, you also need to add a way to get more infor than two lines of text.
What most programmers do is to create a notetag that then gets added to the description code, and that part isn't shown anywhere in the code above - so I assume it is completely missing, limiting your info to the original two lines of database description.
I'm not sure what you were trying to do, but you changed the function that returns the height in pixels depending on the number of lines to always return 7 pixels.
Yes, the rest of the code means something 😛
All positions, heights, widths, everything in MV and MZ is measured in pixels, as @Mac15001900 pointed out. So when the OP changed code for helpAreaHeight to be based on 7 lines, the expected result of that is how many pixels high the area must be.
You changing fittingHeight() doesn't do anything because it already is calculating the height based on the number of lines - that's what the
numLines argument and all the math inside the function is for.The problem has nothing to do with the engine's code, it's because - as Andar said - the amount that's stored in the database is limited within the editor.
So you could try something like this (untested):
Code:
Window_Help.prototype.setItem = function(item) {
this.setText(item ? (item.meta.helpdesc ? item.meta.helpdesc : item.description) : "");
};
Copy the above into a text editor, save as a *.js file, include as a plugin. I'm not sure how you made your previous change to the height of the window, but you should never edit the core script files directly.
Then you can put the notetag on items
Code:
<helpdesc:Here's my long description and you type as much as you want>
i know this post is a bit old now, but where would i put this code if i wanted to try this?
Save the part with the "Window_Help" as a .js file and add it as a plugin.
If it doesn't work you may want to make a new thread which references this one, as there is a high chance this one will get closed due to necroposting.
Ok ill try that. Thank you in advance!
Original thread: https://forums.rpgmakerweb.com/threads/rmmz-descriptions.169865/