Simple script to make an image be displayed in battle

Haofeng

Villager
Member
Joined
Apr 11, 2015
Messages
27
Reaction score
3
First Language
English
Primarily Uses
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!
 

Haofeng

Villager
Member
Joined
Apr 11, 2015
Messages
27
Reaction score
3
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Why do you need a script for a hud if you already have a script for a hud?


Please provide links.
 

Haofeng

Villager
Member
Joined
Apr 11, 2015
Messages
27
Reaction score
3
First Language
English
Primarily Uses
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!
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
@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

Villager
Member
Joined
Apr 11, 2015
Messages
27
Reaction score
3
First Language
English
Primarily Uses
@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



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.



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

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top