【綜合】寵物AI |
發表人 |
衡仔 [ Lv.390 ] ?(安黛莉 - 1)(1F) 2007-06-21 20:41:46 |
|
有高強的programer可以幫我們做做幾個常用的寵物AI嗎?
好像冰反、火反、雷反、重反防普攻...之類的...
本人都是讀電腦的,只是一直都沒學過什寫program...
高手們請出來幫幫忙...
|
|
回覆 | 衡仔 [ Lv.390 ] ?(安黛莉 - 1)(2F) 2007-06-21 20:49:58 |
|
|
|
|
回覆 | 衡仔 [ Lv.390 ] ?(安黛莉 - 1)(3F) 2007-06-22 14:52:07 |
|
高手們都去了那?
找人回回我好嗎...囧
|
|
|
回覆 | snowfire [ Lv.893 ] ?(貝婷 - 5)(4F) 2007-06-22 15:41:12 |
|
愛莫能助...公司電腦檔太兇= = "
我連你給的網頁A_A都不能開耶~~~~~!!
|
|
|
回覆 | 古沙 [ Lv.267 ] ?(愛麗沙 - 10)(5F) 2007-06-22 23:09:41 |
|
我幫你吧!
AI名稱:冰反
規則:
=攻擊目標
-寵物攻擊對方(重擊)DOWN(徹底打倒)--下一步
-未選擇--下一步
-受到對方的魔法攻擊(冰矛1次5秒)
=反擊準備
-寵物攻擊對方(冰矛)DOWN(沒被徹底打倒)--下一步
-未選擇--下一步
-準備技能(反擊,再嘗試-沒有,5秒)
=冰攻擊
-寵物攻擊對方(反擊)DOWN(徹底打倒)--下一步
-對方狀態(受攻擊逃離)--下一步
-受到對方的魔法攻擊(冰矛1次5秒)--結束
P.S.對方被打飛後有可能作防禦/反擊,請自行制作,
當寵物反擊解除後,請以<寵物受到對方識別>(用警
告)當觸法...祝 武運昌隆!
|
|
|
回覆 | 兒兒(貝婷 - 1)(6F) 2007-06-23 03:40:38 |
|
請問高手~古沙~
使寵物在主人HP50%以下的情況
使用治療術?應該怎設定
因為現在的恢復模式(用了沒反應)= =
|
|
|
回覆 | 長門乂有希 [ Lv.40 ] ?(愛麗沙 - 6)(7F) 2007-06-23 10:02:43 |
|
兒兒~
如果沒有反應的話請打「治療!」之類的字句@@"
不然被只怪打傷了牠應該有反應了(喂)
|
|
|
回覆 | 衡仔 [ Lv.390 ] ?(安黛莉 - 1)(8F) 2007-06-23 11:26:29 |
|
感覺這個寵物AI好像沒什麼用(或是我不會用)...
現在我只能做出一個用來打廢怪的AI,就是普攻3下一定要ko的怪...如果3下之後只是d血的話...又要我補刀了...
|
|
|
回覆 | 疾刃寶寶 [ Lv.1 ] ?(貝婷 - 6)(9F) 2007-10-10 17:01:17 |
|
巴哈姆特的
火反
<rules>
<rule name="主動用火焰攻擊">
<conditions>
<condition name="skill_preparable" pet_skill="firebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="move_against" distance="600" run="true" timeout="2000"/>
<cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="寵物被發現,火焰">
<conditions>
<condition name="target_distance" min_distance="100" max_distance="1500"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="targeted" targeting_type="alert"/>
</rule>
<rule name="寵物被打飛,反擊">
<conditions>
<condition name="target_distance" min_distance="100" max_distance="1500"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="4" timeout="10000"/>
<cmd name="wait" min="8000" max="10000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="all" down="true"/>
</rule>
<rule name="寵物被警戒.反擊">
<conditions>
<condition name="target_distance" min_distance="100" max_distance="1500"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="4" timeout="10000"/>
<cmd name="wait" min="8000" max="10000"/>
</sequence>
</pattern>
<event name="targeted" targeting_type="attack"/>
</rule>
<rule name="寵物發現敵人,火箭">
<conditions>
<condition name="target_distance" min_distance="100" max_distance="1500"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="7000"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="寵物被打退,反擊">
<conditions>
<condition name="target_distance" min_distance="100" max_distance="1500"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="4" timeout="10000"/>
<cmd name="wait" min="8000" max="10000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="all" down="false"/>
</rule>
<rule name="火焰打中後,反擊">
<conditions>
<condition name="skill_preparable" pet_skill="firebolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="4" timeout="10000"/>
<cmd name="wait" min="8000" max="10000"/>
</sequence>
</pattern>
<event name="now_targeting"/>
</rule>
<rule name="反擊後,火焰">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="firebolt" try_cnt="1" timeout="0"/>
<cmd name="stackmagic_attack" stack_magic="firebolt" charge="1" timeout="5000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="counter" down="true"/>
</rule>
</rules>
雷反
<rules>
<rule name="找怪 一雷開怪">
<conditions>
<condition name="skill_preparable" pet_skill="lightningbolt"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="stack_skill" stack_magic="lightningbolt" charge="1"/>
<cmd name="move_against" distance="1000" run="true" timeout="1000"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="2000"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="雷後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="0"/>
<cmd name="wait" min="4000" max="6000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="lightningbolt" down="false"/>
</rule>
<rule name="解反重破防">
<conditions>
<condition name="target_state" state="walk"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="smash" try_cnt="0" timeout="0"/>
<cmd name="process_skill" target="enemy" timeout="0"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="解反雷破反">
<conditions>
<condition name="target_state" state="stop"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="lightningbolt" try_cnt="0" timeout="500"/>
<cmd name="stackmagic_attack" stack_magic="icebolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="target_skill_prepare"/>
</rule>
<rule name="反後雷">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="counter" down="true"/>
</rule>
<rule name="雷打D血補雷">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="stackmagic_attack" stack_magic="lightningbolt" charge="1" timeout="0"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="lightningbolt" down="true"/>
</rule>
<rule name="攻後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="0"/>
<cmd name="wait" min="6000" max="6000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="basic" down="true"/>
</rule>
<rule name="重後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="1" timeout="0"/>
<cmd name="wait" min="4000" max="6000"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="smash" down="true"/>
</rule>
<rule name="倒後反">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="counter" try_cnt="0" timeout="0"/>
<cmd name="wait" min="6000" max="6000"/>
</sequence>
</pattern>
<event name="attacked" master_skill="all" down="true"/>
</rule>
<rule name="被打後攻">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="attacked" master_skill="basic" down="false"/>
</rule>
<rule name="對魔防">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="defence" try_cnt="1" timeout="0"/>
<cmd name="move_around" clockwise="true" radius="100" run="false" timeout="500"/>
</sequence>
</pattern>
<event name="target_magic_prepare"/>
</rule>
<rule name="防魔後攻">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="500"/>
</sequence>
</pattern>
<event name="attacked" master_skill="lightningbolt" down="false"/>
</rule>
<rule name="防魔後攻2">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="500"/>
</sequence>
</pattern>
<event name="attacked" master_skill="icebolt" down="false"/>
</rule>
<rule name="普打的規則">
<conditions>
<condition name="target_state" state="hit"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="melee_attack" timeout="0"/>
</sequence>
</pattern>
<event name="attack" pet_attackable_skill="basic" down="false"/>
</rule>
</rules>
加入AI方法
1.按T開啟寵物視窗
2.點AI設定
3.新AI
4.顯示原始資料
5.複製寵物AI碼 (由 ...到... )
5.粘貼
|
|
|
|
|
Message | 請先 登入 會員才能發表或回覆文章。 |
|
|
|
Message | 此篇文章發表日期已超過一個月,無法進行回覆。 |
|
|