项目

一般

简介

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

tejie, 2024-02-20 17:53

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