The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Scripts Database => Topic started by: game_guy on February 11, 2009, 04:39:08 AM

Title: Enemy Stat Breaker
Post by: game_guy on February 11, 2009, 04:39:08 AM
Enemy Stat Breaker
Version: 1.0
Type: Misc Add-On
Key Term: Misc Add-On


Introduction

Tired of the annoying editor limit of 999 for the stats and 9999 for hp and sp for enemies? Deal with it no more! I've always wanted to make a final boss with more than 9999 hp but it was never possible with the editor limit. I no longer have to deal with it!


Features



Screenshots

[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fi307.photobucket.com%2Falbums%2Fnn318%2Fbahumat27%2Fenemy.jpg&hash=2df0db8e6c6a0070d2c8573dabf7236dc6e87aa7)[/spoiler]
[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fi307.photobucket.com%2Falbums%2Fnn318%2Fbahumat27%2Fenemy2.jpg&hash=024745ab79387da03867fdcadf2d68f64e4a548f)[/spoiler]


Demo

http://www.savefile.com/files/1981582 <= Also includes Max Modifier script and equipment stat breaker


Script

[SPOILER]
#==============================================================================#
#                    Game Guy's Enemy Stat Breaker                             #
#==============================================================================#
# This script breaks the enemy's 999 stat limit. All you do is run             
# This in a script call command.
# $scene = EnemyStatBreak.new
#
# There is a little editing involved. If you want to add an enemy add this under
# the line # Edit Enemies Here
# then add this
# $data_enemies[x].y = z
# X = the id of the enemies
# Y = the stat. Choices for this are str, int, agi, dex, maxhp, maxsp, atk, mdef, pdef, and eva
# Z = the number
#
# Example. You want enemy 25 HP to be 12043 and stregnth to be 1220
# You would enter this below the line
# $data_enemies[25].str = 1220
# $data_enemies[25].maxhp = 12043
#
# You have to enter each monster down more than once if you plan on bypassing more than one stat
#
# I used Blizz's Enemy Stats to show Enemy HP
# I used Blizz's Bestiary to show Enemy Strength to prove I can bypass the editor

class EnemyStatBreaker
  def main
    # Edit Enemies Here
    $data_enemies[1].maxhp = 100000
    $data_enemies[1].str = 1000
    # End Editing Enemies
    @map = Spriteset_Map.new
    loop do
      Graphics.update
      Input.update
      close
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @map.dispose
  end
  def close
    $scene = Scene_Map.new
  end
end

[/SPOILER]


Instructions

Go to line # Edit Enemies Here and add a new line below it. Put this in the line
$data_enemies[x].y = z
X = Enemy ID
Y = Stat Choices are str, dex, agi, int, mdef, pdef, atk
Z = Number


Compatibility

Not compatible with anything else that alters the enemy's stats.


Credits and Thanks



Author's Notes

Post any bugs you find here please.