Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin =========================================================================
- Dekita's v1.0
- ★ Param Limit Breaker™ ★
- ================================================================================
- Script Information:
- ====================
- Simple script to allow for higher stats than normally allowed, e.g 1,000,000 hp
- use notetags in the class noteboxes to set different max tp limits for each class.
- ================================================================================
- FEATURES:
- ==========
- - Big Numbers ^_^
- ================================================================================
- ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
- ================================================================================
- 1. You must give credit to "Dekita"
- 2. You are NOT allowed to repost this script.(or modified versions)
- 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
- 4. You are NOT allowed to use this script for Commercial games.
- 5. ENJOY!
- "FINE PRINT"
- By using this script you hereby agree to the above terms and conditions,
- if any violation of the above terms occurs "legal action" may be taken.
- Not understanding the above terms and conditions does NOT mean that
- they do not apply to you.
- If you wish to discuss the terms and conditions in further detail you can
- contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
- ================================================================================
- History:
- =========
- D /M /Y
- 10/10/2o12 - Started and finished.
- ================================================================================
- INSTRUCTIONS:
- ==============
- Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
- ================================================================================
- Script Calls:
- ==============
- =end
- module Dekita__Stat_Limits
- MHP_Default_Limit = 9999
- MHP_Notetag = /<mhp limit: (.*)>/i
- MMP_Default_Limit = 9999
- MMP_Notetag = /<mmp limit: (.*)>/i
- ATK_Default_Limit = 50
- ATK_Notetag = /<atk limit: (.*)>/i
- DEF_Default_Limit = 50
- DEF_Notetag = /<def limit: (.*)>/i
- MAT_Default_Limit = 50
- MAT_Notetag = /<mat limit: (.*)>/i
- MDF_Default_Limit = 50
- MDF_Notetag = /<mdf limit: (.*)>/i
- AGI_Default_Limit = 50
- AGI_Notetag = /<agi limit: (.*)>/i
- LUK_Default_Limit = 50
- LUK_Notetag = /<luk limit: (.*)>/i
- # Do not remove this .
- p 'Loaded : DPBz - Param Limit Breaker'
- end # module Dekita__Character_Core
- #===============================================================================#
- # #
- # - CUSTOMISATION END - #
- # #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
- # YES?\.\. #
- # OMG, REALLY? #
- # WELL SLAP MY FACE AND CALL ME A DRAGON.\..\.. #
- # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
- #===============================================================================#
- $imported = {} if $imported.nil?
- $imported[:Dekita__Param_Limit_Breaker] = true
- #==============================================================================
- module DataManager
- #==============================================================================
- class <<self; alias load_database_stat_limits_DPBz load_database; end
- def self.load_database
- load_database_stat_limits_DPBz
- load_notetags_stat_limits_DPBz
- end
- def self.load_notetags_stat_limits_DPBz
- groups = [$data_classes]
- for group in groups
- for obj in group
- next if obj.nil?
- obj.load_notetags_stat_limits_DPBz
- end
- end
- end
- end # DataManager
- #==============================================================================
- class RPG::Class < RPG::BaseItem
- #==============================================================================
- attr_accessor :param_max_DPBz
- def load_notetags_stat_limits_DPBz
- @param_max_DPBz = [0] * 8
- @param_max_DPBz[0] = Dekita__Stat_Limits::MHP_Default_Limit
- @param_max_DPBz[1] = Dekita__Stat_Limits::MMP_Default_Limit
- @param_max_DPBz[2] = Dekita__Stat_Limits::ATK_Default_Limit
- @param_max_DPBz[3] = Dekita__Stat_Limits::DEF_Default_Limit
- @param_max_DPBz[4] = Dekita__Stat_Limits::MAT_Default_Limit
- @param_max_DPBz[5] = Dekita__Stat_Limits::MDF_Default_Limit
- @param_max_DPBz[6] = Dekita__Stat_Limits::AGI_Default_Limit
- @param_max_DPBz[7] = Dekita__Stat_Limits::LUK_Default_Limit
- self.note.split(/[\r\n]+/).each { |line|
- case line
- when Dekita__Stat_Limits::MHP_Notetag
- @param_max_DPBz[0] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max MHP Param Note's for #{@name.to_s}"
- when Dekita__Stat_Limits::MMP_Notetag
- @param_max_DPBz[1] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max MMP Param Note's for #{@name.to_s}"
- when Dekita__Stat_Limits::ATK_Notetag
- @param_max_DPBz[2] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max ATK Param Note's for #{@name.to_s}"
- when Dekita__Stat_Limits::DEF_Notetag
- @param_max_DPBz[3] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max DEF Param Note's for #{@name.to_s}"
- when Dekita__Stat_Limits::MAT_Notetag
- @param_max_DPBz[4] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max MAT Param Note's for #{@name.to_s}"
- when Dekita__Stat_Limits::MDF_Notetag
- @param_max_DPBz[5] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max MDF Param Note's for #{@name.to_s}"
- when Dekita__Stat_Limits::AGI_Notetag
- @param_max_DPBz[6] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max AGI Param Note's for #{@name.to_s}"
- when Dekita__Stat_Limits::LUK_Notetag
- @param_max_DPBz[7] = $1.to_i
- p "Loaded : DPBz - Stat Limits - Max LUK Param Note's for #{@name.to_s}"
- end
- } # self.note.split
- end
- end # class RPG::Class < RPG::BaseItem
- #==============================================================================
- class Game_Actor < Game_Battler
- #==============================================================================
- def param_max(param_id)
- return self.class.param_max_DPBz[0] if param_id == 0 # MHP
- return self.class.param_max_DPBz[1] if param_id == 1 # MMP
- return self.class.param_max_DPBz[2] if param_id == 2 # ATK
- return self.class.param_max_DPBz[3] if param_id == 3 # DEF
- return self.class.param_max_DPBz[4] if param_id == 4 # MAT
- return self.class.param_max_DPBz[5] if param_id == 5 # MDF
- return self.class.param_max_DPBz[6] if param_id == 6 # AGI
- return self.class.param_max_DPBz[7] if param_id == 7 # LUK
- return super
- end
- end # class Game_Actor < Game_Battler
- #===============================================================================#
- # - SCRIPT END - #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement