MZ Undertale-esc images/pictures over the battle options plugin

1776706860122.png
1776706872122.png


Hello, I’ve been looking around for a while for plugins that will let me change the battle screen to something similar to these images, or, more generally, a plugin that lets me make the options you can select images rather than just plain text options, and toy around with where battle text is being displayed.

I tried SomeRandomDude’s HUD Maker Ultra plugin, but it only let me add more images to the battle HUD, not remove the choice text. I also tried using the original HUD Maker plugin, but it didn’t work because it was made for MV.

It could be a lack of skill that HUD Maker Ultra isn’t working for me, but there aren’t any tutorials on the battle screen specifically, so I’m at a loss. Any suggestions would be great!

I'd like to note that Undertale's battle system is just an inspiration, I don't need a one-to-one recreation, nor do I need a bullet-hell battle system plugin.

(First image by “arrow_nmw” on Soundcloud, second image by “RazFraz” on Soundcloud. Apologies for the first image being cut off, but I included the important stuff.)
If you're using HUDMaker I think you can put window battle command width to zero (so it becomes invisible, also change the max columns if you want it to be horizontal like that). Then in HUDMaker change the pictures to react/highlight when the window battle command index is the correct one (I think it also had mouse hover/click options). Then when you press your keyboard keys the game registers it in the invisible battle command window and you can just select stuff like normal. I feel like I gave an example some months ago to someone like this.
If you're using HUDMaker I think you can put window battle command width to zero (so it becomes invisible, also change the max columns if you want it to be horizontal like that). Then in HUDMaker change the pictures to react/highlight when the window battle command index is the correct one (I think it also had mouse hover/click options). Then when you press your keyboard keys the game registers it in the invisible battle command window and you can just select stuff like normal. I feel like I gave an example some months ago to someone like this.
I was under the impression that HUD Maker Ultra only allowed you to hide the part of the battle HUD that displayed the party member's portraits and health, but couldn't move the choice box around. I know the original HUD Maker allowed you to do that, but as I am using MZ, that version is outdated for me.
If you're willing to explain how to make the changes you mentioned, I'd love to hear it. As I know, there's only a single tutorial on HUD Maker Ultra, and it doesn't cover the battle system.
The same with the example, if you happen to find it, I'd love to hear it! Maybe it'll work as a tutorial for what I'd like to do.
Thank you!
No I mean give your own dimensions (set to zero) to the actor command window rectangle, like put as plugin (copy paste to notepad, save as .js file and add as a plugin):

Scene_Battle.prototype.actorCommandWindowRect = function() {
const ww = 0;
const wh = 0;
const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
const wy = Graphics.boxHeight - wh;
return new Rectangle(wx, wy, ww, wh);
};

And if you want the 4 columns for the actor command window (so you can select the stuff in the invisible window with left right keyboard):

Window_ActorCommand.prototype.maxCols = function() {
return 4;
};

Then if you want to highlight the elements with HUDMAKER, you need conditions like (replace X with index, they start at 0, so it's 0,1,2,3):
SceneManager._scene._actorCommandWindow.index() === X
Thank you for your recommendations, I was able to get the battle options in columns instead of rows because of the code. However when I tried to add a box as a test to serve as the battle options with the conditional code you suggested, i recieved the following error:

1776732038803.png


I was able to confirm that it was the "SceneManager._scene._actorCommandWindow.index() === X" code, and, due to my limited knowledge of JS, I am unsure what to do from here. I did change the "X" for a "0," however.

If you know of a way to fix this, it would be greatly appreciated.
Put checks in there that it exists, because it's not created at the very battle start. I haven't used HUDMaker really, but just this shoud work:

SceneManager._scene?._actorCommandWindow?.index() === 0

EDIT: edited a bit where I put the question marks
I made these changes, and the error no longer appears, but unfortunately, the box remains visible throughout the entire battle, not just when an option is selected.
1776770549869.png

This is the code I used to display the box based on the conditions. I tried removing the 'return true' line because I thought that might override the previous conditional, but that just causes the box to got show up at all.

Thank you again for your continued help, it really means a lot!
If it wants a return true/false, then write there (I assume it's fine for it to get undefined as falsy value for the short time that that optional chaining returns undefined when the window doesn't exist):

return SceneManager._scene?._actorCommandWindow?.index() === 0;

If there's a problem with that, try:
return SceneManager._scene?._actorCommandWindow?.index() === 0 || false;


EDIT: Hmmm, actually wouldn't it then check undefined === 0 which is false, yeah so there's no problem even when it's undefined.
Really good news, it sorta works! When hovering over the attack option in-game, the box appears, but when the battle starts, specifically before/when you choose to run or to fight, it remains visible. The box disappears then reappears whenever you hover over the other battle options.
I don't know what kind of system you're building. Why do you have the actor command window visible at all? Didn't you set the width to zero?

If you want the same for partyCommandWindow (fight/escape), you need to do similar stuff to that than the actorCommandWindow.

Like I said I haven't used HUDMaker, but I think that if you want to do those kinds of picture buttons, you need to keep the 4 of them always visible (or when actorCommandWindow would normally be visible, like SceneManager._scene._actorCommandWindow.visible) and then put those conditionals to show the highlighted ones depending on the index of the command window (and also the visibility check unless you keep the normal ones always visible).

EDIT:
Just to clarify, I used "visible" in two different contexts here. If you set the width/height to 0, it's no longer visible to your eyes, but the game still views is as visible, when it's visible property is true when it should be on screen. So even if you can't see it you can still check when it should be on screen with that .visible check.
Apologies, I didn't mean to be confusing. What I meant was that the highlighted fight option served as the default selection. Even when you weren't yet in the Fight / Special / Item / Guard menu, the Actor Command Window, the fight option would still be highlighted and would continue to be highlighted until you hovered over another option in the Actor Command Window.

While not ideal, I've been able to do more than what I originally wanted, so I believe the question I had was answered. Thank you so much for your help!
Yeah, if you only want the highlight to be active when the actor command window should be active, you need to use a condition for the highlight pics, something like (change the index for each highlight):

return SceneManager._scene?._actorCommandWindow?.isOpenAndActive() && SceneManager._scene?._actorCommandWindow?.index() === 0;

EDIT: Actually for some reason it logs the actor command window as active when the party command window is open? So change the check to also check that it's open (edited it above).

EDIT2: Oh yeah whoops, I realized that I forgot the checks that it exists from the condition I added. Edited them in.

Original thread: https://forums.rpgmakerweb.com/threads/undertale-esc-images-pictures-over-the-battle-options-plugin.183328/