UpdateBoxItem » 历史记录 » 版本 4
yangdefeng, 2022-05-20 17:07
1 | 3 | yangdefeng | h4. _*%{color:green}updateBoxItem%*_ |
---|---|---|---|
2 | 1 | machenhe | |
3 | 刷新指定itemBox格子,例如删除itemBox格子中的物品后使用updateBoxItem刷新为空的itemBox |
||
4 | |||
5 | 标签:命令定义|updateBoxItem |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 | |
||
9 | |updateBoxItem |itemBox编号 | |
||
10 | |||
11 | 说明: |
||
12 | 2 | yangdefeng | * 参数1: itemBox编号 |
13 | 1 | machenhe | |
14 | 3 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
15 | |||
16 | *使用前提1* |
||
17 | 请开启配置开关"isUseCustomOKPanel" |
||
18 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
19 | |配置节点|[[tjconfig|[tjconfig]]] | |
||
20 | |配置项 |isUseCustomOkPanel=1 | |
||
21 | |||
22 | - |
||
23 | - |
||
24 | 1 | machenhe | |
25 | bq. [<notextile>@</notextile>main] |
||
26 | 4 | yangdefeng | #act |
27 | [[clsMainUI]] |
||
28 | 1 | machenhe | #say |
29 | 4 | yangdefeng | <[[dlg_itemBox_|itemBox]]:0:-100001:0:0:0:-1:-1:*:tips> |
30 | <itemBox:1:-100001:0:200:0:-1:-1:*:tips> |
||
31 | 2 | yangdefeng | |
32 | 1 | machenhe | <[[dlg_text_|text]]:放入0:0:400/<notextile>@</notextile>放入0> |
33 | 2 | yangdefeng | <text:放入1:200:400/<notextile>@</notextile>放入1> |
34 | |
||
35 | 1 | machenhe | <text:删除0:0:600/<notextile>@</notextile>删除0> |
36 | 2 | yangdefeng | <text:删除1:200:600/<notextile>@</notextile>删除1> |
37 | |
||
38 | 1 | machenhe | |
39 | [<notextile>@</notextile>放入0] |
||
40 | 4 | yangdefeng | #if |
41 | [[checkBaItemCountEx]] 粗铁 5 |
||
42 | 1 | machenhe | #act |
43 | [[bagItemIntoBox]] 粗铁 0 5 |
||
44 | 4 | yangdefeng | #elseAct |
45 | [[messageBox]] 没有5个粗铁可以放入 |
||
46 | 1 | machenhe | |
47 | [<notextile>@</notextile>放入1] |
||
48 | 4 | yangdefeng | #if |
49 | checkBaItemCountEx 麻布 5 |
||
50 | 1 | machenhe | #act |
51 | bagItemIntoBox 麻布 1 5 |
||
52 | 4 | yangdefeng | messageBox 没有5个麻布可以放入 |
53 | 2 | yangdefeng | |
54 | 1 | machenhe | [<notextile>@</notextile>删除0] |
55 | 2 | yangdefeng | #act |
56 | [[delBoxItem]] 0 5 |
||
57 | *{color:green}updateBoxItem* 0 |
||
58 | |
||
59 | 1 | machenhe | [<notextile>@</notextile>删除1] |
60 | #act |
||
61 | delBoxItem 1 5 |
||
62 | updateBoxItem 0 |