SonicX 发表于 2004-11-27 21:42:21

常用同盟对话

一下对话均是取自系统自带对白,适合任何语言帝国2版本
;市场建造完毕时送出,告知同盟可以进行贸易了
(defrule
(building-type-count market > 0)
=>
(chat-to-allies-using-id 22110)
(disable-self)
)
;码头建造完毕,可以进行海洋贸易
(defrule
(building-type-count dock > 0)
=>
(chat-to-allies-using-id 22112)
(disable-self)
)
;发送同盟聊天:敌人在我的城镇内
(defrule
(true)
=>
(enable-timer 10 0)
(disable-self)
)

(defrule
(town-under-attack)
;受到大地之母单位攻击也算在内
(players-military-population any-enemy > 10)
;判断一下敌人的数量,大于10个才求助
(timer-triggered 10)
=>
(disable-timer 10)
(chat-to-allies-using-id 22115);向所有同盟国发送消息
(enable-timer 10 120) ;每120秒再检查一次
)
;响应年代
;当玩家在聊天窗口输入42(what age are you in)时回应,仅针对同盟玩家
(defrule
(taunt-detected any-ally 42)
(current-age == dark-age) ;黑暗
=>
(acknowledge-taunt this-any-ally 42)
(chat-to-player-using-id this-any-ally 22165)
)
(defrule
(taunt-detected any-ally 42)
(current-age == feudal-age) ;封建
=>
(acknowledge-taunt this-any-ally 42)
(chat-to-player-using-id this-any-ally 22166)
)
(defrule
(taunt-detected any-ally 42)
(current-age == castle-age) ;城堡
=>
(acknowledge-taunt this-any-ally 42)
(chat-to-player-using-id this-any-ally 22167)
)
(defrule
(taunt-detected any-ally 42)
(current-age >= imperial-age) ;帝王
=>
(acknowledge-taunt this-any-ally 42)
(chat-to-player-using-id this-any-ally 22168)
)

;放弃游戏可以使用的对白
(chat-to-all-using-range 22304 17)
(chat-to-all-using-id 22322)
页: [1]
查看完整版本: 常用同盟对话