ChangeCustomItemTextColor » 历史记录 » 版本 1
machenhe, 2022-05-11 14:38
1 | 1 | machenhe | _*%{color:green}changeCustomItemTextColor%*_ |
---|---|---|---|
2 | 设定自定义装备属性标题文本颜色 |
||
3 | |||
4 | 标签:命令定义|changeCustomItemTextColor |
||
5 | |||
6 | *格式* |
||
7 | |命令名 |参数1 |参数2 | |
||
8 | |changeCustomItemTextColor |装备位id |颜色编码id | |
||
9 | |||
10 | 说明: |
||
11 | * 参数1: 装备位id |
||
12 | ** 0-16 指定id装备位中的道具 |
||
13 | 参见装备位id说明[[装备位置]] |
||
14 | ** -1 |
||
15 | 当前打开的自定义道具栏中的道具 |
||
16 | 当前拾取道具 |
||
17 | |||
18 | * 参数2: [[颜色编码id]][0-255] |
||
19 | |||
20 | - |
||
21 | - |
||
22 | |||
23 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
24 | |||
25 | bq. [<notextile>@</notextile>main] |
||
26 | #if |
||
27 | equal [[装备位置|<$dress>]] |
||
28 | #act |
||
29 | [[messageBox]] 特戒提示:请穿上衣服再来测试! |
||
30 | break |
||
31 | |
||
32 | #if |
||
33 | #say |
||
34 | <自定义装备属性测试>\\ \\ |
||
35 | <装备位:衣服>\\ \\ |
||
36 | |
||
37 | <赋值属性文本标题/<notextile>@@</notextile>inputString0>\\ \\ |
||
38 | <获取属性文本标题/<notextile>@</notextile>获取文字>\\ \\ |
||
39 | |
||
40 | <赋值属性文本标题颜色/<notextile>@@</notextile>inputInteger0>\\ \\ |
||
41 | <获取属性文本标题颜色/<notextile>@@</notextile>标题颜色>\\ \\ |
||
42 | |
||
43 | <打开角色界面,看下衣服tips/<notextile>@</notextile>角色界面>\\ \\ |
||
44 | <绑定显示属性且赋值/<notextile>@</notextile>属性赋值>\\ \\ |
||
45 | |
||
46 | [<notextile>@</notextile>inputString0] |
||
47 | #act |
||
48 | [[changeCustomItemText]] 0 s0 |
||
49 | %{color:lightGrey};print命令在控制台输出文件内容% |
||
50 | print 赋值为<$str(s0)> |
||
51 | |
||
52 | [<notextile>@</notextile>获取文字] |
||
53 | #act |
||
54 | [[getCustomItemText]] 0 s0 |
||
55 | print s0 |
||
56 | |
||
57 | [<notextile>@</notextile>inputInteger0] |
||
58 | #or |
||
59 | [[small]] n0 0 |
||
60 | [[large]] n0 255 |
||
61 | #act |
||
62 | [[sendMsg]] 6 请输入[0-255]颜色编码 |
||
63 | break |
||
64 | |
||
65 | #if |
||
66 | #act |
||
67 | *%{color:green}changeCustomItemTextColor%* 0 n0 |
||
68 | sendMsg 6 自定义装备属性文本标题颜色赋值完毕 |
||
69 | |
||
70 | [<notextile>@</notextile>标题颜色] |
||
71 | #act |
||
72 | [[getCustomItemTextColor]] 0 n0 |
||
73 | print 文本标题颜色id:<$str(n0)> |
||
74 | |
||
75 | [<notextile>@</notextile>角色界面] |
||
76 | #act |
||
77 | openSysUi 1 0 |
||
78 | |
||
79 | [<notextile>@</notextile>属性赋值] |
||
80 | #act |
||
81 | %{color:lightGrey};衣服栏 属性0 绑定maxDc(显示id3)% |
||
82 | [[changeCustomItemAbil]] 0 0 1 3 |
||
83 | [[changeCustomItemValue]] 0 0 = 222222 |
||
84 | |
||
85 | %{color:lightGrey};衣服栏 属性1 绑定显示id8% |
||
86 | changeCustomItemAbil 0 1 1 8 |
||
87 | changeCustomItemValue 0 1 = 11111 |
||
88 | |
||
89 | sendMsg 6 自定义装备属性赋值完毕 |