开源工程链接: https://pan.baidu.com/s/1XseO0esq13xgu_emQl4DXQ 提取码: 8686 云盘里的VX ACE软件安装后,打开会提示输入秘钥,这个是破解版,随便乱输就行 视频里人类增伤问题也改好了,根据自己的设定去自行研究修改哈 #-------------------------------------------------------------------------- # ● 技能/使用物品 ★再定义 #-------------------------------------------------------------------------- def use_item item_base = @subject.current_action.item if item_base.is_a?(RPG::Skill) && @subject.is_a?(Game_Actor) && $game_party.tank?(@subject.id) item = Marshal.load(Marshal.dump(item_base)) in_tank_actor_id = nil $game_party.tank.each do |tank| next if tank.nil? in_tank_actor_id = tank.actor if $game_party.tank_id[tank.id] == @subject.id end if !in_tank_actor_id.nil? drive = $game_actors[in_tank_actor_id].param(4) value = (drive.to_f / RPGBOY::ATK_UP_BY_DRIVE) + 1.00 # 保留1位小数 value = value.round(1) item.damage.formula = "(#{item.damage.formula}) * #{value}" p "驾驶加成: value=#{value}" p "最终公式: #{item.damage.formula}" end else #人类攻击 if @subject.is_a?(Game_Actor) item = Marshal.load(Marshal.dump(item_base)) #提升人类攻击公式设定demo item.damage.formula = "(#{item.damage.formula}) * #{2}" p item.damage.formula else #敌人攻击技能 item = item_base end end display_item(item) @subject.use_item(item) refresh_status @targets = @subject.current_action.make_targets.compact # 取消将对象转向自己 #if @targets.size == 0 && @subject.is_a?(Game_Actor) && # item.is_a?(RPG::Skill) && !RPGBOY::SKILL_IDS_OF_NULL_TARGET_RETURN.include?(item.id) # @targets = [@subject] #end set_substitute(item) for time in item.repeats.times do play_sideview(@targets, item) end end_reaction(item) display_end_item end




换一换 






























