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

[求助] duc时忽略城堡和炮塔

[复制链接]

11

主题

0

精华

164

积分

男爵

耕战
5
鹰币
30
天龙币
0
回帖
37
附庸关系0
 楼主| 发表于 2020-5-30 20:17:38 本帖来自手机 | 显示全部楼层 |阅读模式
duc选择己方除冲车投石机之外的军队,去攻击对方城镇中心,巡逻过去。怎么让其忽略城堡和炮塔的攻击,直接去城镇中心。因为这些军队打城堡炮塔太亏了,半天打不了一个。
还有,冲车巡逻去目的地的时候可以攻击炮塔,那投石机呢? 碰见炮塔知道展开并攻击吗?还是它忽略炮塔直接去目的地?
回复

使用道具 举报

3

主题

0

精华

107

积分

男爵

耕战
10
鹰币
50
天龙币
0
回帖
23
附庸关系0
发表于 2020-5-30 21:12:08 | 显示全部楼层
;====================================================================
;----------------------------突袭城镇中心-----------------------
; ====================================================================
(defrule
        (or (civ-selected aztec)
                                        (or (civ-selected mayan)
                                                (civ-selected incan)))
        (stance-toward focus-player enemy)
        (unit-type-count eagle-warrior-line > 20)
        (up-group-size c: 5 < 60)
=>
        (up-full-reset-search)
        (up-filter-include cmdid-military -1 -1 -1)
        (up-filter-exclude -1 actionid-explore -1 -1)
        (up-find-local c: eagle-warrior-line c: 240)
        (up-remove-objects search-local object-data-group-flag >= 0)
;        (up-remove-objects search-local object-data-speed < 115)
        (up-create-group 0 60 c: 5)
)

(defrule
        (or (civ-selected aztec)
                                        (or (civ-selected mayan)
                                                (civ-selected incan)))
        (stance-toward focus-player enemy)
        (cc-players-unit-type-count any-enemy town-center > 0)
        (not        (town-under-attack))
        (unit-type-count eagle-warrior-line > 20)
        (up-allied-goal any-ally split-rule-goal != 78)
=>       
        (up-full-reset-search)
        (up-find-remote c: town-center c: 1)
        (up-set-target-object search-remote c: 0)
        (up-get-point position-object gl-enemy-position-x)
        (set-goal split-rule-goal 78))

(defrule
        (or (civ-selected aztec)
                (or (civ-selected mayan)
                        (civ-selected incan)))
        (up-group-size c: 5 > 17)
        (goal split-rule-goal 78)
        (up-timer-status 35 != timer-running)
;        (up-timer-status 38 != timer-running)
;        (up-timer-status 40 != timer-running)
;        (up-timer-status 9 != timer-running)
        (stance-toward focus-player enemy)
        (up-point-contains gl-enemy-position-x c: town-center)
        (up-set-target-object search-remote c: 0)
        (up-allied-goal any-ally split-rule-goal != 78)
=>       
        (up-set-group search-local c: 5)
;        (up-lerp-tiles safe-self-point-x gl-enemy-position-x c: +5)
        (up-target-objects 1 0 formation-line defensive)
        (chat-to-allies "224")
        (chat-to-allies "飞鹰集合突袭城镇中心")
        (up-send-flare gl-enemy-position-x)
        (enable-timer 35 120))

(defrule
        (stance-toward focus-player enemy)
        (unit-type-count cavalry-class > 20)
        (up-group-size c: 5 < 60)
=>
        (up-full-reset-search)
        (up-filter-include cmdid-military -1 -1 -1)
        (up-filter-exclude -1 actionid-explore -1 -1)
        (up-find-local c: cavalry-class c: 240)
        (up-remove-objects search-local object-data-group-flag >= 0)
        (up-remove-objects search-local object-data-speed < 115)
        (up-create-group 0 60 c: 5))

(defrule
        (stance-toward focus-player enemy)
        (unit-type-count cavalry-archer-class > 20)
        (up-group-size c: 6 < 60)
=>
        (up-full-reset-search)
        (up-filter-include cmdid-military -1 -1 -1)
        (up-find-local c: cavalry-archer-class c: 240)
        (up-remove-objects search-local object-data-group-flag >= 0)
        (up-remove-objects search-local object-data-speed < 100)
        (up-create-group 0 60 c: 6))
       
(defrule
        (stance-toward focus-player enemy)
        (unit-type-count archery-class > 20)
        (up-group-size c: 7 < 60)
=>
        (up-full-reset-search)
        (up-filter-include cmdid-military -1 -1 -1)
        (up-find-remote c: archery-class c: 240)
        (up-remove-objects search-local object-data-group-flag >= 0)
        (up-create-group 0 60 c: 7))

(defrule
        (stance-toward focus-player enemy)
        (unit-type-count infantry-class > 20)
        (up-group-size c: 8 < 60)
=>
        (up-full-reset-search)
        (up-filter-include cmdid-military -1 -1 -1)
        (up-find-remote c: infantry-class c: 240)
        (up-remove-objects search-local object-data-group-flag >= 0)
        (up-create-group 0 60 c: 8))

