RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

DT's Level up +

Started by DoctorTodd, April 27, 2012, 12:18:47 AM

0 Members and 1 Guest are viewing this topic.

DoctorTodd

DT's Level up +
Version: 1.0.1
Author: DoctorTodd
Date: 4/26/2012

Version History




  • Version 1.0.1  2012/26/22 - Alias fix
  • Version 1.0.0  2012/26/22 - Original Release

Planned Future Versions


  • None planned, you tell me.

Description



Gives the option to play a sound effect, ME, and/or animation when you level up.

Features


  • Option for animation
  • Option for Sound effect
  • Option for ME

Screenshots

I can't really show a picture, just try the script.

Instructions

Paste above main.

Script



#===============================================================================
#
# DT's Level up +
# Author: DoctorTodd
# Date (04/26/2012)
# Version: (1.0.1) (VXA/VX)
# Level: (Simple/Medium)
# Email: Todd@beacongames.com
#
#===============================================================================
#
# Description: Gives the option to play a sound effect, ME, and/or animation
# when you level up.
#
# Credits: Me (DoctorTodd)
#
#===============================================================================
#
# Instructions
# Paste above main.
#
#===============================================================================
#
# Contact me for commercial use, other wise just credit me and don't repost
# without my permission.
#
#===============================================================================
#
# Editing begins 39 and ends on 46.
#
#===============================================================================
module DTLUP

  #Name of the ME to play.
  ME = "Fanfare2"

  #Name of the SE to play.
  SE = "Starlight"

  #ID of the animation to play.
  ANIMATION = 110

end
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles actors. It is used within the Game_Actors class
# ($game_actors) and is also referenced from the Game_Party class ($game_party).
#==============================================================================
class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Level Up
  #--------------------------------------------------------------------------
  alias dt_vxa_level_up level_up
  def level_up
    $game_player.animation_id = DTLUP::ANIMATION
    Audio.se_play("Audio/SE/" + DTLUP::SE, 100, 100)
    Audio.me_play("Audio/ME/" + DTLUP::ME, 100, 100)
    dt_vxa_level_up
  end


Credit




  • DoctorTodd

Thanks


  • Thanks to Modern Algebra who helped me with the alias.

Support



Post here for quickest support, or send an email to Todd@beacongames.com.

Known Compatibility Issues

None known of.

Demo



I don't think it's really necessary but let me know if you want one.

Author's Notes



I realized that I was still yet to alias or write a script that didn't involve windows or scenes.

Restrictions

Check header of script.