Pastel_Panda

Villager
Member
Joined
Oct 29, 2018
Messages
13
Reaction score
12
First Language
English
Primarily Uses
RMVXA
So I'm trying to make a more retraux looking game with VXA, and I've been slowly but surely tweaking menus and the like to achieve such a look. However, I can't for the life of me figure out how to adjust the opacity of the combat log, nor the color. None of the code in Window_BattleLog seems to point to adjusting it. Is it some kind of actual image file that has to be edited, or am I looking in the wrong code altogether?

If it's possible to change them without really adding additional external scripts that would be really helpful, too; I want to try to keep the number of scripts as low as I can just to ensure it doesn't become a gargantuan mess of scripts that I can't remember how to use or figure out which script is conflicting where.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,693
Reaction score
3,031
First Language
Tagalog
Primarily Uses
RMVXA
Like other windows in the game, they base it off your Window.png file then apply their own opacities etc.

Try going to the Window_BattleLog's initialization method and maybe try adding either of this

Code:
self.opacity = your value
or
@contents.opacity = your value

Alternatively, you can make a new copy of Window.png and edit it with the opacity and color that you want, then save it with a different name (lets call it WindowB.png and put it on the same folder), then on your BattleLog initialization method, add this at the end

Code:
self.windowskin = Cache.system("WindowB.png")

You cant do it simply without adding anymore script (unless you already have a windowskin changing script in) since all windows use the same base file for their graphics.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,700
Reaction score
1,329
First Language
English
Primarily Uses
RMVXA
I think you missed the code you were looking for.
In Window_BattleLog line 149
Code:
  def back_color
    Color.new(0, 0, 0, back_opacity)
  end
  #--------------------------------------------------------------------------
  # * Get Background Opacity
  #--------------------------------------------------------------------------
  def back_opacity
    return 64
  end
As Engr. Adiktuzmiko says, adjusting the opacity will make the window show up all the time. To change that you would need to find a script if you want the battle log to only show up for the attacks. Or write it yourself.
 

Pastel_Panda

Villager
Member
Joined
Oct 29, 2018
Messages
13
Reaction score
12
First Language
English
Primarily Uses
RMVXA
@Roninator2 Your solution is exactly what I needed! I'm kind of a scripting idiot, so this is a little bit ambitious for me (I've done little practice things here and there but never actually tried tweaking scripts before), but I think I've got exactly what I need now. Many thanks to both of you, really!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
23,401
Reaction score
13,067
First Language
English
Primarily Uses
RMMZ
If your query is fully resolved, please Report your post and ask for the thread to be closed. Mods might not see a post, but they will see a Report.
 

Latest Threads

Latest Profile Posts

RE4make almost had me with their demo until I got to the dog stuck in a bear trap and realized that he was dead and could no longer be saved. Just not the kind of reimagining I'm interested in.
Here's some dudes that I'm drawing for Jimmy's Quest!
autredo.png
Autism Acceptance Month 2023!


Did this randomly in my free time, I guess today is a good day to show it.
If I were to not exaggerate, I would say that I have changed my damage formula about a million times by now. Give or take 1 or 2.

Forum statistics

Threads
130,019
Messages
1,207,069
Members
171,282
Latest member
lounesf13
Top