查看: 1655|回复: 1

[已经过期] 装备说明增强 物品说明显示问题。

[复制链接]
梦石
0
星屑
686
在线时间
218 小时
注册时间
2016-5-10
回帖
74
发表于 2016-8-12 15:31:49 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
不能发图就用文字来打范例:
打开商店后(物品说明增强脚本已使用)
红色药水(显示:红色药水,介绍,物品价格:200)
蓝色药水(显示:蓝色药水,介绍,物品价格:200)
黑色药水(显示:黑色药水,介绍,)
青色药水(显示:青色药水,介绍,物品价格:200)
在数据库把“黑色药水”的物品数据删除重新编辑并加入商店后还是不显示“物品价格”的说明。
请问这个问题大概出现在哪里。
是物品增强脚本的问题 还是 使用这个扩展后导致数据错乱引起的。

跪求大神帮忙。
游戏做了几个月了,希望能挽救。
实在舍不得放弃。


之前都是好好的,不知道是不是因为用了这个脚本的原因↓
(这个是突破数据库物品999上限的脚本)
[pre lang="ruby"]#===============================================================
# ● [XP/VX/VXA] ◦ Database Limit Breaker III ◦ □
# * Break limit of data number in database files *
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
# ◦ Originally released on: 22/02/2008
# ◦ Ported to VXAce by Mr. Bubble on: 30/12/2011
#--------------------------------------------------------------

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

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

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

    #==============================================
    # ** [List] Database_File **
    #----------------------------------------------
    # 'switch' for Game Switches
    # 'variable' for Game Variables
    # 'actor' for Actors
    # 'class' for Classes
    # 'skill' for Skills
    # 'item' for Items
    # 'weapon' for Weapons
    # 'armor' for Armors
    # 'enemy' for Enemies
    # 'troop' for Troops
    # 'state' for States
    # 'tileset' for Tilesets (RMXP/RMVXA only)
    # 'animation' for Animations
    # 'commonev' for Common Events
    #======================================================
    # * START to setup from here!
    #======================================================

    'actor' => 1011,

    #========================================================
    # * [END] Database Limit Breaker Setup Part
    #========================================================
    'end' => nil # Close hash
    }

    if defined?(Audio.setup_midi) # VXA
      dformat = '.rvdata2'
    elsif defined?(Graphics.wait) # VX
      dformat = '.rvdata'
    else # XP
      dformat = '.rxdata'
    end
    start_time = Time.now
    DLB_DATA.each do |k,v|
      dvar = nil
      case k
      when 'switch'; dname = 'System'; dvar = 'switches'; dnewdata = ''
      when 'variable'; dname = 'System'; dvar = 'variables'; dnewdata = ''
      when 'actor'; dname = 'Actors'; dnewdata = 'RPG::Actor.new'
      when 'class'; dname = 'Classes'; dnewdata = 'RPG::Class.new'
      when 'skill'; dname = 'Skills'; dnewdata = 'RPG::Skill.new'
      when 'item'; dname = 'Items'; dnewdata = 'RPG::Item.new'
      when 'weapon'; dname = 'Weapons'; dnewdata = 'RPG::Weapon.new'
      when 'armor'; dname = 'Armors'; dnewdata = 'RPG::Armor.new'
      when 'enemy'; dname = 'Enemies'; dnewdata = 'RPG::Enemy.new'
      when 'troop'; dname = 'Troops'; dnewdata = 'RPG::Troop.new'
      when 'state'; dname = 'States'; dnewdata = 'RPG::State.new'
      when 'animation'; dname = 'Animations'; dnewdata = 'RPG::Animation.new'
      when 'tileset'; dname = 'Tilesets'; dnewdata = 'RPG::Tileset.new'
      when 'commonev'; dname = 'CommonEvents'; dnewdata = 'RPG::CommonEvent.new'
      when 'end'; next
      else; p 'unknown DLB_DATA!', 'Check carefully what you typed in DLB_DATA'
      end
      base_data = load_data('Data/' + dname + dformat)
      data = dvar.nil? ? base_data : eval('base_data.' + dvar.to_s)
      unless data.size > v and v - (data.size - 1) <= 0
        add_data = Array.new(v - (data.size - 1)) { eval(dnewdata) }
        data.push *add_data
        save_data(base_data, 'Data/' + dname + dformat)
      end
    end
    p 'Finished in ' + (Time.now - start_time).to_s + ' sec'
    exit
  end


# checks for VXAce since these methods do not need to be overwritten
# in RGSS3.
unless defined?(Audio.setup_midi)

class Game_Switches
  #--------------------------------------------------------------------------
  # * Set Switch
  #     Make the system be able to set switch ID more than 5000
  #--------------------------------------------------------------------------
  def []=(switch_id, value)
    @data[switch_id] = value
  end
end

class Game_Variables
  #--------------------------------------------------------------------------
  # * Set Variable
  #     Make the system be able to set switch ID more than 5000
  #--------------------------------------------------------------------------
  def []=(variable_id, value)
    @data[variable_id] = value
  end
end

end # unless defined?(Audio.setup_midi)
[/pre]

点评

把脚本换成这个试试看https://raw.githubusercontent.com/VIPArcher/RGSS3/master/scripts/%E8%AF%A6%E7%BB%86%E5%B8%AE%E5%8A%A9%E7%AA%97%E5%8F%A3%E5%8A%A0%E5%BC%BA.rb  发表于 2016-8-13 03:31
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部