查看: 2418|回复: 4

[已经解决] 物品与技能的连续次数怎么设置9以上的数字?

[复制链接]
梦石
0
星屑
4235
在线时间
2671 小时
注册时间
2012-3-1
回帖
680
发表于 2013-11-30 17:53:25 | 显示全部楼层 |阅读模式

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

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

×
这里的连续次数最大是9,
我的问题是,如果能在物品与技能的连续次数能设置9以上就好了

梦石
1
星屑
23241
在线时间
9564 小时
注册时间
2012-6-19
回帖
7018

开拓者短篇九导演组冠军

发表于 2013-11-30 18:32:08 | 显示全部楼层
本帖最后由 喵呜喵5 于 2013-11-30 22:30 编辑

先加入这个脚本:
http://rpg.blue/thread-99474-1-1.html

然后加入这个脚本(如果有添加其他战斗类脚本,建议把下面的脚本放到比它们高的位置):
[pre lang="ruby" line="1"]class Scene_Battle
  def use_item
    item = @subject.current_action.item
    @log_window.display_use_item(@subject, item)
    @subject.use_item(item)
    refresh_status
    targets = @subject.current_action.make_targets.compact
    show_animation(targets, item.animation_id)
    if item.class == RPG::Skill
      repeats = ($data_skills[item.id].read_note('重复次数')).to_i
    else
      repeats = ($data_items[item.id].read_note('重复次数')).to_i
    end
    repeats = item.repeats if !repeats or repeats <= 0   
    targets.each {|target| repeats.times { invoke_item(target, item) } }
  end
end
class Scene_ItemBase
  def use_item_to_actors
    if item.class == RPG::Skill
      repeats = ($data_skills[item.id].read_note('重复次数')).to_i
    else
      repeats = ($data_items[item.id].read_note('重复次数')).to_i
    end
    repeats = item.repeats if !repeats or repeats <= 0
    item_target_actors.each do |target|
      repeats.times { target.item_apply(user, item) }
    end
  end
end[/pre]
最后在需要设定的物品/技能的备注栏里多回车一行,写上
  1. 重复次数 = 99
复制代码
即可

评分

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

查看全部评分

回复

使用道具 举报

梦石
0
星屑
4235
在线时间
2671 小时
注册时间
2012-3-1
回帖
680
 楼主| 发表于 2013-11-30 20:39:12 | 显示全部楼层
本帖最后由 卡奥尼特 于 2013-11-30 20:43 编辑


弹出这个来了

点评

脚本已修正,现在你试试看能不能用了  发表于 2013-11-30 22:30
何时报错?战斗中吗?  发表于 2013-11-30 21:33
回复

使用道具 举报

老黄鸡

梦石
4
星屑
45707
在线时间
7948 小时
注册时间
2009-7-6
回帖
13338

MZ评测员RM创作大赛01组委会开拓者贵宾

发表于 2013-12-3 15:07:29 | 显示全部楼层
你把va主程序的限制改一下就行,偏移量是0x3F3D5
内存里是0x0043F3D5,一字节,默认是09,就是最大9,
改成7F就是最大127。自行patch
再往上需要扩容,你自己看着办。

评分

参与人数 1星屑 +66 收起 理由
熊喵酱 + 66 认可答案

查看全部评分

RGDirect - DirectX驱动的RGSS,点我了解.
(排满,暂停)RM全系列成套系统定制请联系QQ1213237796
不接受对其他插件维护的委托
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部