Serpentofshadow
Member
SoS Level-up Display
Version: 1.0
Introduction
I created a simple level-up display that will show HP, MP, ATK, DEF, SPI, and AGI stat increases when leveling up.
Features
Screenshots
Screenshot1
Screenshot2
Demo
None currently
Script
Instructions
Just insert in the Materials section above main (like any other custom script).
FAQ
n/a
Compatibility
The only thing this should conflict with is any other level-up displaying scripts.
Credits and Thanks
n/a
Author's Notes
n/a
Terms and Conditions
Free for non-commercial use so long as I get credit. For commercial use, please e-mail me.
Version: 1.0
Introduction
I created a simple level-up display that will show HP, MP, ATK, DEF, SPI, and AGI stat increases when leveling up.
Features
- Displays all stat increases upon leveling
- Works with most custom battle systems
- Does not currently work when leveling outside of combat
Screenshots
Screenshot1
Screenshot2
Demo
None currently
Script
Code:
#===================================================
# SoS Level-Up Display
# by: Serpent of Shadow
#
# Version 1.0
#===================================================
Â
module Vocab
 LevelUp2    = "HP increases by %s!"
 LevelUp3    = "MP increases by %s!"
 LevelUp4    = "ATK increases by %s!"
 LevelUp5    = "DEF increases by %s!"
 LevelUp6    = "SPI increases by %s!"
 LevelUp7    = "AGI increases by %s!"
end
Â
class Game_Actor
 #--------------------------------------------------------------------------
 # * Get HP Difference
 #--------------------------------------------------------------------------
 def dif_hp
  n = actor.parameters[0, @level] - actor.parameters[0, @level-1]
  return n
 end
Â
 #--------------------------------------------------------------------------
 # * Get MP Difference
 #--------------------------------------------------------------------------
 def dif_mp
  n = actor.parameters[1, @level] - actor.parameters[1, @level-1]
  return n
 end
Â
 #--------------------------------------------------------------------------
 # * Get ATK Difference
 #--------------------------------------------------------------------------
 def dif_atk
  n = actor.parameters[2, @level] - actor.parameters[2, @level-1]
  return n
 end
Â
 #--------------------------------------------------------------------------
 # * Get DEF Difference
 #--------------------------------------------------------------------------
 def dif_def
  n = actor.parameters[3, @level] - actor.parameters[3, @level-1]
  return n
 end
Â
 #--------------------------------------------------------------------------
 # * Get SPI Difference
 #--------------------------------------------------------------------------
 def dif_spi
  n = actor.parameters[4, @level] - actor.parameters[4, @level-1]
  return n
 end
Â
 #--------------------------------------------------------------------------
 # * Get AGI Difference
 #--------------------------------------------------------------------------
 def dif_agi
  n = actor.parameters[5, @level] - actor.parameters[5, @level-1]
  return n
 end
Â
 #--------------------------------------------------------------------------
 # * Show Level Up Message
 #   new_skills : Array of newly learned skills
 #--------------------------------------------------------------------------
 def display_level_up(new_skills)
  $game_message.new_page
  #Display the Level achieved
  text = sprintf(Vocab::LevelUp, @name, Vocab::level, @level)
  $game_message.texts.push(text)
  #Dislay what skill was learned
  for skill in new_skills
   text = sprintf(Vocab::ObtainSkill, skill.name)
   $game_message.texts.push(text)
  end
 Â
  #Display HP gained
  text = sprintf(Vocab::LevelUp2, dif_hp)
  $game_message.texts.push(text)
  #Display MP gained
  text = sprintf(Vocab::LevelUp3, dif_mp)
  $game_message.texts.push(text)
  #New Page
  $game_message.new_page
  #Display ATK gained
  text = sprintf(Vocab::LevelUp4, dif_atk)
  $game_message.texts.push(text)
  #Display DEF gained
  text = sprintf(Vocab::LevelUp5, dif_def)
  $game_message.texts.push(text)
  #Display SPI gained
  text = sprintf(Vocab::LevelUp6, dif_spi)
  $game_message.texts.push(text)
  #Display AGI gained
  text = sprintf(Vocab::LevelUp7, dif_agi)
  $game_message.texts.push(text)
 Â
 end
end
Instructions
Just insert in the Materials section above main (like any other custom script).
FAQ
n/a
Compatibility
The only thing this should conflict with is any other level-up displaying scripts.
Credits and Thanks
n/a
Author's Notes
n/a
Terms and Conditions
Free for non-commercial use so long as I get credit. For commercial use, please e-mail me.