SetSuckDamage » 历史记录 » 版本 1
machenhe, 2022-04-29 17:26
1 | 1 | machenhe | _*%{color:green}setSuckDamage%*_ |
---|---|---|---|
2 | |||
3 | 设置角色受击时可吸收的总伤害值 |
||
4 | |||
5 | 标签:命令定义|setSuckDamage |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 |参数3 |参数4 | |
||
9 | |setSuckDamage |操作符 |总伤害吸收值 |单次受击吸收比例 |单次受击触发几率 | |
||
10 | |||
11 | 说明: |
||
12 | * 参数1:操作符(+,-,=),此为赋值操作,不是对总伤害值的修改 |
||
13 | ** +:将正值赋给总伤害吸收值 |
||
14 | ** =:将正值赋给总伤害吸收值,与“+”号相同作用 |
||
15 | ** -:将负值赋给总伤害吸收值 |
||
16 | |||
17 | * 参数2:数值 |
||
18 | |||
19 | * 参数3:单次受击伤害吸收比例,例如1=0.1%,500=50%,1000=100% |
||
20 | |||
21 | * 参数4:单次受击触发几率,范围:1-100 |
||
22 | |||
23 | *注意*: |
||
24 | * 总伤害吸收值变量:<$SUCKDAMAGEPOINT> |
||
25 | * 离线失效 |
||
26 | |||
27 | *%{color:deepskyblue}特戒引擎脚本示例:%*: |
||
28 | |||
29 | bq. [<notextile>@</notextile>吸收伤害1] |
||
30 | #act |
||
31 | _*%{color:green}setSuckDamage%*_ = 99999 900 80 |
||
32 | [[sendmsg]] 6 可吸收总伤害:<$SUCKDAMAGEPOINT> |
||
33 | |||
34 | bq. [<notextile>@</notextile>吸收伤害2] |
||
35 | #act |
||
36 | SetSuckDamage + 100 1000 100 |
||
37 | sendmsg 6 可吸收总伤害:<$SUCKDAMAGEPOINT> |
||
38 | |||
39 | bq. [<notextile>@</notextile>吸收伤害3] |
||
40 | #act |
||
41 | SetSuckDamage - 1 500 50 |
||
42 | sendmsg 6 可吸收总伤害:<$SUCKDAMAGEPOINT> |