VXA Window_BattleEnemy Help?

Alrighty, so I changed the help window to have 1 line instead of 2.

This apparently affected Window_BattleEnemy somehow. This bug only appears for the first few rounds in battle.

I'm still new to scripting and don't really know what the error could be, and I don't want to go back to the default help window

either.

Here's a screenshot so you can see what I mean:

Screenshot (1395473404.855429).png

If someone could help or show me how to edit this it would be greatly appreciated.
well, first of all, post the edit that you did...
That is not Window_BattleEnemy. It is Window_Help. Window_BattleEnemy is the window that appears in the bottom right corner that lets you choose an enemy to target.


Also, in addition to changing Window_Help to have only one line, you are obviously using other custom scripts. Post what they are, and give links to where you downloaded them from.
Sorry, again I am fairly new to scripting, thought that BattleEnemy was... well that.

Here's the edit:

class Window_Help < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(line_number = 1) super(0, 0, Graphics.width, fitting_height(line_number)) endAs for the status window, Craze leaves his projects open. It's from http://rpgmaker.net/games/4526/‎ Wine & Roses, with the TP edited out.

Also script is called >>CRZ: Battlestatus Wine.

EDIT: In addition I am also using these scripts

YEA Battle Engine

YEA Enemy Bars

MOG Battle Cursor

(Other Yanfly battle addons)

CRZ BattleStatus

Though it is probably just the help window edit...
Link to the scripts please. I'm not going to go searching for them 😉


Look for a call to Window_Help.new in the battle scripts, and see if there's a 2 passed into them. If there is, remove it and don't pass any parameters. And you still didn't say what you edited in the Help Window - you shouldn't need to edit ANYTHING to change it from 2 lines to 1.


If you're wanting help, you've actually got to read what we say, and answer the questions we ask you (which includes providing screenshots, code, links, etc). We can't help you if you don't give us what we need to see.
Ok, the only edit was in Window_Help. It only cuts off part of the enemy name in the beginning 2-4 turns. I will look for that in the battle scripts, thanks. Sorry for not providing links, but I was also providing as much info as I could to the best of my knowledge as a new scripter. This is not solved just yet... I'll lock it when it is.
you can't lock it. Only mods can 😉


Undo your script edit. What you've done with the change is to BREAK every other thing that uses the help window that assumes the default number of lines will be 2.


Just find the line that instantiates the help window for the battle system, and pass 1 into it, rather than changing the default value.
I was told before that there was a way for me to do this... maybe it was on another site.

Anyways, what exactly would I put? I want the help windows in the menu to have only 1 visible line, but in battle to have the target name have 2 lines (or 1).
I just told you how to do it.


Undo your edits, find where any windows are instantiated that you only want to have one line, and pass 1 through as a parameter. Then it's up to you to ensure that there IS only one line to display (like descriptions in the Items menu)


If you had said in the first place what you REALLY want (menu help to only have 1 line, battle help to have 2 lines) this would have been much faster to resolve. Your initial post gave the impression that you ONLY wanted it changed in battle, and that you had changed it to only have 1 line and it wasn't displaying properly.
You're right, I should have added more info, but it was about a bug in battle because of my edit.

Also, BEGINNING scripter. I'll go through each menu and change the help window, though I have no idea what to add, usually I just change what's there and most of the time there is no integer or definable solution. Sometimes even def visible_line_number won't work. Sorry I bugged everyone with my idiocy.
If there is no integer, it means the default (2) is what's being accepted. So in those cases you want to ADD an argument to pass in, so you change it from Window_Help.new to Window_Help.new(1)
Thanks, that worked. I changed it in Scene_MenuBase so it covered all menus. I'll put some more thought into my next request if I make one. This can be closed.
Still not good, because you're changing ALL of them. You STILL need to determine which ones you DON'T want to use the default, and change them individually.


Anyway, since you're happy with it, I'll close it for now. But if you find it's showing the wrong number of lines somewhere else, just report the post and ask for it to be reopened.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/vxa-window_battleenemy-help.25254/