4 Questions: How to change battler death color, and 3 window related questions.

8Mi43oh.jpg


As you can see, my game uses a very specific palette, but when a battler dies, it uses a different color for it's death animation. How can I change that so that it matches with the other colors? I know the color codes for the colors I use, I just need to know where in the program I can go to change it.

Second question - How can I change it so that the window at the top that says what actions are being taken is displayed as a solid window image, like the HP/MP status window, instead of being transparent?

Third question - How can I make it so that the bottom windows during battle don't move around when selecting/taking actions? I want them to be locked in the default position.

Fourth question - How can I make the top window's text appear slower? The game doesn't use animations aside from sprite flickering, so this causes the list of actions to run by very quickly and it can sometimes be hard to keep up. I want it to be slowed down so the player has an easier time reading it before it vanishes.

Edit: Also, I have Luna Engine, so if you think it is necessary in order to make this work, I can use that.
Question 2: Making a HUD.

Post #3 on the following thread will show you how.

http://forums.rpgmakerweb.com/index.php?/topic/35066-luna-engine-tutorial-freebie/

Question 3:

You can ask this in Luna Engine Main Thread Category   😉

[SIZE=14.4444446563721px]Question 1 is really interesting. Same goes for question 4[/SIZE]
Also it seems like I can't use Luna Engine because any time I try and copy the scripts into my project, it causes the game to immediately close as soon as it opens. Specifically, the KGC Bitmap Extension. Even just that one breaks my game...
Also it seems like I can't use Luna Engine because any time I try and copy the scripts into my project, it causes the game to immediately close as soon as it opens. Specifically, the KGC Bitmap Extension. Even just that one breaks my game...
Fortunately I know the answer to this issue.

You should also copy a file to your project.

Read the pdf manual Luna engine comes with for more info on this. 

The file is named "TRGSSX.dll" or something.

Final page of the manual (Page 5 excluding cover page)

You should find such a file in one of the demos or even the Base.
Fortunately I know the answer to this issue.

You should also copy a file to your project.

Read the pdf manual Luna engine comes with for more info on this. 

The file is named "TRGSSX.dll" or something.

Final page of the manual (Page 5 excluding cover page)

You should find such a file in one of the demos or even the Base.
I'll try that next time I boot up the program. Is there any way to mass copy scripts? It's a pain to copy stuff from the Luna Engine demos one at a time...
I'll try that next time I boot up the program. Is there any way to mass copy scripts? It's a pain to copy stuff from the Luna Engine demos one at a time...
I have no idea.

I am afraid not.

:/
This should all be relatively easy. I'm pretty sure I accomplished the first one, and possibly the last one, when I worked on a low-color game as well. Just give me a little bit.

A couple questions though:

-Are you using any battle-related scripts or is it all default?

-For point 3, do you still want the fight/escape window to appear before actions?

-Also point 3, do you want said actions menu to be visible when actions are taking place?

-For point 4, the way I did it in the past was to have the length of time it displays dependent on the amount of text it needs to display. So something like "Ralph calls upon the heavens to smite his enemy and bring peace to the world" is on the screen for considerably more time than "Ulrika punches the bear"

Here's the solution for the first two for now:

Spoiler
Change the basic collapse color

class Sprite_Battler < Sprite_Base #-------------------------------------------------------------------------- # * Update Collapse Effect #-------------------------------------------------------------------------- def update_collapse self.blend_type = 1 self.color.set(255, 128, 128, 128) #set color here (R, G, B, Opacity) self.opacity = 256 - (48 - @effect_duration) * 6 endendChange the battle log to use a regular windowskin
Code:
class Window_BattleLog < Window_Selectable  #--------------------------------------------------------------------------  # * Object Initialization  #--------------------------------------------------------------------------  def initialize    super(0, 0, window_width, fitting_height(max_line_number))    self.z = 200    self.arrows_visible = false    @lines = []    @num_wait = 0    refresh  end  #--------------------------------------------------------------------------  # * Free  #--------------------------------------------------------------------------  def dispose    super  end  #--------------------------------------------------------------------------  # * Get Window Height  #--------------------------------------------------------------------------  def window_height    fitting_height([line_number, 1].max)  end  #--------------------------------------------------------------------------  # * Refresh  #--------------------------------------------------------------------------  def refresh    self.visible = line_number != 0    contents.clear    self.height = window_height    @lines.size.times {|i| draw_line(i) }  endend
Oh and finally, based on your screenshot, you might consider turning off the font outline if you're going to be using a dark font. This is done by adding

