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

[交流] barbarian.per 编写

 关闭 [复制链接]

67

主题

0

精华

366

积分

子爵

耕战
6
鹰币
804
天龙币
0
回帖
352
附庸关系0
发表于 2014-2-18 11:42:23 | 显示全部楼层 |阅读模式
在#load-if-not-defined SARACEN-CIV(defrule
        (goal gl-current-age gv-feudal)
        (building-type-count-total blacksmith == 1)
        (current-age == feudal-age)
        (gold-amount < 200)
        (can-sell-commodity wood)
        (commodity-selling-price wood >= 53)
        (or        (strategic-number sn-target-evaluation-ally-proximity != 9999)
                (and        (research-available ri-coinage)
                        (gold-amount < 50)))
        (nand        (goal gl-strategy eagle-rush)
                (stone-amount > minimum-stone-eagles))
        (current-age-time g:>= gl-required-current-age-time)
=>
        (sell-commodity wood)
        (chat-to-allies "gold")  ;新加了这句游戏就报错,rule too long、、、  原意是电脑没黄金chat我来给(毕竟贸易我会做)不要把木价压太低
)
#else
(defrule
        (goal gl-current-age gv-feudal)
        (building-type-count-total blacksmith == 1)
        (current-age == feudal-age)
        (gold-amount < 200)
        (can-sell-commodity wood)
        (commodity-selling-price wood >= 53)
        (or        (strategic-number sn-target-evaluation-ally-proximity != 9999)
                (and        (research-available ri-coinage)
                        (and        (gold-amount < 50)
                                (goal gl-strategy sling))))
        (current-age-time g:>= gl-required-current-age-time)
=>
        (sell-commodity wood)
        (chat-to-player my-player-number "Sell wood for up")
)
#end-if

回复

使用道具 举报

本版积分规则

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

GMT+8, 2024-12-23 21:48 , Processed in 0.084050 second(s), 21 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

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

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