ペットAI掲示板

おすすめ (´・ω・`)ヒールペットマナ温存型デス
守翼_mor 08/03/07 12:18
ペットキャラクターAIソースコード ソースコードをコピーする

(´・ω・`)一応ヒールで検索して似たものがなかったので投稿してみますた。
 
ソース見ればわかると思うのですが詠唱と使用が切り離されているので
無駄にヒールを使いません。
また、上記の仕様からラグによる心配がありません。
 
がんばったのですが無駄がいっぱいあると思うので
その点ご指摘いただけると幸いです。
 
<rules>
<rule name="詠唱1">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="1000"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="詠唱2">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="1000"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="now_targeting"/>
</rule>
<rule name="詠唱3">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="1000"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_skill_prepare" event_skill="all"/>
</rule>
<rule name="詠唱4">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="1000"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="all"/>
</rule>
<rule name="詠唱5">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="500"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="false"/>
</rule>
<rule name="詠唱6">
<conditions>
<condition name="skill_preparable" pet_skill="healing"/>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="prepare_skill" pet_skill="healing" try_cnt="0" timeout="500"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="true"/>
</rule>
<rule name="使用1">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="500" run="true"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="seek_target"/>
</rule>
<rule name="使用2">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="500" run="true"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="now_targeting"/>
</rule>
<rule name="使用3">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="500" run="true"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_skill_prepare" event_skill="all"/>
</rule>
<rule name="使用4">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="500" run="true"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_attack" master_skill="all"/>
</rule>
<rule name="使用5">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="500" run="true"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="false"/>
</rule>
<rule name="使用6">
<conditions>
<condition name="master_damaged_life_greater" life="20"/>
</conditions>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="500" run="true"/>
<cmd name="process_skill" target="master" timeout="500"/>
</sequence>
</pattern>
<event name="master_attacked" master_skill="all" down="true"/>
</rule>
<rule name="追跡">
<conditions/>
<pattern>
<param_decl/>
<sequence>
<cmd name="chase" chase_target="master" timeout="500" run="true"/>
</sequence>
</pattern>
<event name="now_targeting"/>
</rule>
</rules>
 

しまねこ_tri キウイ相手に熟練を上げながら使用させていただきました。 ちゃんと回復してくれるし、これはすごい!と思ったのですが、常にヒールを準備しているわけではないため、危ない場面が時々ありました(自動戦闘)。 入り口を沢山用意して、出口はひとつにするともうちょっと良くなると思います。守翼さんのソースを参考に、ちょっと改良してみました。 08/03/08 00:15
守翼_mor (´・ω・`)このAIになったのが、マナが無くなった時に動けなくなる問題を回避するためでもありまして ご指摘の通りそのリスクが常にヒールを準備していることができないことなのです。 ↓のしまねこさんのAI使わせていただきました。すごいです@@ 双方使い比べて個人的な感想ではありますが、下記に記載をさせていただきます。AIを選ぶうえでの参考になってくれたら幸いです。 【しまねこさん型】 ・常に詠唱しておいてくれるため、速効性があります。 ・回復するスピードがとても速いです。 ・上記のことから、低HPキャラクターの回復もカバーすることができます。 ・これだけの機能を有しながら、簡素で無駄のないソースです。 【守翼型】 ・やられてから詠唱を開始するため、手遅れになる可能性があります。 ・回復に一呼吸間があります。 ・上記のことから、ある程度余裕のあるプレイヤー向きです。 ・マナがなくなってもついてくるため、戦闘の邪魔になりにくいです。 ・上記理由から、マナ回復後、障害物にぶつかり回復できなくなる可能性が低くなります。 まとめると、【しまねこさん型】は回復特化、【守翼型】は補助といった感じでした。 08/03/08 08:54
流星ジョニ一_tar しまねこさんの「主人-~」のイベント(被弾を除く)を ヒーリングが使用可能条件を入れた空イベント 主人を0.5秒間追跡 とこの順で二つに分ければマナが無くなった時動けなくなるのを抑えることができるかも しかし、その分AIが長くなるのが問題点 08/03/08 14:40
件名 名前 日付 閲覧数 投票数

トゥリム式ver2008-5-21(全自動)

+3
トゥリム_mar 2008/05/21 13257 1  

ツンデレAI(ネタ用) 修正ver

梓穂 2008/05/15 17066 2  

熊モード

オッペケ_cic 2008/05/09 14599 0  

黒マン(ラゴデッサ用)

+1
風魔小太郎 2008/05/08 9688 0  

トゥリム式ver2008-4-30(全自動)

+5
トゥリム_mar 2008/04/30 11216 2  

ネコモード

オッペケ_cic 2008/04/21 15323 0  

蛇モード

オッペケ_cic 2008/04/20 10555 1  

戦闘『非』参加!

+1
オッペケ_cic 2008/04/16 11435 0  

鳥専用AI

オッペケ_cic 2008/04/14 13806 1  

ラビ用アイスカウンターAI:再up

+3
rumor_tar 2008/04/14 15866 3  

私信:ご注文の品です。

あみえる_cic 2008/04/13 8507 0  

仲間を回復

夏希 2008/04/11 15710 2  

トゥリム式ver2008-3-20(アイスカウンター)

+18
トゥリム_mar 2008/03/20 23011 8  

追尾+高速ヒール

+1
Whitewind 2008/03/16 20844 2  

ピンポンダッシュ

+1
オッペケエフ 2008/03/15 14936 2  

ソロ戦闘向けのAIかな?

オッペケエフ 2008/03/13 27586 1  

味方にヒーリング

+5
シロフード 2008/03/12 19601 4  

(´・ω・`)ヒールペットマナ温存型デス

+3
守翼_mor 2008/03/07 14583 1  

[返事](´・ω・`)ヒールペットマナ温存型デス

+2
しまねこ_tri 2008/03/08 9533 2  

多分、万能型の護衛ミルAI

Whitewind 2008/03/06 50945 5