Code:
Font.default_outline = false
to Main before the rgss_main line.
For the fourth question, you only need to do the following :

- Open the script editor.

- Look for Window_BattleLog

- Go to line 195 and change the the message speed there. Higher number is slower.

I doubt that you need the Luna Engine for this since it mostly deals with GUI.

No harm in asking in the Luna Engine Boards, though.
class Sprite_Battler < Sprite_Base#--------------------------------------------------------------------------# * Update Collapse Effect#--------------------------------------------------------------------------def update_collapseself.blend_type = 1self.color.set(255, 128, 128, 128) #set color here (R, G, B, Opacity)self.opacity = 256 - (48 - @effect_duration) * 6endend 
I changed it at

 [SIZE=12.222222328186px]self[/SIZE][SIZE=12.222222328186px].[/SIZE][SIZE=12.222222328186px]color[/SIZE][SIZE=12.222222328186px].[/SIZE][SIZE=12.222222328186px]set[/SIZE][SIZE=12.222222328186px]([/SIZE][SIZE=12.222222328186px]250[/SIZE][SIZE=12.222222328186px],[/SIZE][SIZE=12.222222328186px] [/SIZE][SIZE=12.222222328186px]0[/SIZE][SIZE=12.222222328186px],[/SIZE][SIZE=12.222222328186px] [/SIZE][SIZE=12.222222328186px]0[/SIZE][SIZE=12.222222328186px],[/SIZE][SIZE=12.222222328186px] [/SIZE][SIZE=12.222222328186px]128[/SIZE][SIZE=12.222222328186px])[/SIZE]

and it did had a problem to me.

That's why I didn't posted that.

It flashes red then turns white and fades out.

Can it flash red then then fade out as red that goes black for instance?

If yes how?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
It flashes red then turns white and fades out.

Can it flash red then then fade out as red that goes black for instance?

If yes how?
It's not really fading to white. That's just the nature of the "addition" blend type. You could start with changing the blend type to 0 (normal) and then play with changing the color based on the effect duration. For example:

Code:
class Sprite_Battler < Sprite_Base  #--------------------------------------------------------------------------  # * Update Collapse Effect  #--------------------------------------------------------------------------  def update_collapse    self.blend_type = 0    self.color.set(256 - (48 - @effect_duration) * 6, 0, 0, 128)    self.opacity = 256 - (48 - @effect_duration) * 6  endend
Oh wow, this topic kind of exploded. Okay let's see here...

This should all be relatively easy. I'm pretty sure I accomplished the first one, and possibly the last one, when I worked on a low-color game as well. Just give me a little bit.

A couple questions though:
-Are you using any battle-related scripts or is it all default?
-For point 3, do you still want the fight/escape window to appear before actions?
-Also point 3, do you want said actions menu to be visible when actions are taking place?
-For point 4, the way I did it in the past was to have the length of time it displays dependent on the amount of text it needs to display. So something like "Ralph calls upon the heavens to smite his enemy and bring peace to the world" is on the screen for considerably more time than "Ulrika punches the bear"

Here's the solution for the first two for now:

