鳗鳗F飞 发表于 2008-3-7 19:25:31

怎么制作重复的数字AI

RT..........................................................帮忙下,谢谢.......

莫奇D龍 发表于 2008-3-7 19:58:54

什么意思? 你意思是说..循环使用???????????????????

鳗鳗F飞 发表于 2008-3-7 20:03:05

恩,我要做技能...........................就是可以无限循环的按

鳗鳗F飞 发表于 2008-3-8 07:39:56

...没人知道吗???................

ice 发表于 2008-3-8 14:26:47

使用资源栏好了用AI信号是不行的   比如:触发1:输入嘲笑 100 贡品木头+1
触发2:玩家X木头1 效果:使用技能

鳗鳗F飞 发表于 2008-3-8 20:42:12

..
...听不懂啊...................................

鳗鳗F飞 发表于 2008-3-9 10:47:27

打开过路人的AI看了下,完全看不懂啊

(defrule
    (true)
=>
    (set-strategic-number sn-maximum-food-drop-distance 0)
    (set-strategic-number sn-maximum-wood-drop-distance 0)
    (set-strategic-number sn-maximum-gold-drop-distance 0)
    (set-strategic-number sn-maximum-stone-drop-distance 0)
    (set-strategic-number sn-percent-civilian-gatherers 0)
    (set-strategic-number sn-percent-civilian-builders 0)
    (set-strategic-number sn-percent-civilian-explorers 0)
    (set-strategic-number sn-maximum-hunt-drop-distance 0)
    (set-strategic-number sn-maximum-fish-boat-drop-distance 0)
    (set-strategic-number sn-task-ungrouped-soldiers 0)
    (set-strategic-number sn-total-number-explorers 0)
    (disable-self)
)

(defrule
    (taunt-detected 1 1);
=>
    (acknowledge-taunt 1 1);
    (cc-add-resource wood 1);?
)

(defrule
    (taunt-detected 1 2);?
=>
    (acknowledge-taunt 1 2);?
    (cc-add-resource food 1);?
)

(defrule
    (taunt-detected 1 3);?
=>
    (acknowledge-taunt 1 3);?
    (cc-add-resource stone 1);?
)

(defrule
    (taunt-detected 1 4);?
=>
    (acknowledge-taunt 1 4);?
    (cc-add-resource gold 1);?
)

比邻星人 发表于 2008-3-9 13:02:44

如何编辑AI???????????????????????????

Amlo.Zc 发表于 2008-3-21 20:19:25

(defrule
    (true)
=>
    (set-strategic-number sn-maximum-food-drop-distance 0);0%的村民采集食物
    (set-strategic-number sn-maximum-wood-drop-distance 0);0%的村民采集木材
    (set-strategic-number sn-maximum-gold-drop-distance 0);0%的村民采集黄金
    (set-strategic-number sn-maximum-stone-drop-distance 0);0%的村民采集石头
    (set-strategic-number sn-percent-civilian-gatherers 0);0%的村民采集资源
    (set-strategic-number sn-percent-civilian-builders 0);0%的村民建造建筑
    (set-strategic-number sn-percent-civilian-explorers 0);0%的村民探索地图
    (set-strategic-number sn-maximum-hunt-drop-distance 0);不知道
    (set-strategic-number sn-maximum-fish-boat-drop-distance 0);村民捕鱼距离城镇中心0
    (set-strategic-number sn-task-ungrouped-soldiers 0);士兵不放哨(1为放哨)
    (set-strategic-number sn-total-number-explorers 0);所有的单位都不探索
    (disable-self)
)
上面是不动AI

(defrule
    (taunt-detected 1 1);检测到玩家1输入数字1
=>
    (acknowledge-taunt 1 1);注销
    (cc-add-resource wood 1);?加1木头
)

(defrule
    (taunt-detected 1 2);1P输入2
=>
    (acknowledge-taunt 1 2);注销
    (cc-add-resource food 1);加1食物
)

(defrule
    (taunt-detected 1 3);1P输入3
=>
    (acknowledge-taunt 1 3);注销
    (cc-add-resource stone 1);加1石头
)

(defrule
    (taunt-detected 1 4);1P输入4
=>
    (acknowledge-taunt 1 4);注销
    (cc-add-resource gold 1);加1黄金
)

这已经算是很白痴的数字AI了


回复LS:直接用记事本或下个AI编辑器(你到论坛AI区就能找到)

[ 本帖最后由 Amlo.Zc 于 2008-3-21 20:25 编辑 ]
页: [1]
查看完整版本: 怎么制作重复的数字AI