Advertisement
Dekita

llb

Jan 15th, 2013
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. =begin =========================================================================
  2. Dekita's v1.0
  3. ★ Level Limit Breaker™ ★
  4.  
  5. ================================================================================
  6. Script Information:
  7. ====================
  8. This script allows for a higher lvl than 99
  9.  
  10. NOTE: The biggest problem in rpg vxa regarding level limit breaker is this...
  11. there is no way to determine the exp gain for levels above 99, therefor this
  12. script requires *any* Exp Growth script, in order to prodive required exp
  13. amounts for upto(and above) lvl 100.
  14. (if you want more than lv l00 you will have to add the exp requirements manually).
  15.  
  16. I have written two seperate scripts for exp growth calculations.
  17. Pokémon Exp Growth && Perfect EXP Curve
  18. Both can be found on my blog.
  19.  
  20. ANOTHER_NOTE: You will also need a method of saving actor data into your save
  21. file (vx ace doesnt save it if above level 99)
  22. I have written Two Snippets to save actor data into save files...
  23. both can be found on my blog under "snippets"
  24.  
  25. The order ihave them in my project is ...
  26. - Pokemon Exp Growth,
  27. - This Script,
  28. - Save Data Snippet.
  29. ================================================================================
  30. ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  31. ================================================================================
  32. 1. You must give credit to "Dekita"
  33. 2. You are NOT allowed to repost this script.(or modified versions)
  34. 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
  35. 4. You are NOT allowed to use this script for Commercial games.
  36. 5. ENJOY!
  37.  
  38. "FINE PRINT"
  39. By using this script you hereby agree to the above terms and conditions,
  40. if any violation of the above terms occurs "legal action" may be taken.
  41. Not understanding the above terms and conditions does NOT mean that
  42. they do not apply to you.
  43. If you wish to discuss the terms and conditions in further detail you can
  44. contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
  45.  
  46. ================================================================================
  47. History:
  48. =========
  49. D /M /Y
  50. 16/11/2o12 - started and finished,
  51.  
  52. ================================================================================
  53. Known Bugs:
  54. ============
  55. N/A
  56.  
  57. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  58. If a new bug is found please contact me at
  59. http://dekitarpg.wordpress.com/
  60.  
  61. ================================================================================
  62. INSTRUCTIONS:
  63. ==============
  64. Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
  65. Place this script above ~SAVE POKEMON DATA
  66. ================================================================================
  67. Notetags: (actor)
  68. ==========
  69. <max level: X>
  70. X = the max lvl for that actor.
  71.  
  72. =end #==========================================================================#
  73. module Pokémon_Level_Limit
  74.  
  75. Default_Limit = 100
  76. # Please Note:
  77. # if the default max level in the database is 99
  78. # it will be replaced by the value above. e.g 100(default)
  79.  
  80. end #####################
  81. # CUSTOMISATION END #
  82. #####################
  83. #===============================================================================#
  84. #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
  85. # #
  86. # http://dekitarpg.wordpress.com/ #
  87. # #
  88. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  89. #===============================================================================#
  90. # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
  91. # YES?\.\. #
  92. # OMG, REALLY? \| #
  93. # WELL SLAP MY FACE AND CALL ME A DITTO.\..\.. #
  94. # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
  95. #===============================================================================#
  96.  
  97. $imported = {} if $imported.nil?
  98. $imported[:Dekita__Level_Limit_Breaker] = true
  99.  
  100. #==============================================================================
  101. module DataManager
  102. #==============================================================================
  103.  
  104. class <<self; alias load_database_level_limit load_database; end
  105. def self.load_database
  106. load_database_level_limit
  107. load_notetags_level_limit
  108. end
  109.  
  110. def self.load_notetags_level_limit
  111. groups = [$data_actors]
  112. for group in groups
  113. for obj in group
  114. next if obj.nil?
  115. obj.load_notetags_level_limit
  116. end
  117. end
  118. end
  119.  
  120. end # DataManager
  121.  
  122. #==============================================================================
  123. class RPG::Actor < RPG::BaseItem
  124. #==============================================================================
  125.  
  126. def load_notetags_level_limit
  127. @max_level = Pokémon_Level_Limit::Default_Limit if @max_level == 99
  128. self.note.split(/[\r\n]+/).each { |line|
  129. case line
  130. when /<max level: (.*)>/i
  131. @max_level += $1.to_f
  132. #---
  133. end
  134. } # self.note.split
  135. #---
  136. end
  137.  
  138. end # RPG::Actor < RPG::BaseItem
  139.  
  140. #==============================================================================
  141. class Game_Actor < Game_Battler
  142. #==============================================================================
  143.  
  144. attr_accessor :level_limit
  145.  
  146. alias setupforlevellimitsGA setup
  147. def setup(actor_id)
  148. setupforlevellimitsGA(actor_id)
  149. @level_limit = actor.max_level
  150. end
  151.  
  152. def max_level
  153. @level_limit
  154. end
  155.  
  156. end
  157.  
  158. #===============================================================================#
  159. # - SCRIPT END - #
  160. #===============================================================================#
  161. # http://dekitarpg.wordpress.com/ #
  162. #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement