查看: 2722|回复: 10

[已经解决] 脚本某项数据位置

[复制链接]
梦石
0
星屑
1461
在线时间
815 小时
注册时间
2013-8-3
回帖
355
发表于 2017-4-9 10:18:40 | 显示全部楼层 |阅读模式

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

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

×
我想改变武器能力变化值,默认武器物理攻击+2,但我想装备后物理攻击+2变成魔法攻击+2,也就是位置调换,在哪里能修改。
捕获.PNG

【同人游戏】勇者斗恶龙TG
欢迎加入游戏测试群333599798
如有需私聊请加QQ:516425000
梦石
0
星屑
468
在线时间
132 小时
注册时间
2016-6-15
回帖
146
发表于 2017-4-9 10:51:58 | 显示全部楼层
首先一个意义何在,第二,你打开数据库的用语栏,重命名这些数据的对应名称即可。

点评

☆VXAce RGSS3 「装備能力限界突破」☆有了!但不是想要的结果,还是想改脚本。  发表于 2017-4-9 12:19
我记得有个数据破限的脚本,可以在备注里增加数据,套用原理应该能满足你的需要,活用搜索功能W  发表于 2017-4-9 11:23
名字不变,就是不想让数据加上物理攻击,而是加到魔法攻击  发表于 2017-4-9 11:19
技能:Icon绘制,头像&立绘,VA行走图,地图绘制(全PS制作),脚本盲
回复

使用道具 举报

梦石
0
星屑
6375
在线时间
1473 小时
注册时间
2015-7-25
回帖
609

极短25参与开拓者

发表于 2017-4-9 12:28:10 | 显示全部楼层
本帖最后由 魔法丶小肉包 于 2017-4-9 14:28 编辑

只做了基本的测试,可能会有BUG....
[pre lang="ruby"]class Game_Actor < Game_Battler
  def param_plus(param_id)
        equips.compact.inject(super) {|r, item|
    $game_variables[1] = item.params[2]
    item.params[2]=0
    item.params[4]+=$game_variables[1];
}
    equips.compact.inject(super) {|r, item|
    r += item.params[param_id]
}

  end
end[/pre]

