Simple script to make an image be displayed in battle

Hey everyone!

I was just wondering if anyone could write a simple script that makes an image display when a battle starts, and disappear once the victory screen starts. It would also need to disappear when a message box is displayed in battle, much like other HUD elements. All I need to have the ability to change myself is the Z position of the image, really.

The reason I ask for it is because I want to add a HUD element. I'm using a turn bar which indicates who will attack next, but it's just a bunch of icons and it doesn't look very nice, so I want to give it it's own HUD element.

I imagine this isn't too hard. I could do it with a common event or in the event pages for battles, but I want something that will disappear when the other battle HUD elements disappear.

Thanks in advance if anyone decides to help me out!
Are you using a custom battle script?
Are you using a custom battle script?
Yeah, I am. Moghunter's, to be exact.

Would that cause an issue? I didn't think displaying an image independently would, but then again, I know nothing about scripting so...

Edit:

Well, I should say I'm using Moghunter's Battle HUD script, and I'm also using Yami's CTB battle system for the main battle code...

I'm not entirely sure why I forgot to mention that.
Why do you need a script for a hud if you already have a script for a hud?


Please provide links.
Why do you need a script for a hud if you already have a script for a hud?

Please provide links.
Moghunters script lets you alter certain elements but it doesn't let you add your own. Because having a window around the turn order icons isn't something the system supports, there is no option to add this HUD element. Does that make sense?

So I really just need a way to have the HUD element displayed in battle, and since this particular HUD element never changes (the turn order script deals with the icons changing), I figured it wouldn't be too difficult.

The HUD script is here (http://www.atelier-rgss.com/RGSS/Battle/ACE_BAT23.html), but considering what I just said I don't know if it's necessary to send this.

Sorry to be confusing at all!
@Haofeng:
Just for your info, an image to be displayed during battle is different from a HUD to be displayed - because a HUD needs updating while an image would be fixed.

So you need to tell any scripter which part of the screen needs constant updates (values, bars, states) and where it only needs a display (frame). The updates need to be fit to the battlescript, because that's where the data to be updated comes from. The frame for the HUD might be a simple display or it might require removing or shifting around other parts of the existing battlescripts.

I suggest you make a screenshot of the current battlescreen, and a mockup of how you want it to look like and explain the changes - then we can see what has to be changed where in the scripts.
@Haofeng:

Just for your info, an image to be displayed during battle is different from a HUD to be displayed - because a HUD needs updating while an image would be fixed.

So you need to tell any scripter which part of the screen needs constant updates (values, bars, states) and where it only needs a display (frame). The updates need to be fit to the battlescript, because that's where the data to be updated comes from. The frame for the HUD might be a simple display or it might require removing or shifting around other parts of the existing battlescripts.

I suggest you make a screenshot of the current battlescreen, and a mockup of how you want it to look like and explain the changes - then we can see what has to be changed where in the scripts.
Yeah, I suppose you're right. Let me call this a 'static HUD element', then haha.

Nothing about the image being displayed will change, other than it'll disappear when most of the other stuff would disappear in a battle, like at the victory screen or upon using the display text command. That's all. No bars, no values, just an image that sits lower on the Z axis than the script which is managing the icons.

Here are some screenshots;

As it is now, with the turn order located on the left hand side

[IMG]http://i.imgur.com/AwAaKSE.png[/IMG]

How I want it to look, with the part around the icons showing a basic and quick mock up of what the static image is. It'll be on a lower Z plane, like I said, and thus just sit behind this giving it a border.

[IMG]http://i.imgur.com/z8TZmLC.png[/IMG]

Hopefully this has cleared things up, if not though, just say!

Original thread: https://forums.rpgmakerweb.com/threads/simple-script-to-make-an-image-be-displayed-in-battle.41161/