[自己自閒聊區轉貼]
恩...今天嘗試著打小吉單人,發現自己攻擊力不足後就愉快的招喚樣本機系列幫忙打,但發現基礎的AI動不動就開反擊防禦之類沒有用的技能,所以就乾脆點的自己新作了一個簡單的AI,讓寵物只會普攻跟在你損血的時候放治癒。
招喚寵物幫打小吉單人是因為,在現在的時代有著"聖靈同步"這個技能,把回血、PD、復活等等技能"只要點到1",如果神聖等級只有1的話那點回血就夠頂住小吉單人的一般攻擊,而小吉的流星雨、瘟疫毒等等技能都不會傷害到寵物(因為努力了十分鐘只打掉25%所以剩下的沒測過),而如果遇到水晶禁錮、抓人投擲跟靈魂吸收的時候有寵物幫忙打應該也會比較方便,所以才會有這個想法。
如果說早就有人做出更好AI的話煩請告知咱也想要=///=
規則複製方式:先在這邊把<rules>開始複製到最底下,然後招喚寵物>設定行動規則>新AI>顯示原始資料>黏貼,就可以了。
<rules>
<rule name="追擊">
<conditions>
<condition name="target_state" state="walk, run"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="enemy" timeout="10000" run="true"/>
<cmd name="melee_attack" timeout="10000"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="追擊2">
<conditions>
<condition name="target_state" state="walk, run"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="10000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="all" down="false"/>
</rule>
<rule name="追擊3">
<conditions>
<condition name="target_state" state="walk, run"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="enemy" timeout="10000" run="true"/>
<cmd name="melee_attack" timeout="10000"/>
</sequence>
</pattern>
<event name="targeted" targeting_type="alert"/>
</rule>
<rule name="恢復主人">
<conditions>
<condition name="master_damaged_life_greater" life="100"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="1" timeout="5000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="all"/>
</rule>
<rule name="恢復主人2">
<conditions>
<condition name="master_damaged_life_greater" life="100"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="1" timeout="5000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="false"/>
</rule>
<rule name="追擊5">
<conditions>
<condition name="target_distance" min_distance="100" max_distance="1500"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="enemy" timeout="10000" run="true"/>
<cmd name="melee_attack" timeout="10000"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="追擊6">
<conditions>
<condition name="skill_preparable" pet_skill="basic"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="enemy" timeout="10000" run="true"/>
<cmd name="melee_attack" timeout="10000"/>
</sequence>
</pattern>
<event name="master_targeted" targeting_type="alert"/>
</rule>
<rule name="恢復主人3">
<conditions>
<condition name="master_damaged_life_greater" life="100"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="5000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
<cmd name="wait" min="1000" max="1000"/>
<cmd name="process_skill" target="master" timeout="5000"/>
</sequence>
</pattern>
<event name="master_skill_prepare" event_skill="healing"/>
</rule>
<rule name="追擊7">
<conditions>
<condition name="target_state" state="walk, run"/>
<condition name="skill_preparable" pet_skill="basic"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="enemy" timeout="10000" run="true"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="master_targeted" targeting_type="alert"/>
</rule>
<rule name="追擊8">
<conditions>
<condition name="target_state" state="walk, run"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="enemy" timeout="10000" run="true"/>
<cmd name="melee_attack" timeout="5000"/>
<cmd name="melee_attack" timeout="5000"/>
<cmd name="melee_attack" timeout="5000"/>
<cmd name="melee_attack" timeout="5000"/>
<cmd name="melee_attack" timeout="5000"/>
<cmd name="melee_attack" timeout="5000"/>
<cmd name="melee_attack" timeout="5000"/>
<cmd name="melee_attack" timeout="5000"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="all"/>
</rule>
</rules>
[ 此文章已由作者修改 1 次 最後更新於:2016-02-14 01:06:10 ]