YEA-Victory Aftermath - Change Windowkin only victory

Hi guys, I vave a problem with this script...

I would like to have a customized windowkin when the character wins...
I would eliminate windowskin here:

Spoiler
SOLVED

I tried to do a mini script, but not working:module YEA::VICTORY_AFTERMATH WINDOWSKIN = "Trasparent" end#==============================================================================# ¡ Window_VictoryTitle#==============================================================================class Window_VictoryTitle < Window_Base #-------------------------------------------------------------------------- # initialize #-------------------------------------------------------------------------- alias sixth_ini12111 initialize def initialize sixth_ini12111 self.windowskin = Cache.system(YEA::VICTORY_AFTERMATH::WINDOWSKIN) endendTips?

miha_debug.png
I accidentally have this script in my project ( but some people may be angry that you didn't post the link to the script )

module YEA::VICTORY_AFTERMATHWINDOWSKIN = "Trasparent"end#==============================================================================# ¡ Window_VictoryTitle#==============================================================================class Window_VictoryTitle < Window_Base  #--------------------------------------------------------------------------  # initialize  #--------------------------------------------------------------------------  def initialize    super(0, 0, Graphics.width, fitting_height(1))    self.z = 200    self.openness = 0    self.windowskin = Cache.system(YEA::VICTORY_AFTERMATH::WINDOWSKIN)  endend If you want to remove the messages from Victory Aftermath (which I did...at some point...), you can follow these steps :

1. Enter the Script Editor (F11)

2. Enter the Full Search (CTRL + SHIFT + F)

3. Enter "$game_message.add" (without quotation marks) and uncheck all the options below.

4. Click Search

5. In the list that appears, find the first match that is in the Victory Aftermath script

6. Click on it.

7. Delete the line on which that match appears

8. Do steps 2-7 until all matches in the Victory Aftermath script are gone

At least I think so.
Hi @KockaAdmiralac_FINALLY thank you for your reply...

I inserted the script, but unfortunately not working çç
I continue to display the window by default...
I don't know why it is not working.

I tried it on my script, and it worked.

Maybe I misunderstood what you want?

Do you want no windowskin at all?

If it's that, add "self.opacity = 0"

And what did not work?

Changing windowskin or not displaying messages?
I tried adding:
"self.opacity = 0"

But has not worked...
I would not want to see the windowskin when a character talks to end the battle...
On which specific window you do NOT want the windowskin?

On the message window?

If it is that, then do the Full Search as shown before, and before every $game_message.add line add "$game_message.background = 2", but do not delete the $game_message.add line
With this line: $game_message.background = 2

Works!

Can you explaine me how does it works?
Well, do you know how Show Text command works?

In the Game_Interpreter class there are all of the event commands you can add to an event.

Show Text command is the command_101 method.

So, if you look at that command, you may see @params somewhere.

@params are the parameters of the event commands.

I think that @params[0] is the text, @params[1] is the position, and @params[2] is the background.

@params[2] can have three values :

0 - If it is normal background

1 - If it is Dim Background

2 - If the background is transparent.

So, maybe you can find a line : $game_message.background = @params[2]

That means you can change the background of a message by accessing $game_message.background

And now, in the Window_Message (the message window class) in the update_background you will find @background = $game_message.background

So, if the @background is 0, the window is normal.

If the @background is 2, the window will do "self.opacity = 0" which will hide the windowskin

And if the @background is 1, the window will make a new Sprite that is the dimmed background, and hide the windowskin.

So that's it.
Thanks for the explanation, you've been very kind!

😛

Original thread: https://forums.rpgmakerweb.com/threads/yea-victory-aftermath-change-windowkin-only-victory.43185/