Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
kokura

[XP] Script Petition - Change Battle Windowskin

Question

2 answers to this question

Recommended Posts

  • 0

I have been working on this, I have just found a small delay that I'm working on. ^_^ no worries!

 

EDIT:

 

Ok, It's done. ^_^ Works with the default battle system BEAUTIFULLY.

 

 



#===============================================================================
#  Instructions:
#-------------------------------------------------------------------------------
#
#  In the module of this script, put the filename of your base windowskin in
#  Def_Skin = ""
#
#  and your battle windowskin in
#  Battle_Skin = ""
#
#===============================================================================


module WindowSkin

 Def_Skin = "001-Blue01"

 Battle_Skin = "test"

end

module Graphics
 class << self
   if @lizzie_cbw_stack.nil?
  alias_method :lizzie_cbw_update, :update
  @lizzie_cbw_stack = true
   end
   def update
  lizzie_cbw_update
  if $scene != self
    check_scene
  end
   end

   def check_scene
  win = WindowSkin
  if $scene.is_a?(Scene_Battle)
    $data_system.windowskin_name = win::Battle_Skin
  else
    $data_system.windowskin_name = win::Def_Skin
  end
   end

 end
end



class Window_BattleStatus < Window_Base

 alias lizzie_cbw_battlestatus_init initialize

 def initialize
   lizzie_cbw_battlestatus_init
   win = WindowSkin
   self.windowskin = RPG::Cache.windowskin(win::Battle_Skin)
 end
end



Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...