[Ace] How to remove the window behind the battle status?

Hero_Claive

(Phoenix Ember)
Veteran
Joined
Jan 5, 2016
Messages
149
Reaction score
88
First Language
English
Primarily Uses
RMVXA
I've been at this for the past couple hours editing various parts in Window_BattleStatus, and I cannot find any solution to this. Essentially, I want to remove the background window on the battle status screen, leaving the gauges intact. I'm using a custom Battle HUD too, but frustratingly enough, it doesn't redefine the window in its code, so it looks like this:





There's a couple options I've tinkered with. One is simply making the window's opacity 0. Another option is defining a new windowskin to use for this class, which is just an edited file. The last option, the most cryptic to me, is simply removing the section where it specifies to draw the window. Does anybody know how to edit Window_BattleStatus to make any of these options work? I don't think the custom HUD I have has anything to do with it, so I'm trying to fix it as if the game were vanilla.


Thanks in advance to anyone who can help me!
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
If you have set the window's opacity to 0, and it still appears, than that custom HUD script indeed has something to do with it.


Executed methods won't stop working for no reason.


That custom HUD script you got may do any of the following things:


1. Completely replaces the default Window_BattleStatus.


2. Overwrites some method in the Window_BattleStatus class (more specifically, the initialize or update methods).


3. Does some other weird things in Scene_Battle (some scripters just like to clutter the scene with non-organized visual methods).


4. Maybe that's a custom background not related to the window? Although this is rather unlikely, but who knows, right? :p


Which HUD script are you using?
 

Hero_Claive

(Phoenix Ember)
Veteran
Joined
Jan 5, 2016
Messages
149
Reaction score
88
First Language
English
Primarily Uses
RMVXA
You're absolutely right. I just tried a blank project, adding in "self.opacity = 0" to a method in Window_BattleStatus, which actually worked! Doing the same thing did not work in my actual game, so I figured out it definitely is the HUD affecting it.


The HUD is Peachround's Battle System, he's a Japanese scripter. Here is the link to it, but it appears to be dead:  http://peachround.blog.fc2.com/blog-entry-12.html. This is the section of the script that overrides Window_BattleStatus:

#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
#  バトル画面で、パーティメンバーのステータスを表示するウィンドウです。
#==============================================================================

class Window_BattleStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● [エイリアス]:オブジェクト初期化
#--------------------------------------------------------------------------
alias :lnx11b_initialize :initialize
def initialize
unless $lnx_include[:lnx11bskin]
text = "LNX11b:Error! LNX11bskin が導入されていません。"
p text
msgbox text
exit
end
@sprite_viewport = Viewport.new
# 元のメソッドを呼ぶ
lnx11b_initialize
@sprite_viewport.z = self.z
end
#--------------------------------------------------------------------------
# ● [オーバーライド]解放
#--------------------------------------------------------------------------
def dispose
@sprite_viewport.dispose
dispose_status_sprites
super
end
#--------------------------------------------------------------------------
# ● [オーバーライド]:表示行数の取得
#--------------------------------------------------------------------------
def visible_line_number
return 4
end
#--------------------------------------------------------------------------
# ● [オーバーライド]:行の高さを取得
#--------------------------------------------------------------------------
def line_height
return 24 # ステートアイコン描画領域を確保
end
#--------------------------------------------------------------------------
# ● [オーバーライド]:フレーム更新
#--------------------------------------------------------------------------
def update
super
update_invisible
update_status_sprites
end
#--------------------------------------------------------------------------
# ● [再定義]:表示状態更新
#--------------------------------------------------------------------------
def update_invisible
@sprite_viewport.visible = !$game_party.status_invisible
end
#--------------------------------------------------------------------------
# ● [再定義]:リフレッシュ
#--------------------------------------------------------------------------
def refresh
set_xy
# ステータススプライトの作成
create_status_sprites
draw_all_items
end
#--------------------------------------------------------------------------
# ● [追加]:ステータススプライトの作成
#--------------------------------------------------------------------------
def create_status_sprites
return if @sprite != nil
@sprite = []
$game_party.battle_members.each_with_index do |actor, i|
@sprite = Spriteset_BattleStatus.new(actor, self, @sprite_viewport)
end
end
#--------------------------------------------------------------------------
# ● [追加]:ステータススプライトの解放
#--------------------------------------------------------------------------
def dispose_status_sprites
return unless @sprite
@sprite.each do |sprite|
sprite.dispose
end
@sprite = nil
end
#--------------------------------------------------------------------------
# ● [追加]:ステータススプライトの更新
#--------------------------------------------------------------------------
def update_status_sprites
return unless @sprite
@sprite.each {|sprite| sprite.update}
end
#--------------------------------------------------------------------------
# ● [再定義]:基本エリアの描画
#--------------------------------------------------------------------------
def draw_basic_area(rect, actor)

@sprite[actor.index].refresh
end
#--------------------------------------------------------------------------
# ● [再定義]:ゲージエリアの描画
#--------------------------------------------------------------------------
def draw_gauge_area(*args)
# 何もしない
end
#--------------------------------------------------------------------------
# ● [エイリアス]:内容の消去
#--------------------------------------------------------------------------
alias :lnx11b_all_clear :all_clear
def all_clear
# 元のメソッドを呼ぶ
lnx11b_all_clear
# ステータススプライトの解放
dispose_status_sprites
end
end






Tell me if you need the whole script or a demo altogether, as I can provide both. What you said about the custom background is interesting though, I never considered that... I'll keep an eye out for that.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
That code part doesn't seem to affect the opacity of the window itself. But it does require another script which is named as :lnx11bskin in the code, and that suggests that it has something to do with windowskins and possibly some other window related things.


If you could send me a demo with the scripts already setup, I could take a look at it for you.
 

Hero_Claive

(Phoenix Ember)
Veteran
Joined
Jan 5, 2016
Messages
149
Reaction score
88
First Language
English
Primarily Uses
RMVXA
I actually decided to go a different way with my project since I found a way better battle setup that compliments my game more. ^^"


Regardless, thanks for your responses! I'll be sure to reopen this if I happen to revisit the script.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top