ChangeDamageValue » 历史记录 » 版本 1
yangdefeng, 2023-06-23 19:17
1 | 1 | yangdefeng | _*%{color:green}changeDamageValue%*_ |
---|---|---|---|
2 | |||
3 | 变更伤害结果 |
||
4 | |||
5 | 标签:命令定义|changeDamageValue |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1|参数2 |参数3 | |
||
9 | |changeDamageValue|类型 |操作符 |值 | |
||
10 | |||
11 | *说明* |
||
12 | * 参数1:类型 |
||
13 | ** 0:数值 |
||
14 | ** 1:百分比 |
||
15 | |||
16 | * 参数2:操作符 + - = |
||
17 | |||
18 | * 参数3:操作数值 |
||
19 | |||
20 | |||
21 | 相关命令 |
||
22 | [[playCutHurt]] |
||
23 | |||
24 | |||
25 | 如果脚本中同时有 [[changeDamageValue]] [[playCutHurt]] 两个命令 |
||
26 | playCutHurt 命令会对 changeDamageValue 命令结果进行二次修正 |
||
27 | |||
28 | |||
29 | |||
30 | - |
||
31 | - |
||
32 | |||
33 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
34 | |||
35 | bq. %{color:lightGrey};QF触发器_人物攻击目标掉血前触发% |
||
36 | [@attackDamage] |
||
37 | #act |
||
38 | sendMsg 6 本次掉血值<$damageValue> |
||
39 | changeDamageValue 0 = 0 |
||
40 | |||
41 | |||
42 | bq. %{color:lightGrey};QF触发器_人物被攻击掉血前触发% |
||
43 | [@struckDamage] |
||
44 | #act |
||
45 | sendMsg 6 本次掉血值<$damageValue> |
||
46 | changeDamageValue 1 + 10 |
||
47 | |||
48 | |||
49 | bq. %{color:lightGrey};QF触发器_宝宝攻击目标掉血前触发% |
||
50 | [@slaveAttackDamage] |
||
51 | #act |
||
52 | sendMsg 6 本次掉血值<$damageValue> |
||
53 | changeDamageValue 0 - 10 |
||
54 | |||
55 | |||
56 | bq. %{color:lightGrey};QF触发器_宝宝被攻击掉血前触发% |
||
57 | [@slaveStruckDamage] |
||
58 | #act |
||
59 | sendMsg 6 本次掉血值<$damageValue> |
||
60 | changeDamageValue 1 - 20 |