##EasyReadMore##

2010年1月6日 星期三

討論 AI 路線設置問題,技術員和熱心玩家都看一下

原文網址:http://bbs.wow8.org/thread-121997-1-19.html

那麼

RT

先上函數

在原版0.792AI文件的2000行

function U0 takes nothing returns nothing
if isZhuGeLiang()or isSiMaYi()then
set GN=1
set HN=1
set SA=true
set GG=true
endif
if iszhaoyun()or isdadi()then
set GN=2
set HN=2
set GG=true
endif
if isxun()or isdainwei()or iszhangliao()then
set GN=2
set HN=2
set GG=true
endif
if isguanyu()or iszhangfei()then
set GN=0
set HN=0
set GG=true
endif
if guojia()or iscaoren()then
set GN=0
set HN=0
set GG=true
endif
if or isguanxing()or issuanquan()then
set GG=true
endif

先就看這些

那麼這裡變量「GN"."HN"是代表什麼呢?

我個人猜測其中一個是路線。值0代表上路。1代表中路。2代表下路

還有個"SA","GG". 這2個變量又是什麼意思呢??

可以看到,除了諸葛和司馬那行外,其他的沒有"SA"這個變量

那麼大家大膽來猜測
再繼續看函數的下一半:

if XH or IJ then
if FG==0 or FG==1 then
if CS("zhongehc"+AL(mForceId))==0 then
set GN=1
set HN=1
set NG=6
call BS("zhongehc"+AL(mForceId),1)
set AJ=true
endif
endif
if not AJ then
if CS("shanghc"+AL(mForceId))<2 then
set GN=0
set HN=0
call BS("shanghc"+AL(mForceId),1+CS("shanghc"+AL(mForceId)))
set AJ=true
endif
endif
if not AJ then
if CS("xiahc"+AL(mForceId))<2 then
set GN=2
set HN=2
call BS("xiahc"+AL(mForceId),1+CS("xiahc"+AL(mForceId)))
set AJ=true
endif
endif
if not AJ then
if CS("zhongehc"+AL(mForceId))==0 then
set GN=1
set HN=1
set NG=6
call BS("zhongehc"+AL(mForceId),1)
set AJ=true
endif
endif
endif
if HN==1 then
set SA=true
endif
set PN=HN
endfunction

這裡面的變量確實比較多,也比較搞人。。

"AG"是控制出車的變量

"NG"個人猜測是出車數量。。

大家發揮想像力,結合遊戲實際,看下

PS:set PN=HN  這個貌似是控制切換路線的

1是中路,0 是上路

沒有留言:

張貼留言

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