翔鹰帝国网|帝国时代论坛|帝国时代系列|神话时代
 找回密码
 注册翔鹰会员(昵称)
搜索
查看: 2798|回复: 0

[资料] 常用同盟对话

[复制链接]

7

主题

0

精华

5257

积分

圣徒

耕战
1048
鹰币
62
天龙币
0
回帖
51

蛟龙勋章

附庸关系0
发表于 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)
回复

使用道具 举报

本版积分规则

排行榜|小黑屋|翔鹰帝国

GMT+8, 2024-11-16 01:44 , Processed in 0.085254 second(s), 26 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

Copyright © 2001-2023, Hawkaoe.net All Rights Reserved

快速回复 返回顶部 返回列表