有没有办法让AI进攻或者防守一个指定的玩家
我之前试过这种形式:(defrule
(event-detected trigger XXX)
=>
(set-strategic-number sn-target-player-number X)
(disable-self)
)
但效果不佳,有大佬能帮忙解答一下吗?非常感谢
本帖最后由 wongyuhua 于 2021-8-31 23:46 编辑
barbarian2.18不是有这个功能么?发消息233让野蛮人专门攻击3号玩家10分钟,234让野蛮人攻击4号玩家,235让野蛮人攻击5号玩家,23x以此类推,决定版的Promi AI应该类似。参考:
(defrule
(taunt-detected any-human-ally 233)
(nor (stance-toward 3 ally)
(player-number 3))
(players-building-count 3 > 0)
=>
(acknowledge-taunt every-ally 233)
(enable-timer 23 600)
(set-strategic-number sn-target-player-number 3)
(set-strategic-number sn-focus-player-number 3)
(set-strategic-number sn-safe-town-size 45)
(set-goal gl-fixed-target-player YES)
(set-goal gl-flexible-target-fix -1)
(chat-to-player my-player-number chat-177)
(up-chat-data-to-player every-ally target-player-chat s: sn-target-player-number)
)
有点高深,来吃吃瓜{:149:}
页:
[1]