SetClientBuff » 历史记录 » 版本 2
yangdefeng, 2022-07-12 09:54
| 1 | 1 | yangdefeng | h4. _*%{color:green}setClientBuff%*_ |
|---|---|---|---|
| 2 | |||
| 3 | 游戏窗口左上角添加buff图标 |
||
| 4 | |||
| 5 | 标签:命令定义|setClientBuff |
||
| 6 | |||
| 7 | *格式* |
||
| 8 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 | |
||
| 9 | |setClientBuff |无效参数 |buffId |图标资源 |显示时长 |tips文字 | |
||
| 10 | |||
| 11 | *说明* |
||
| 12 | * 参数1: 无效参数,填写-1 |
||
| 13 | |||
| 14 | * 参数2: buffId |
||
| 15 | |||
| 16 | * 参数3: 图标资源,参见 [[资源编辑器]] |
||
| 17 | |||
| 18 | * 参数4: 显示时长,会有倒计时,单元秒;-1表示永久,不再出现倒计时 |
||
| 19 | |||
| 20 | * 参数5: tips文字 |
||
| 21 | 2 | yangdefeng | 参考[[itemDescList.txt]]解析规则 |
| 22 | 举例 |
||
| 23 | mov s$tip |
||
| 24 | inc s$tip \- |
||
| 25 | inc s$tip \246/[隐藏属性]:/249/单件触发 |
||
| 26 | inc s$tip \246/[隐藏属性]:/229/人物生命值+2% |
||
| 27 | inc s$tip \- |
||
| 28 | inc s$tip \246/[物品类别]:/254/制式衣服 |
||
| 29 | inc s$tip \246/[物品品阶]:/250/一阶 |
||
| 30 | inc s$tip \- |
||
| 31 | inc s$tip \253/⌒三千大世界·谁主沉浮路⌒ |
||
| 32 | |
||
| 33 | 显示效果 |
||
| 34 | !自定义tips文本.png! |
||
| 35 | 1 | yangdefeng | |
| 36 | |||
| 37 | |||
| 38 | - |
||
| 39 | - |
||
| 40 | |||
| 41 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 42 | |||
| 43 | - |
||
| 44 | - |
||
| 45 | |||
| 46 | bq. [<notextile>@</notextile>main] |
||
| 47 | #act |
||
| 48 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
| 49 | #say |
||
| 50 | <加buff图标1/<notextile>@</notextile>加buff1>\ \ |
||
| 51 | <加buff图标2/<notextile>@</notextile>加buff2>\ \ |
||
| 52 | <删buff图标1/<notextile>@</notextile>删buff1>\ \ |
||
| 53 | <删buff图标2/<notextile>@</notextile>删buff2>\ \ |
||
| 54 | |
||
| 55 | [<notextile>@</notextile>加buff1] |
||
| 56 | #act |
||
| 57 | *{color:green}setClientBuff* -1 1 0000025 -1 254/[隐藏属性]:\70/单件触发 |
||
| 58 | |
||
| 59 | [<notextile>@</notextile>加buff2] |
||
| 60 | #act |
||
| 61 | *{color:green}setClientBuff* -1 2 0000026 20 buff2\文字备注 |
||
| 62 | |
||
| 63 | [<notextile>@</notextile>删buff1] |
||
| 64 | #act |
||
| 65 | [[closeClientBuff]] 1 |
||
| 66 | |
||
| 67 | [<notextile>@</notextile>删buff2] |
||
| 68 | #act |
||
| 69 | [[closeClientBuff]] 2 |