| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 4 |  
| 经验 | 4286 |  
| 最后登录 | 2018-7-17 |  
| 在线时间 | 127 小时 |  
 Lv2.观梦者 
	梦石0 星屑354 在线时间127 小时注册时间2016-10-8帖子72 | 
| 我知道的也是Taroxd大大的腳本, 是設置在技能備註欄裡的。
 
 
 复制代码class Game_Action
  alias targets_for_friends_20140611 targets_for_friends 
  def targets_for_friends
    if item.note.include?('<指定同隊HP最低者>')
      [friends_unit.alive_members.min_by(&:hp_rate)]
    elsif item.note.include?('<指定同隊HP最高者>')
      [friends_unit.alive_members.max_by(&:hp_rate)]
    else
      targets_for_friends_20140611
    end
  end
 
  alias targets_for_opponents_20140611 targets_for_opponents
  def targets_for_opponents
    if item.note.include?('<指定敵隊HP最低者>')
      [opponents_unit.alive_members.min_by(&:hp_rate)]
    elsif item.note.include?('<指定敵隊HP最高者>')
      [opponents_unit.alive_members.max_by(&:hp_rate)]
    else
      targets_for_opponents_20140611
    end
  end
end
 在技能備註欄輸入 <指定敵隊HP最低者>,
 那麼敵人就會進行判斷使用該備註的技能攻擊我方HP最低者,
 若是備註<指定同隊HP最低者>,那麼就是對同隊HP最低者使用此技能,
 (前提是必須在敵人行動模式上設置能施放該技能)
 這樣能達到良好的敵人AI感覺,就是要慢慢設置而已。
 | 
 |