反应 (动作组)
常规
actions:
- 'tell: Hello, %player_name%'actions: 'tell: Hello, %player_name%'三元动作组
actions:
all:
- condition: 'js: utils.chance(0.1)'
actions:
- 'tell: Prize 1'
- 'return'
- condition: 'js: utils.chance(0.5)'
actions:
- 'tell: Prize 2'
- 'return'
- condition: ''
actions:
- 'tell: Prize 3'套娃式动作组
by @Rubenicos
注意
动作做的执行结果取决于是否有 return 动作返回,若有返回则为 false
最后更新于