Project1

标题: 我记得之前好像有个提升技能上限数的帖子,但搜不到了。 [打印本页]

作者: lirn    时间: 2013-6-16 16:25
标题: 我记得之前好像有个提升技能上限数的帖子,但搜不到了。
本帖最后由 lirn 于 2013-6-18 22:02 编辑

如题目,因为我用的是后知后觉横版,所以几乎是替每个角色设置技能,再加上为了容易分辨,所以也留空了一些,感觉技能位置有些不够用,请问拓展上限的脚本在哪里?还有上限最多是多少?
作者: lirn    时间: 2013-6-16 21:23
我大致记得那个脚本需要做的步骤是

先备份,然后复制脚本,开启游戏,弹出,然后删除脚本。当时我忘记保存,搜索“上限”也搜索不到。
作者: lirn    时间: 2013-6-18 22:03
http://rpg.blue/forum.php?mod=viewthread&tid=303914

找到了,原帖地址在这里。关键字是数据库

那段时间的网站的脚本似乎复制有问题,我也就在这里复制一下,方便大家吧
  1. #===============================================================
  2. # ● [XP/VX/VXA] ◦ Database Limit Breaker III ◦ □
  3. # * Break limit of data number in database files *
  4. #--------------------------------------------------------------
  5. # ◦ by Woratana [[email protected]]
  6. # ◦ Thaiware RPG Maker Community
  7. # ◦ Originally released on: 22/02/2008
  8. # ◦ Ported to VXAce by Mr. Bubble on: 30/12/2011
  9. #--------------------------------------------------------------

  10. #==========================================
  11. # ** HOW TO USE
  12. #------------------------------------------
  13. # [English]
  14. # 0. Open your project (Recommend to backup your database files first~)
  15. # 1. Paste this script in above 'Main'.
  16. # 2. Set DLB_USE_IT = true
  17. # 3. Setup database files you want to change, in DLB_DATA
  18. # 4. Run your game...
  19. # 5. When it finished, game will close itself
  20. # 6. Close your project *without save*
  21. # 7. Open your project again. Done!
  22. # 8. Set DLB_USE_IT = false. Leave this script in your Script Editor (XP/VX).
  23. #    If you are using VX Ace, you do not need to leave this script in your
  24. #    Script Editor.
  25. #==========================================

  26.   #===========================================================================
  27.   # [ENG] Use limit breaker? (set this to false after you run this script,
  28.   # and haven't change anything in DLB_DATA after that)
  29.   # or REMOVE this script when finished~
  30.   #+==========================================================================
  31.   DLB_USE_IT = false # (true / false)

  32.   if DLB_USE_IT # Do NOT edit this line
  33.     DLB_DATA = {
  34.     #======================================================
  35.     # [ENG] Database file you want to change their number~
  36.     # * Limit of normal database files are 999
  37.     # * Limit of variables and switches are 5000
  38.     # This script will allow you to change their number over their limit~
  39.     #===============================
  40.     # ** How to setup **
  41.     #-------------------------------
  42.     # Add 1 line below per 1 database file you want to change.
  43.     # Structure: 'Database_File' => (number),
  44.     # e.g. 'switch' => 5500,
  45.     # (* Don't forget to put , behind the line!)

  46.     #==============================================
  47.     # ** [List] Database_File **
  48.     #----------------------------------------------
  49.     # 'switch' for Game Switches
  50.     # 'variable' for Game Variables
  51.     # 'actor' for Actors
  52.     # 'class' for Classes
  53.     # 'skill' for Skills
  54.     # 'item' for Items
  55.     # 'weapon' for Weapons
  56.     # 'armor' for Armors
  57.     # 'enemy' for Enemies
  58.     # 'troop' for Troops
  59.     # 'state' for States
  60.     # 'tileset' for Tilesets (RMXP/RMVXA only)
  61.     # 'animation' for Animations
  62.     # 'commonev' for Common Events
  63.     #======================================================
  64.     # * START to setup from here!
  65.     #======================================================

  66.     'actor' => 1011,

  67.     #========================================================
  68.     # * [END] Database Limit Breaker Setup Part
  69.     #========================================================
  70.     'end' => nil # Close hash
  71.     }

  72.     if defined?(Audio.setup_midi) # VXA
  73.       dformat = '.rvdata2'
  74.     elsif defined?(Graphics.wait) # VX
  75.       dformat = '.rvdata'
  76.     else # XP
  77.       dformat = '.rxdata'
  78.     end
  79.     start_time = Time.now
  80.     DLB_DATA.each do |k,v|
  81.       dvar = nil
  82.       case k
  83.       when 'switch'; dname = 'System'; dvar = 'switches'; dnewdata = ''
  84.       when 'variable'; dname = 'System'; dvar = 'variables'; dnewdata = ''
  85.       when 'actor'; dname = 'Actors'; dnewdata = 'RPG::Actor.new'
  86.       when 'class'; dname = 'Classes'; dnewdata = 'RPG::Class.new'
  87.       when 'skill'; dname = 'Skills'; dnewdata = 'RPG::Skill.new'
  88.       when 'item'; dname = 'Items'; dnewdata = 'RPG::Item.new'
  89.       when 'weapon'; dname = 'Weapons'; dnewdata = 'RPG::Weapon.new'
  90.       when 'armor'; dname = 'Armors'; dnewdata = 'RPG::Armor.new'
  91.       when 'enemy'; dname = 'Enemies'; dnewdata = 'RPG::Enemy.new'
  92.       when 'troop'; dname = 'Troops'; dnewdata = 'RPG::Troop.new'
  93.       when 'state'; dname = 'States'; dnewdata = 'RPG::State.new'
  94.       when 'animation'; dname = 'Animations'; dnewdata = 'RPG::Animation.new'
  95.       when 'tileset'; dname = 'Tilesets'; dnewdata = 'RPG::Tileset.new'
  96.       when 'commonev'; dname = 'CommonEvents'; dnewdata = 'RPG::CommonEvent.new'
  97.       when 'end'; next
  98.       else; p 'unknown DLB_DATA!', 'Check carefully what you typed in DLB_DATA'
  99.       end
  100.       base_data = load_data('Data/' + dname + dformat)
  101.       data = dvar.nil? ? base_data : eval('base_data.' + dvar.to_s)
  102.       unless data.size > v and v - (data.size - 1) <= 0
  103.         add_data = Array.new(v - (data.size - 1)) { eval(dnewdata) }
  104.         data.push *add_data
  105.         save_data(base_data, 'Data/' + dname + dformat)
  106.       end
  107.     end
  108.     p 'Finished in ' + (Time.now - start_time).to_s + ' sec'
  109.     exit
  110.   end


  111. # checks for VXAce since these methods do not need to be overwritten
  112. # in RGSS3.
  113. unless defined?(Audio.setup_midi)
  114.   
  115. class Game_Switches
  116.   #--------------------------------------------------------------------------
  117.   # * Set Switch
  118.   #     Make the system be able to set switch ID more than 5000
  119.   #--------------------------------------------------------------------------
  120.   def []=(switch_id, value)
  121.     @data[switch_id] = value
  122.   end
  123. end

  124. class Game_Variables
  125.   #--------------------------------------------------------------------------
  126.   # * Set Variable
  127.   #     Make the system be able to set switch ID more than 5000
  128.   #--------------------------------------------------------------------------
  129.   def []=(variable_id, value)
  130.     @data[variable_id] = value
  131.   end
  132. end

  133. end # unless defined?(Audio.setup_midi)
复制代码





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1