(defrule
        (stance-toward focus-player enemy)
        (cc-players-unit-type-count focus-player spearman-line < 20)
        (cc-players-unit-type-count any-enemy town-center > 0)
        (not        (town-under-attack))
        (unit-type-count cavalry-class > 20)
        (up-allied-goal any-ally split-rule-goal != 78)
=>       
        (up-full-reset-search)
        (up-find-remote c: town-center c: 1)
        (up-set-target-object search-remote c: 0)
        (up-get-point position-object gl-enemy-position-x)
        (set-goal split-rule-goal 78))

(defrule
        (up-group-size c: 5 > 17)
        (goal split-rule-goal 78)
        (up-timer-status 35 != timer-running)
;        (up-timer-status 38 != timer-running)
;        (up-timer-status 40 != timer-running)
;        (up-timer-status 9 != timer-running)
        (stance-toward focus-player enemy)
        (up-point-contains gl-enemy-position-x c: town-center)
        (up-set-target-object search-remote c: 0)
        (up-allied-goal any-ally split-rule-goal != 78)
=>       
        (up-set-group search-local c: 5)
;        (up-lerp-tiles safe-self-point-x gl-enemy-position-x c: +5)
        (up-target-objects 1 0 formation-line defensive)
        (up-set-group search-local c: 6)
        (up-target-objects 1 0 formation-line defensive)
        (up-set-group search-local c: 7)
        (up-target-objects 1 0 formation-line defensive)
        (up-set-group search-local c: 8)
        (up-target-objects 1 0 formation-line defensive)
        (chat-to-allies "224")
        (chat-to-allies "军队集合突袭城镇中心")
        (up-send-flare gl-enemy-position-x)
        (set-goal split-rule-goal 79)
        (enable-timer 35 120))

(defrule
        (goal split-rule-goal 79)
        (stance-toward focus-player enemy)
        (up-point-contains gl-enemy-position-x c: town-center)
        (up-set-target-object search-remote c: 0)
        (up-timer-status 35 == timer-running)
        (up-timer-status 36 != timer-running)
=>       
        (up-set-target-point gl-enemy-position-x)
        (up-filter-distance c: -1 c: 10)
        (up-filter-include cmdid-military -1 -1 -1)
        (up-find-local c: -1 c: 240)
        (up-remove-objects search-local object-data-target-id c:== town-center)
        (up-remove-objects search-local object-data-target == tower-class)
        (up-remove-objects search-local object-data-target-id c:== castle)
        (up-target-objects 1 0 -1 defensive)
        (enable-timer 36 10))

(defrule
        (players-unit-type-count any-ally flare > 0)
        (taunt-detected any-ally 224)
        (up-timer-status 37 != timer-running)
=>
        (up-full-reset-search)
        (up-find-flare gl-enemy-position-x)
        (up-set-target-point gl-enemy-position-x)
        (up-filter-distance c: -1 c: 18)
        (up-filter-include cmdid-military -1 -1 -1)
        (up-find-local c: -1 c: 240)
        (up-remove-objects search-local object-data-target-id c:== town-center)
        (up-remove-objects search-local object-data-target == tower-class)
        (up-remove-objects search-local object-data-target-id c:== castle)
        (up-target-point 0 0 -1 defensive)
        (acknowledge-taunt every-computer 224)
        (enable-timer 37 40))
回复

使用道具 举报

3

主题

0

精华

107

积分

男爵

耕战
10
鹰币
50
天龙币
0
回帖
23
附庸关系0
发表于 2020-5-30 21:12:25 | 显示全部楼层
本帖最后由 zbhcn 于 2020-5-31 20:42 编辑

重复回复
回复

使用道具 举报

11

主题

0

精华

164

积分

男爵

耕战
5
鹰币
30
天龙币
0
回帖
37
附庸关系0
 楼主| 发表于 2020-5-31 16:39:50 | 显示全部楼层
zbhcn 发表于 2020-5-30 21:12
;====================================================================
;---------------------------- ...

谢谢大神。然后冲车巨投呢?巡逻到tc城堡,还是直接巡逻到tc,它会自动打城堡呢?
回复

使用道具 举报

3

主题

0

精华

107

积分

男爵

耕战
10
鹰币
50
天龙币
0
回帖
23
附庸关系0
发表于 2020-5-31 20:37:20 | 显示全部楼层
本帖最后由 zbhcn 于 2020-5-31 20:38 编辑

(up-remove-objects search-local object-data-target-id c:== castle)前面加分号使其失效就行了
回复

使用道具 举报

11

主题

0

精华

164

积分

男爵

耕战
5
鹰币
30
天龙币
0
回帖
37
附庸关系0
 楼主| 发表于 2020-5-31 21:21:15 | 显示全部楼层
zbhcn 发表于 2020-5-31 20:37
(up-remove-objects search-local object-data-target-id c:== castle)前面加分号使其失效就行 ...

大神好强啊,有DUC的详细教程吗?
回复

使用道具 举报

本版积分规则

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

GMT+8, 2024-11-21 21:26 , Processed in 0.110725 second(s), 76 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

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

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