RPG Maker Forums

Can someone please redirect me or help me how to make this script work?

The Script:

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# RGSS3 - Bounce Window# Author: Soulpour777# Version 1.0# Web URL: infinitytears.wordpress.com# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# Description: Creates a bouncing effect on your windows. It would bounce# except if its a message.# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=module Soulpour module Bounce # If you want to show map names, the switch must be true. Which ID of the # switch should hold the map name? Restore_Map_Switch = 1 # Original Opacity of the Window. Original_Opacity = 0 # Opacity of the Window Contents when showing them. Content_Opacity = 255 endendclass Window_Base < Window include Soulpour::Bounce alias :soul_bounce_the_windows_for_me_but_initialize_first :initialize alias :soul_bounce_the_windows_for_me_but_update_first :update #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(x, y, width, height) soul_bounce_the_windows_for_me_but_initialize_first(x, y, width, height) @bounce_effect_stop = (self.is_a?(Window_Message) or $game_party.in_battle) self.opacity = self.contents_opacity = Original_Opacity unless @bounce_effect_stop end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update soul_bounce_the_windows_for_me_but_update_first unless @bounce_effect_stop if @opening @bounce_effect_stop = true self.opacity = self.contents_opacity = Content_Opacity else unless @bounce_effect_start @bounce_effect_start = true @bounce_effect_by = self.y @bounce_effect_sy, @bounce_effect_vy = rand(32768) + 65536, 0 end self.y = @bounce_effect_by - ((@bounce_effect_sy -= (@bounce_effect_vy += 128)) >> 10) if self.y > @bounce_effect_by @bounce_effect_sy, @bounce_effect_vy = 0, (0 - @bounce_effect_vy) / 2 self.y = @bounce_effect_by end self.opacity = self.contents_opacity = self.opacity + 16 end end end endclass Scene_Map < Scene_Base include Soulpour::Bounce #-------------------------------------------------------------------------- # * Create Map Name Window #-------------------------------------------------------------------------- def create_location_window @map_name_window = Window_MapName.new if $game_switches[Restore_Map_Switch] endend 
The Problem:

I am using this script and there seems to be no problem at all until I go to the battle. You can see a large window up there which I suppose is the log of battle messages. Can someone please help me correct or check the script of what I might be missing wrong?

Screenshot of the Problem:



Solutions I am after:

I want the bounce not to happen at all when I am inside the battle. Thank you for anyone who would look onto this script.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top