兼容技能物品说明增强脚本,同样只做了基本的测试,可能有bug
[pre lang="ruby"]module VIPArcher::Equipplus
  def self.getequiphelp(equip)
        help = ""
        param = []
        help += "\\c[16]装备位置:#{Vocab::etype(equip.etype_id)}\\c[0]\n"
        if $VIPArcherScript[:equip_limit] #装备能力限制
          help += "\\c[16]等级需求:#{equip.level_limit}\n" if equip.level_limit > 0
          param_limit = []
          for i in 0..7
            if equip.params_limit(i) != 0
              help += "\\c[16]#{@params}需求:#{equip.params_limit(i)}\\c[0]\n"
            end
          end
        end
        equip.params[4]+= equip.params[2]
        equip.params[2]=0
        equip.params.each_with_index{|x,y|
        param.push([@params[y],x])}
        param = param.select{|x| x[1] != 0}
        param.each{|x| help += "\\c[#{x[1]>0? UP : DOWN}]#{x[0]}:\\c[#{x[1]>0? UP : DOWN}]#{"﹢"if x[1]>0}#{x[1].to_int.to_s}\\c[0]\n"}
        features = equip.features
        featuresparam = []
        featuresparam.push features.select{|x| x.code == 21}
        featuresparam.push features.select{|x| x.code == 22}
        featuresparam.push features.select{|x| x.code == 23}
        featuresparam[0].each{|x| help += "\\c[#{x.value<0?DOWN: UP}]#{@params[x.data_id]}#{x.value<0?"﹣":"﹢"}#{(x.value.abs*100).to_i}%\n"}
        featuresparam[1].each{|x| help += "\\c[#{x.value<0?DOWN: UP}]#{XPARAM[x.data_id]}#{x.value<0?"﹣":"﹢"}#{(x.value.abs*100).to_i}%\n"}
        featuresparam[2].each{|x| help += "\\c[#{x.value<0?DOWN: UP}]#{SPARAM[x.data_id]}#{x.value<0?"﹣":"﹢"}#{(x.value.abs*100).to_i}%\n"}
        if $VIPArcherScript[:slot_type]
          help += "\\c[#{VIP}]#{CODE[55]}:#{SLOT_TYPE[$1.to_i]}\\c[0]\n" if equip.note =~ /<slot_type\s*[:](.*)>/i
        else
          features.select{|x| x.code == 55}.each{|x| help += "\\c[#{VIP}]#{CODE[x.code]}:双持武器\\c[0]\n"}
        end
        features.select{|x| x.code == 11}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@elements[x.data_id]}×#{(x.value*100).to_i}%\\c[0]\n"}
        features.select{|x| x.code == 12}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@params[x.data_id]}×#{(x.value*100).to_i}%\\c[0]\n"}
        features.select{|x| x.code == 13}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@states[x.data_id]}×#{(x.value*100).to_i}%\\c[0]\n"}
        features.select{|x| x.code == 14}.each{|x| help += "\\c[#{VIP}]#{CODE[x.code]}:#{@states[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 31}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@elements[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 32}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@states[x.data_id]}#{(x.value*100).to_i}%\\c[0]\n"}
        features.select{|x| x.code == 33}.each{|x| help += "\\c[#{x.value>0? UP : DOWN}]#{CODE[x.code]}:#{x.value}\\c[0]\n"}
        features.select{|x| x.code == 34}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{x.value}\\c[0]\n"}
        features.select{|x| x.code == 41}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@skill_types[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 42}.each{|x| help += "\\c[#{DOWN}]#{CODE[x.code]}:#{@skill_types[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 43}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{$data_skills[x.data_id].name}\\c[0]\n"}
        features.select{|x| x.code == 44}.each{|x| help += "\\c[#{DOWN}]#{CODE[x.code]}:#{$data_skills[x.data_id].name}\\c[0]\n"}
        features.select{|x| x.code == 51}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@weapon_types[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 52}.each{|x| help += "\\c[#{UP}]#{CODE[x.code]}:#{@armor_types[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 53}.each{|x| help += "\\c[#{DOWN}]#{CODE[x.code]}:#{@etypes[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 54}.each{|x| help += "\\c[#{DOWN}]#{CODE[x.code]}:#{@etypes[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 61}.each{|x| help += "\\c[#{VIP}]#{CODE[x.code]}:#{x.value}\\c[0]\n"}
        features.select{|x| x.code == 62}.each{|x| help += "\\c[#{VIP}]#{CODE[x.code]}:#{FLAG[x.data_id]}\\c[0]\n"}
        features.select{|x| x.code == 64}.each{|x| help += "\\c[#{VIP}]#{CODE[x.code]}:#{PARTY_ABILITY[x.data_id]}\\c[0]\n"}
        help
      end
end[/pre]

点评

完美解决!  发表于 2017-4-9 20:49
已在此楼编辑,楼主看一下吧  发表于 2017-4-9 14:29
技能物品说明增强脚本 - - 这个能改进?  发表于 2017-4-9 13:49
道具栏显示?默认系统的道具栏有显示吗?...  发表于 2017-4-9 13:45
得到装备时道具栏显示武器物理攻击+2,在装备界面才变成魔法攻击+2,希望改善  发表于 2017-4-9 13:17

评分

参与人数 1梦石 +1 收起 理由
RaidenInfinity + 1 认可答案

查看全部评分

笨肉包的游戏讨论群932812135 (实时更新) 喜欢的话欢迎加入~
目前的坑
??? #像素风OC游戏 准备中 短篇-约5小时
花城梦之心 #像素风OC游戏 系统开发+素材绘制中
【不可思议的迷宫】幽灵契约外传:歌莉娅 v0.4 游戏文件已更新
同时更新中~ (沉迷摸鱼中~更新速度较慢请见谅w)
这是属于笨肉包一个人的旅行~(这只肉包又在摸鱼!
旅途的最终目标~ ???(保密~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部