Project1

标题: 大佬们帮我修改一下 道具限定脚本 [打印本页]

作者: shiliudeye    时间: 2017-11-8 23:36
标题: 大佬们帮我修改一下 道具限定脚本
# @taroxd metadata 1.0
# @require taroxd_core
# @DISPLAY 普通攻防技能的扩展
# @id attack_skill
# @help
#
#    使用方法:
#      在装备/技能/角色/职业/敌人上备注 <attackskill x> / <guardskill x>
#      建议与“战斗指令优化”配合使用。

#
#    使用方法:
#      在装备/技能/角色/职业/敌人上备注 <attackskill x> / <guardskill x>
#      建议与“战斗指令优化”配合使用。

Taroxd::AttackSkill = true

class RPG::BaseItem
  note_i :attack_skill, false
  note_i :guard_skill,  false
end

class Game_BattlerBase

  def_chain :attack_skill_id do |old|
    note_objects { |item| return item.attack_skill if item.attack_skill }
    old.call
  end

  def_chain :guard_skill_id do |old|
    note_objects { |item| return item.guard_skill if item.guard_skill }
    old.call
  end
end




帮我补一个物品选项也可以改变的别的技能的..






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