PgCheckHpPer » 历史记录 » 版本 1
machenhe, 2022-04-29 17:21
1 | 1 | machenhe | _*%{color:green}pgCheckHpPer%*_ |
---|---|---|---|
2 | |||
3 | 检测角色生命的比例值是否满足条件 |
||
4 | |||
5 | 标签:命令定义|pgCheckHpPer |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 |参数3 | |
||
9 | |pgCheckHpPer |操作符 |比例值 |分母基数 | |
||
10 | |||
11 | 说明: |
||
12 | * 参数1:操作符(>,<,=) |
||
13 | |||
14 | * 参数2:比例值 |
||
15 | |||
16 | * 参数3:分母基数 |
||
17 | ** 空:默认为100,即百分比 |
||
18 | |||
19 | *%{color:deepskyblue}特戒引擎脚本示例:%*: |
||
20 | |||
21 | bq. [<notextile>@</notextile>PG检测血量] |
||
22 | #if |
||
23 | *%{color:green}pgCheckHpPer%* > 800 1000 |
||
24 | #act |
||
25 | [[sendmsg]] 6 血量大于千分之800 |
||
26 | |||
27 | bq. #if |
||
28 | pgCheckHpPer = 80 |
||
29 | #act |
||
30 | sendmsg 6 血量等于百分之80 |
||
31 | |||
32 | bq. #if |
||
33 | pgCheckHpPer < 8000 10000 |
||
34 | #act |
||
35 | sendmsg 6 血量小于万分之8000 |