MZ Help request: skills needed to make a turn order display.

Hi!

I've been messing around with JS and MZ for a bit, and even managed to make a pretty basic script to turn MZ's TPB battle mode to STB (it's not fancy, but if it works...), so I at least understand the basics of JS and am not completely clueless. Just mostly clueless.

However, now I want to add a graphical turn order display to supplement my plugin, and I'm at a bit of a loss as far as where to even get started with this.

I looked into tutorials for this and found Poryg's YouTube series, which seemed to be going heavily into managing scenes (which I think is what I want...?), and tried to follow along... but immediately ran into a wall when the first step he makes in video 2 I failed to reproduce in MZ:

1666709986311.png


Is it just me somehow being really dumb, or is this somehow different in MZ than in MV? If so, is there a guide that would teach me the skills I need that I could take a look at to accomplish my goal of making a custom turn order display? Thank you in advance for your help!
To be clear: I'm not asking someone to write the plugin for me or anything, just asking what I need to know in order to make the necessary visuals show up on the screen. Once I know how to actually make the pretty pictures show up, which I'm apparently not clever enough to figure out on my own, I'm confident I can work out the actual logic of what it displays and when.
So happy you ask this question because i am looking for the same answer! one thing I noticed about that YouTube series is in the comment section on the first video, he replied to someone saying this will not work for MZ. I've been on a search for something very similar but for MZ
You could tag @Poryg, he's pretty active on here.

But the error seems pretty straightforward to me...on the first line you defined this Scene_CustomMenu, then you try to call its own initialize().

However, all of the code beneath that still says Scene_Menu, so the error you're getting is quite accurate - you never defined Scene_CustomMenu.initialize().

I haven't watched the tutorial video you're referencing, but it seems to me if you're trying to create your own scene you probably want all of its functions to be renamed to that scene, not overwriting the default engine's Scene_Menu methods.

You can see this at 4:17 in the video, how your code doesn't match.
Hi there!

If what you want is to create a turn order display, which my understanding is a visual way to show the list of current battlers, sorted by their turn/time to make an action on the battle, then I believe what you need is to study how to create Windows and Sprites, not a Scene.

My primary approach would be to create a Window and inside it several sprites(images) that can represent a battler.

So, take a look for example:
  • How to create a bitmap on rmmz_manager.js. Specific on ImageManager.load[...]. There is a basic way to understand how an image can be created from a file(For more information on Bitmap, look at the Bitmap Class on rmmz_core).
  • Then, to visually show this image, go to the Sprite class on rmmz_core.js. You just need to pass that image as an argument to create a sprite.
  • Add that sprite as a child, somewhere. Either on the scene, inside a window, etc.
JavaScript:
const bitmap = ImageManager.loadPicture("actor1")
const sprite = new Sprite(bitmap)
sprite.move(x, y) // Change sprite position
this.addChild(sprite) // "this" can be a scene, a window, another sprite, etc...

You will probably need a way to link/attach a battler to these sprites, so you can easily sort the position of the sprite according to the battler turn.
For each turn that passes, or each action a battler finishes, you will need a way to sort the sprites to update them according to the battle flow.

An example:
1666723957575.png

Each image inside the window is a sprite. And each one is attached to a battler. The way I did this was, the current battler to perform an action is the first one on the left.
As they finish their turns they go to the last right position of the list and got greyed out. On video:

Original thread: https://forums.rpgmakerweb.com/threads/help-request-skills-needed-to-make-a-turn-order-display.152229/