2008-03-28 15:14:42南瓜超人

寵物AI:掛甲熟補HP用

作者:yingru  (夏意.思秋)

著作者yingru版權聲明:
本AI可因個人需求任意修改,但是如果要公開發表又不標注原作者ID,請記得把規則名稱改一改,不然會很好笑。
 
寵物說明:就算主人掛甲熟偷懶不理我,我也還是要幫補HP
 
使用時機:掛甲熟,本人不在電腦前的時候
 
限制:寵物MP有限,此AI適合回魔快速的寵物(ex:雷狗)
 
AI:

<rules>
<rule name="RULE1">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="master_targeted" targeting_type="alert"/>
</rule>
<rule name="RULE2">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="RULE3">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="5000"/>
</sequence>
</pattern>
<event name="now_targeting"/>
</rule>
<rule name="RULE4">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="targeted" targeting_type="alert"/>
</rule>
<rule name="RULE5">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="targeted" targeting_type="attack"/>
</rule>
<rule name="RULE6">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="master_targeted" targeting_type="attack"/>
</rule>
<rule name="RULE7">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="false"/>
</rule>
<rule name="RULE8">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="master" timeout="0"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="true"/>
</rule>
<rule name="RULE9">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="wait" min="10000" max="10000"/>
</sequence>
</pattern>
<event name="now_targeting"/>
</rule>
</rules>


原始網頁:掛甲熟用AI


下一篇:魔戰系寵物AI

伊路米 2012-06-30 21:07:30

我覺得可以加一個"最終規則"[在寵物沒魔 主人HP快沒時] 主人生命值消耗XXX以上時 使用旋風連擺腿 之類的

Krad 2009-03-23 01:07:34

你好ㄚ~
我也是研究AI的