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

使用up-get-search-state 輸出報錯

[复制链接]

16

主题

0

精华

1701

积分

侯爵

耕战
305
鹰币
30
天龙币
0
回帖
76
附庸关系0
 楼主| 发表于 2021-8-21 00:30:11 | 显示全部楼层 |阅读模式
本帖最后由 chriscca 于 2021-8-21 00:33 编辑

如下,搜尋2個石礦,輸出結果顯示 INVALID ENCODING
請教一下高手有甚麼想法

(defconst gl-local-total 100)
(defconst gl-local-last 101)
(defconst gl-remote-total 102)
(defconst gl-remote-last 103)

(defrule
        (true)
=>
        (up-full-reset-search)
        (up-get-point position-self self-point-x)
        (up-set-target-point self-point-x)
        (up-filter-distance c: -1  c: 20)
        (up-filter-status c: status-resource c: list-active)
        (up-find-resource c: stone c: 2)
        (up-get-search-state gl-local-total)
)
(defrule
        (true)
=>
        (up-chat-data-to-self "remote-total = %d" g: gl-remote-total)
        (disable-self)
)


回复

使用道具 举报

16

主题

0

精华

1701

积分

侯爵

耕战
305
鹰币
30
天龙币
0
回帖
76
附庸关系0
 楼主| 发表于 2021-8-21 01:40:34 | 显示全部楼层
找到問題了
我自己加了JUMP的邏輯 反覆檢索
可能是系統在執行這個搜尋指令上跟不上反覆的節奏
導致數據導出失敗
看來配上JUMP使用要謹慎
回复

使用道具 举报

本版积分规则

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

GMT+8, 2024-4-29 07:10 , Processed in 0.113154 second(s), 34 queries , File On.

Powered by Hawk Studio  QS Security Corp.® Licensed

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

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