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