kokura 0 Report post Posted January 20, 2013 Hi =) I would like to ask for a like piece of code which would allow me to show a different windowskin from the Graphic folder when in battle. Thanks beforehand =) Share this post Link to post Share on other sites
0 Leon 55 Report post Posted January 21, 2013 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
0 kokura 0 Report post Posted January 21, 2013 Awesome! Thank you very much ^^ Share this post Link to post Share on other sites
Hi =) I would like to ask for a like piece of code which would allow me to show a different windowskin from the Graphic folder when in battle. Thanks beforehand =)
Share this post
Link to post
Share on other sites