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,023
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
3,539
Reaction score
855
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
22,510
Reaction score
12,013
First Language
English
Primarily Uses
RMVXA
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 Posts

Latest Profile Posts

yRMekcF.gif


Run, <null> run!
(sprite got butchered a bit while making gif file...)
WOOP WOOP!
NEW CHARACTER ALERT!!!
Please, welcome to the stage...
Ramona Albright.png

Ramona Albright! A 20-year old World Key Guardian in training (More about the WKG's soon!), She is very impulsive, which leads us to the problem of the game. OOF. Kinda wanna wait till you know how to use the friggin World Key, huh?!
Bust sketch here!
IMG_20220124_110105.jpg
Little-by-little, keep improving your projects. That's how you finish them! ;)
Now it's official: My first RPG Maker game released on Steam will be released this year! I am so glad for this achievement and I am so happy to see a lot of gamedevs like me here working on what we love!
Mais informações no Post.png
Check out my MZ thread for 2 new waterplant edits and my MZVind water autotiles now without ground/cliffs, so you can put them on your own ground-tiles. Have fun!

Forum statistics

Threads
118,665
Messages
1,117,697
Members
155,771
Latest member
finalfire
Top