多选背包 » 历史记录 » 版本 5
tejie, 2025-03-30 14:34
| 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 | 4 | tejie | *openChkBag* |
| 58 | 1 | tejie | <notextile></notextile> |
| 59 | [@提交多选结果] |
||
| 60 | #if |
||
| 61 | #act |
||
| 62 | 4 | tejie | *sbmtBagChk* |
| 63 | 1 | tejie | <notextile></notextile> |
| 64 | #if tbl sys_tbl_bagSlct s0 |
||
| 65 | #act |
||
| 66 | mov s$背包格 <$str(s0)> |
||
| 67 | 3 | tejie | mov s$物品名 <$tbl(sys_tbl_bagSlct,s0,name)> |
| 68 | 5 | tejie | mov s$数量 <$tbl(sys_tbl_bagSlct,s0,count)> |
| 69 | 4 | tejie | *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 | print 格子--id:<$str(s0)> |
||
| 83 | print 物品名称:<$str(s1)> |
||
| 84 | print 物品数量:<$str(s2)> |
||
| 85 | print 选中状态:<$str(s3)> |
||
| 86 | <notextile></notextile> |
||
| 87 | #if |
||
| 88 | %{color:lightGrey};-此处可设定,满足条件才可勾选% |
||
| 89 | equal s3 0 |
||
| 90 | #act |
||
| 91 | %{color:lightGrey};-满足选中条件的格子,设置为未选中% |
||
| 92 | 4 | tejie | *setBagGrid* s0 0 |
| 93 | 1 | tejie | break |
| 94 | <notextile></notextile> |
||
| 95 | #if |
||
| 96 | equal s3 1 |
||
| 97 | #act |
||
| 98 | %{color:lightGrey};-满足未选中条件的格子,设置为选中% |
||
| 99 | 4 | tejie | *setBagGrid* s0 1 |
| 100 | 1 | tejie | break |