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 for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi307.photobucket.com%2Falbums%2Fnn318%2Fbahumat27%2Fenemy.jpg&hash=f24de7b520be7f1a313c69b6ff72bf4ee61a2a20)
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi307.photobucket.com%2Falbums%2Fnn318%2Fbahumat27%2Fenemy2.jpg&hash=dbf25adcfdf3075c82be7c344026895e7b2cf0e1)

Demo

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

Script

Spoiler for:
Code: [Select]
#==============================================================================#
#                    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


Instructions

Go to line # Edit Enemies Here and add a new line below it. Put this in the line
Code: [Select]
$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.