##EasyReadMore##

2009年12月22日 星期二

[教程] 關於AI躲限制技能的檢測問題




文章網址:http://bbs.wow8.org/thread-126747-1-1.html

關於AI躲限制技能的檢測問題

為了便於說明

我用的是我的2.0的AI文件

所有的都定義在這幾個函數下:
function Q6 takes nothing returns boolean
if not IsUnitEnemy(PG,V)then
return false
endif
return UG==852592and GetUnitTypeId(PG)==HV
endfunction///檢測諸葛放E
function S6 takes nothing returns boolean
if not IsUnitEnemy(PG,V)then
return false
endif
return UG==852127 and GetUnitTypeId(PG)==HV
endfunction///檢測諸葛放X
function T6 takes nothing returns boolean
if not IsUnitEnemy(PG,V)then
return false
endif
return UG==852224 and GetUnitTypeId(PG)==PV
endfunction///檢測司馬放N
function U6 takes nothing returns boolean
if not IsUnitEnemy(PG,V)then
return false
endif
if UG==852127and SM(NI,PG)<280 then
return true
endif
return false
endfunction///檢測諸葛放X自己離X位置距離???
function W6 takes nothing returns boolean
if PG==null then
return false
endif
if SM(NI,PG)>800 then
return false
endif
if not IsUnitEnemy(PG,V)then
return false
endif
if UG==852555and QG==NI then
return true
endif
if UG==852127and SM(NI,PG)<280 then
return true
endif
if UG==852095and QG==NI then
return true
endif
if UG==852592and GetUnitTypeId(PG)==HV then
return true
endif
return false
endfunction///檢測威嚴的T司馬的E等
function Y6 takes nothing returns boolean
if PG==null then
return false
endif
if SM(NI,PG)>1100 then
return false
endif
if not IsUnitEnemy(PG,V)then
return false
endif
if S6()or T6()then
return true
endif
if UG==852504and GetUnitTypeId(PG)==UV then
return true
endif
if UG==852555and GetUnitTypeId(PG)==QV then
return true
endif
return false
endfunction
function Z6 takes nothing returns boolean
return(S6()or T6())or(UG==852504and GetUnitTypeId(PG)==UV)or(UG==852555and GetUnitTypeId(PG)==QV)or(BY(GI)and M>300 and GW(GI))or(GW(GI)and GetUnitTypeId(GI)==KV and SM(GI,NI)<300)
endfunction

能看懂嗎?

UG後面的數字是技能id轉換成數字後的。不明白的再WE裡自己轉換下

wonder並沒有定於檢測關羽的X。你可以在W6函數里加。

由於時間上的關係,只能說這麼多了

相應的命令AI躲的函數在NXV這個函數里,大家自己去研究


沒有留言:

張貼留言

※怎麼下載?Xuite硬碟MediaFireBadongoSendSpace
※文章可以轉貼嗎?可以,不過要註明出處、標示本站連結。
※載點可以轉貼嗎?不可以,不能盜連。
※建議瀏覽器:Chrome 或 Firefox 或 Opera 或 IE7以上
!請按+1來支持本站!