YEA-Victory Aftermath - Change Windowkin only victory

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
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:

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
 
Last edited by a moderator:

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
153
First Language
Serbian
Primarily Uses
N/A
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.
 
Last edited by a moderator:

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
Hi @KockaAdmiralac_FINALLY thank you for your reply...

I inserted the script, but unfortunately not working çç
I continue to display the window by default...
 

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
153
First Language
Serbian
Primarily Uses
N/A
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?
 
Last edited by a moderator:

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
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...
 

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
153
First Language
Serbian
Primarily Uses
N/A
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
 
Last edited by a moderator:

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
With this line: $game_message.background = 2

Works!

Can you explaine me how does it works?
 

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
153
First Language
Serbian
Primarily Uses
N/A
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.
 

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
Thanks for the explanation, you've been very kind!

:p
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top