| 
 
| 赞 | 40 |  
| VIP | 559 |  
| 好人卡 | 234 |  
| 积分 | 47 |  
| 经验 | 251834 |  
| 最后登录 | 2025-10-7 |  
| 在线时间 | 5233 小时 |  
 Lv3.寻梦者 (版主) 八宝粥的基叔 
	梦石0 星屑4687 在线时间5233 小时注册时间2009-4-29帖子14320 
 | 
| 修改2处脚本。 第一处:
 第二处:复制代码  #--------------------------------------------------------------------------
  # ● 显示落空
  #     target : 目标
  #     obj    : 技能或物品
  #--------------------------------------------------------------------------
  def display_miss(target, obj = nil)
    if obj == nil or obj.physical_attack
      if target.actor?
        text = sprintf(Vocab::ActorNoHit, target.name)
      else
        text = sprintf(Vocab::EnemyNoHit, target.name)
      end
      Sound.play_miss
    else
      text = sprintf(Vocab::ActionFailure, target.name)
      #以下3行是增加的内容,在中括号内添加需要改变技能语句的技能ID,这里假定是1,3,10号技能:
      if [1,3,10].include?(obj.id) and obj.is_a?(RPG::Skill)
        text = sprintf("在这里添加特殊的语句", target.name)
      end
    end
    @message_window.add_instant_text(text)
    wait(30)
  end
复制代码  #--------------------------------------------------------------------------
  # ● 显示失败
  #     target : 目标(角色)
  #     obj    : 技能或物品
  #--------------------------------------------------------------------------
  def display_failure(target, obj)
    text = sprintf(Vocab::ActionFailure, target.name)
    #以下3行是增加的内容,在中括号内添加需要改变技能语句的技能ID,这里假定是1,3,10号技能:
    if [1,3,10].include?(obj.id) and obj.is_a?(RPG::Skill)
      text = sprintf("在这里添加特殊的语句", target.name)
    end
    @message_window.add_instant_text(text)
    wait(20)
  end
 | 
 |