Spoiler
Change the basic collapse colorclass Sprite_Battler < Sprite_Base #-------------------------------------------------------------------------- # * Update Collapse Effect #-------------------------------------------------------------------------- def update_collapse self.blend_type = 1 self.color.set(255, 128, 128, 128) #set color here (R, G, B, Opacity) self.opacity = 256 - (48 - @effect_duration) * 6 endendChange the battle log to use a regular windowskin
Code:
class Window_BattleLog < Window_Selectable  #--------------------------------------------------------------------------  # * Object Initialization  #--------------------------------------------------------------------------  def initialize    super(0, 0, window_width, fitting_height(max_line_number))    self.z = 200    self.arrows_visible = false    @lines = []    @num_wait = 0    refresh  end  #--------------------------------------------------------------------------  # * Free  #--------------------------------------------------------------------------  def dispose    super  end  #--------------------------------------------------------------------------  # * Get Window Height  #--------------------------------------------------------------------------  def window_height    fitting_height([line_number, 1].max)  end  #--------------------------------------------------------------------------  # * Refresh  #--------------------------------------------------------------------------  def refresh    self.visible = line_number != 0    contents.clear    self.height = window_height    @lines.size.times {|i| draw_line(i) }  endend
Spoiler
Oh and finally, based on your screenshot, you might consider turning off the font outline if you're going to be using a dark font. This is done by adding
Code:
Font.default_outline = false
to Main before the rgss_main line.
-Are you using any battle-related scripts or is it all default?

I'm using the following:

Yanfly Battle Command List

Yanfly Steal Item

Yanfly Anti-Fail Message

No custom battle systems though, not even Yanfly's.

-For point 3, do you still want the fight/escape window to appear before actions?

Yes.

-Also point 3, do you want said actions menu to be visible when actions are taking place?

I think I would prefer for the action selection menu to vanish when actions are taking place, but without the other menus moving around.

The other things you did worked great 🙂

Though I ended up keeping the font border, because it caused the HP/MP displays in the menu to blend in with the bars due to the lack of color variance.

For the fourth question, you only need to do the following :

- Open the script editor.

- Look for Window_BattleLog

- Go to line 195 and change the the message speed there. Higher number is slower.

I doubt that you need the Luna Engine for this since it mostly deals with GUI.

No harm in asking in the Luna Engine Boards, though.
This worked great too 🙂

I have another related question, if you don't mind.

As you can plainly see, this game is supposed to be retro-styled, but... the framerate in RPG Maker is pretty fast. Is it possible to actually limit the framerate to something slower that looks more gameboy-like. Mainly I'm concerned about the speed at which the menus are drawn.
In case you don't want to touch the default scripts, simply place a new line in your script editor above main and enter the following script :

Graphics.frame_rate = 30

I think 30 is the optimum for gameboy like frame rate, but you can experiment with the number if you like.
Something like this for the third point then?

Spoiler
class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # * Update Information Display Viewport #-------------------------------------------------------------------------- def update_info_viewport end #-------------------------------------------------------------------------- # * Create Information Display Viewport #-------------------------------------------------------------------------- alias littlepaw_gb_create_info_viewport create_info_viewport def create_info_viewport littlepaw_gb_create_info_viewport @info_viewport.ox = 128 end #-------------------------------------------------------------------------- # * Create Party Commands Window #-------------------------------------------------------------------------- alias littlepaw_gb_create_party_command_window create_party_command_window def create_party_command_window littlepaw_gb_create_party_command_window @party_command_window.x = Graphics.width endend
Or did you want to keep the two command windows on either side and shrink the actor status area? That would make it a pretty small area to work with. Too small, in fact, if you are using state icons. But that would probably go something like this:

