项目

一般

简介

多选背包 » 历史记录 » 版本 7

tejie, 2026-01-04 11:10

1 1 tejie
h4. %{color:firebrick}多选背包%
2
3
*模块说明*
4
对背包中的道具格,进行勾选。
5
对勾选结果进行批量处理。
6
7 2 tejie
请在非战斗地图使用该功能。
8
如提交时,选中格子中的道具有变更,则该单元格不会处理。
9 1 tejie
10 2 tejie
11
*相关命令*
12 1 tejie
_*{color:green}openChkBag*_
13
打开多选背包界面
14
15
_*{color:green}setBagGrid*_
16
设置指定背包格的选中状态
17
18
_*{color:green}sbmtBagChk*_
19
提交多选结果
20
21
_*{color:green}delBagGrid*_
22
删除指定背包格中的道具
23
24 2 tejie
*相关qf触发器*
25 1 tejie
_*{color:green}[@clkChkBag]*_
26
点击多选背包中的格子时,触发
27
返回以下变量值
28
s0-格子id
29
s1-物品名称
30
s2-物品数量
31
s3-选中状态
32
33 2 tejie
*相关系统表*
34 1 tejie
_*{color:green}sys_tbl_bagSlct*_
35
提交多选结果时,对应的选中结果表
36
key-背包格id
37
name字段-物品名称
38
num字段-物品数量
39
40
-
41
-
42
43
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
44
45
-
46
-
47
48
bq. 
49
<notextile>[@main]</notextile>
50
#say
51
<notextile><打开多选背包/@打开多选背包>\ \</notextile>
52
<notextile><提交多选结果/@提交多选结果></notextile>
53
<notextile></notextile>
54
<notextile>[@打开多选背包]</notextile>
55
#if
56
#act
57 6 tejie
*{color:green}openChkBag*
58 1 tejie
<notextile></notextile>
59
[@提交多选结果]
60
#if
61
#act
62 6 tejie
*{color:green}sbmtBagChk*
63 1 tejie
<notextile></notextile>
64 7 tejie
#if tbl *{color:green}sys_tbl_bagSlct* s0
65 1 tejie
#act
66 7 tejie
[[mov]] s$背包格 <$str(s0)>
67
[[mov]] s$物品名 <$tbl(sys_tbl_bagSlct,s0,name)>
68
[[mov]] s$数量 <$tbl(sys_tbl_bagSlct,s0,count)>
69 6 tejie
*{color:green}delBagGrid* s$背包格
70 1 tejie
%{color:lightGrey};-删除勾选物品同时,可在此处给予对应货币。%
71
72
-
73
-
74
75
%{color:fireBrick}--..\Mir200\Envir\Market_Def\QFunction-0.txt
76
配置触发器%
77
78
bq. _*{color:green}<notextile>[@clkChkBag]</notextile>*_
79
#if
80
#act
81
%{color:lightGrey};-此处是调试信息输出%
82 7 tejie
[[print]] 格子--id:<$str(s0)>;物品名称:<$str(s1)>;物品数量:<$str(s2)>;选中状态:<$str(s3)>
83 1 tejie
<notextile></notextile>
84
#if
85
%{color:lightGrey};-此处可设定,满足条件才可勾选%
86 7 tejie
[[equal]] s3 0
87 1 tejie
#act
88
%{color:lightGrey};-满足选中条件的格子,设置为未选中%
89
*{color:green}setBagGrid* s0 0
90
break
91
<notextile></notextile>
92
#if
93 7 tejie
[[equal]] s3 1
94 1 tejie
#act
95
%{color:lightGrey};-满足未选中条件的格子,设置为选中%
96 6 tejie
*{color:green}setBagGrid* s0 1
97 7 tejie
[[break]]