Level Up Event Script
#8
Or you can try this:

Code:
#==============================================================================
# ? Scene_Map
#------------------------------------------------------------------------------
#==============================================================================
class Scene_Map
  #--------------------------------------------------------------------------
  #
  #--------------------------------------------------------------------------
  alias main_level_up main
  def main
    @level_up_window = Window_Level_Up.new
    #original call
    main_level_up
    @level_up_window.dispose
  end

  #--------------------------------------------------------------------------
  #
  #--------------------------------------------------------------------------
  alias update_level_up update
  def update
    @level_up_window.update
    # original call
    update_level_up
  end
end

#==============================================================================
# ? Window_Level_Up
#------------------------------------------------------------------------------
#==============================================================================

class Window_Level_Up < Window_Base
  #--------------------------------------------------------------------------
  #
  #--------------------------------------------------------------------------
  def initialize
    super(160, 416, 320, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.visible = false
    @wait_count = 0
  end
  
  #--------------------------------------------------------------------------
  #
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.draw_text(self.contents.rect, $game_party.actors[0].name +
      " reached level " + $game_party.actors[0].level.to_s, 1)
  end

  #--------------------------------------------------------------------------
  #
  #--------------------------------------------------------------------------
  def update
    if $game_system.old_level < $game_party.actors[0].level
      $game_system.old_level = $game_party.actors[0].level
      refresh
      # Play decision SE
      $game_system.se_play($data_system.decision_se)
      self.visible = true
      self.opacity = 255
      self.contents_opacity = 255
      @wait_count = 40
    else
      if @wait_count > 0
        @wait_count -= 1
      else
        if self.opacity > 0
          self.opacity -= 4
          self.contents_opacity -= 4
        else
          self.visible = false
        end
      end
    end  
  end
end

#==============================================================================
# ? Game_System
#------------------------------------------------------------------------------
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  #
  #--------------------------------------------------------------------------
  attr_accessor :old_level
  #--------------------------------------------------------------------------
  #
  #--------------------------------------------------------------------------
  alias initialize_level_up initialize
  def initialize
    @old_level = 1
    # original call
    initialize_level_up
  end
end
Reply }


Messages In This Thread
Level Up Event Script - by daojones - 04-05-2010, 08:47 AM
[Resolved] Level Up Event Script - by deValdr - 04-05-2010, 02:35 PM
[Resolved] Level Up Event Script - by PK8 - 04-05-2010, 03:30 PM
[Resolved] Level Up Event Script - by daojones - 04-05-2010, 11:50 PM
[Resolved] Level Up Event Script - by daojones - 04-06-2010, 04:14 PM
[Resolved] Level Up Event Script - by fgsfds - 04-06-2010, 04:24 PM
[Resolved] Level Up Event Script - by Charlie Fleed - 04-07-2010, 08:04 AM
[Resolved] Level Up Event Script - by daojones - 04-09-2010, 06:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 2 62 Yesterday, 03:09 AM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 4,603 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Change event graphic? Bennerdeben 2 5,068 11-15-2020, 10:13 AM
Last Post: Bennerdeben
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 15,839 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 16,159 04-28-2020, 04:06 PM
Last Post: Whisper
   EXP gain even at max level Lord Vectra 4 6,308 02-12-2020, 06:01 AM
Last Post: Lord Vectra
   Skill Cooldown script Fenriswolf 11 16,438 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 8,530 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 10,210 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 9,852 05-31-2017, 05:10 AM
Last Post: Zachariad



Users browsing this thread: 1 Guest(s)