Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin =========================================================================
- Dekita's v1.0
- ★ Level Limit Breaker™ ★
- ================================================================================
- Script Information:
- ====================
- This script allows for a higher lvl than 99
- NOTE: The biggest problem in rpg vxa regarding level limit breaker is this...
- there is no way to determine the exp gain for levels above 99, therefor this
- script requires *any* Exp Growth script, in order to prodive required exp
- amounts for upto(and above) lvl 100.
- (if you want more than lv l00 you will have to add the exp requirements manually).
- I have written two seperate scripts for exp growth calculations.
- Pokémon Exp Growth && Perfect EXP Curve
- Both can be found on my blog.
- ANOTHER_NOTE: You will also need a method of saving actor data into your save
- file (vx ace doesnt save it if above level 99)
- I have written Two Snippets to save actor data into save files...
- both can be found on my blog under "snippets"
- The order ihave them in my project is ...
- - Pokemon Exp Growth,
- - This Script,
- - Save Data Snippet.
- ================================================================================
- ★☆★☆★☆★☆★☆★☆★☆★ 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
- 16/11/2o12 - started and finished,
- ================================================================================
- Known Bugs:
- ============
- N/A
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- If a new bug is found please contact me at
- http://dekitarpg.wordpress.com/
- ================================================================================
- INSTRUCTIONS:
- ==============
- Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
- Place this script above ~SAVE POKEMON DATA
- ================================================================================
- Notetags: (actor)
- ==========
- <max level: X>
- X = the max lvl for that actor.
- =end #==========================================================================#
- module Pokémon_Level_Limit
- Default_Limit = 100
- # Please Note:
- # if the default max level in the database is 99
- # it will be replaced by the value above. e.g 100(default)
- end #####################
- # CUSTOMISATION END #
- #####################
- #===============================================================================#
- #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
- # #
- # http://dekitarpg.wordpress.com/ #
- # #
- #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
- #===============================================================================#
- # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
- # YES?\.\. #
- # OMG, REALLY? \| #
- # WELL SLAP MY FACE AND CALL ME A DITTO.\..\.. #
- # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
- #===============================================================================#
- $imported = {} if $imported.nil?
- $imported[:Dekita__Level_Limit_Breaker] = true
- #==============================================================================
- module DataManager
- #==============================================================================
- class <<self; alias load_database_level_limit load_database; end
- def self.load_database
- load_database_level_limit
- load_notetags_level_limit
- end
- def self.load_notetags_level_limit
- groups = [$data_actors]
- for group in groups
- for obj in group
- next if obj.nil?
- obj.load_notetags_level_limit
- end
- end
- end
- end # DataManager
- #==============================================================================
- class RPG::Actor < RPG::BaseItem
- #==============================================================================
- def load_notetags_level_limit
- @max_level = Pokémon_Level_Limit::Default_Limit if @max_level == 99
- self.note.split(/[\r\n]+/).each { |line|
- case line
- when /<max level: (.*)>/i
- @max_level += $1.to_f
- #---
- end
- } # self.note.split
- #---
- end
- end # RPG::Actor < RPG::BaseItem
- #==============================================================================
- class Game_Actor < Game_Battler
- #==============================================================================
- attr_accessor :level_limit
- alias setupforlevellimitsGA setup
- def setup(actor_id)
- setupforlevellimitsGA(actor_id)
- @level_limit = actor.max_level
- end
- def max_level
- @level_limit
- end
- end
- #===============================================================================#
- # - SCRIPT END - #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement