项目

一般

简介

SetClientBuff » 历史记录 » 版本 3

tejie, 2025-11-14 14:03

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