- ke中all的用法 all {动作列表} #匹配动作列表的返回值是否都为是,否则返回false
我想将两个判断条件通过all连接在一起,该如何正确写出?
条件一:check papi *%xconomy_balance_value% >= *100
条件二:check papi *%player_points% >= *100
- 我目前的写法如下,但是报错了:
- - condition: all[ check papi *%xconomy_balance_value% >= *100 check papi *%player_points% >= *100]
有大佬知道怎么解决吗
- - condition: all [ check papi *%xconomy_balance_value% >= *100 check papi *%player_points% >= *100]
- [21:59:32] [Server thread/INFO]: [TrMenu] Unexpected exception while parsing kether shell:
- [21:59:32] [Server thread/INFO]: Line 1 of block "main": def main = { all [ check papi *%xconomy_balance_value% >= *100 check papi *%player_points% >= *100] }
- [21:59:32] [Server thread/INFO]: Unknown action }
报错了
- - condition: all [ check papi "%xconomy_balance_value%" >= 100 check papi "%player_points%" >= 100]
- [22:10:04] [Server thread/INFO]: [TrMenu] Unexpected exception while parsing kether shell:
- [22:10:04] [Server thread/INFO]: Line 1 of block "main": def main = { all [ check papi "%xconomy_balance_value%"
- [22:10:04] [Server thread/INFO]: Unknown action %xconomy_balance_value%
大佬请看
- - condition: 'all [ check papi *%xconomy_balance_value% >= *100 check papi *%player_points% >= *100 ]'
抱歉,
- - condition: all [ check papi *%xconomy_balance_value% >= *100 check papi *%player_points% >= *100]
lytDARK 发表于 2023-12-6 22:18
抱歉,这个是对的,但是能不能让我看看上下文?
- 果: # 叫做 #的图标,写在layout里面了
- display: #图标显示部分
- material: apple #图标的材质
- name: '神秘果实'
- action: #按钮的动作
- Left:
- - 'sound: BLOCK_NOTE_BLOCK_COW_BELL'
- - condition: all [ check papi "%xconomy_balance_value%" >= 100 check papi "%player_points%" >= 100]
- actions:
- - 'tell: 材料足够'
- deny:
- - 'tell: 材料不足'
- - 'take-money: 300'
- - 'tell: 你失去了300金币'