Spoiler
Code:
class Window_BattleStatus < Window_Selectable  #--------------------------------------------------------------------------  # * Get Window Width  #--------------------------------------------------------------------------  def window_width    Graphics.width - 256  end  #--------------------------------------------------------------------------  # * Get Gauge Area Width  #--------------------------------------------------------------------------  def gauge_area_width    return 162  end  #--------------------------------------------------------------------------  # * Draw Basic Area  #--------------------------------------------------------------------------  def draw_basic_area(rect, actor)    draw_actor_name(actor, rect.x + 0, rect.y, 50)    draw_actor_icons(actor, rect.x + 104, rect.y, rect.width - 54)  end  #--------------------------------------------------------------------------  # * Draw Gauge Area (without TP)  #--------------------------------------------------------------------------  def draw_gauge_area_without_tp(rect, actor)    draw_actor_hp(actor, rect.x + 0, rect.y, 76)    draw_actor_mp(actor, rect.x + 86,  rect.y, 76)  endendclass Scene_Battle < Scene_Base  #--------------------------------------------------------------------------  # * Update Information Display Viewport  #--------------------------------------------------------------------------  def update_info_viewport  end  #--------------------------------------------------------------------------  # * Create Information Display Viewport  #--------------------------------------------------------------------------  alias littlepaw_gb_create_info_viewport create_info_viewport  def create_info_viewport    littlepaw_gb_create_info_viewport    @info_viewport.ox = 0  end  #--------------------------------------------------------------------------  # * Create Actor Commands Window  #--------------------------------------------------------------------------  alias littlepaw_gb_create_actor_command_window create_actor_command_window  def create_actor_command_window    littlepaw_gb_create_actor_command_window    @actor_command_window.x = Graphics.width - @actor_command_window.width  endend
Something like this for the third point then?

Spoiler
class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # * Update Information Display Viewport #-------------------------------------------------------------------------- def update_info_viewport end #-------------------------------------------------------------------------- # * Create Information Display Viewport #-------------------------------------------------------------------------- alias littlepaw_gb_create_info_viewport create_info_viewport def create_info_viewport littlepaw_gb_create_info_viewport @info_viewport.ox = 128 end #-------------------------------------------------------------------------- # * Create Party Commands Window #-------------------------------------------------------------------------- alias littlepaw_gb_create_party_command_window create_party_command_window def create_party_command_window littlepaw_gb_create_party_command_window @party_command_window.x = Graphics.width endend
Spoiler
Or did you want to keep the two command windows on either side and shrink the actor status area? That would make it a pretty small area to work with. Too small, in fact, if you are using state icons. But that would probably go something like this:


class Window_BattleStatus < Window_Selectable #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width Graphics.width - 256 end #-------------------------------------------------------------------------- # * Get Gauge Area Width #-------------------------------------------------------------------------- def gauge_area_width return 162 end #-------------------------------------------------------------------------- # * Draw Basic Area #-------------------------------------------------------------------------- def draw_basic_area(rect, actor) draw_actor_name(actor, rect.x + 0, rect.y, 50) draw_actor_icons(actor, rect.x + 104, rect.y, rect.width - 54) end #-------------------------------------------------------------------------- # * Draw Gauge Area (without TP) #-------------------------------------------------------------------------- def draw_gauge_area_without_tp(rect, actor) draw_actor_hp(actor, rect.x + 0, rect.y, 76) draw_actor_mp(actor, rect.x + 86, rect.y, 76) endendclass Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # * Update Information Display Viewport #-------------------------------------------------------------------------- def update_info_viewport end #-------------------------------------------------------------------------- # * Create Information Display Viewport #-------------------------------------------------------------------------- alias littlepaw_gb_create_info_viewport create_info_viewport def create_info_viewport littlepaw_gb_create_info_viewport @info_viewport.ox = 0 end #-------------------------------------------------------------------------- # * Create Actor Commands Window #-------------------------------------------------------------------------- alias littlepaw_gb_create_actor_command_window create_actor_command_window def create_actor_command_window littlepaw_gb_create_actor_command_window @actor_command_window.x = Graphics.width - @actor_command_window.width endend

The first one is perfect, thanks 🙂

In case you don't want to touch the default scripts, simply place a new line in your script editor above main and enter the following script :

Graphics.frame_rate = 30

I think 30 is the optimum for gameboy like frame rate, but you can experiment with the number if you like.
Hmm... Visually it looks nice by setting it this way, but it makes everything actually PLAY slower as well. It doesn't just make the game look choppier, which was what I was going for. Any way to get my intended effect?
Oh and I have another question related to my existing questions.

Is it possible to cause the "Fade out" effect to be a specific color other than black? This includes transitions between battle, maps, loading the game, and the "Fade out" event command. Basically I want it to fade to a dark green color instead of black.

Original thread: https://forums.rpgmakerweb.com/threads/4-questions-how-to-change-battler-death-color-and-3-window-related-questions.35179/