GetAllCustomItemValueByTextLine » 历史记录 » 版本 1
tejie, 2024-07-02 11:28
| 1 | 1 | tejie | h4. _*{color:green}getAllCustomItemValueByTextLine*_ |
|---|---|---|---|
| 2 | |||
| 3 | 获取 指定绑定显示属性,指定行变量,指定百分比类型值1和,值2和,值2和 |
||
| 4 | |||
| 5 | gee系列兼容 |
||
| 6 | |||
| 7 | 标签:命令定义|getAllCustomItemValueByTextLine>getAllCustomItemValueByTextLine |
||
| 8 | |||
| 9 | *格式* |
||
| 10 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 |参数6 | |
||
| 11 | |getAllCustomItemValueByTextLine |被绑定显示id |属性值类型 |text变量行号 |变量1返回值1和 |变量2返回值2和 |变量3返回值3和 | |
||
| 12 | |||
| 13 | * 参数1:被绑定显示id 1~60 |
||
| 14 | |||
| 15 | * 参数2:属性值类型 |
||
| 16 | -1 不限; |
||
| 17 | 0 点数; |
||
| 18 | 1 单件百分比; |
||
| 19 | 2 全身百分比; |
||
| 20 | |||
| 21 | * 参数3:text变量行号 |
||
| 22 | |||
| 23 | * 参数4:变量1,返回值1和 |
||
| 24 | |||
| 25 | * 参数5:变量2,返回值2和 |
||
| 26 | |||
| 27 | * 参数6:变量3,返回值3和 |
||
| 28 | |||
| 29 | |||
| 30 | - |
||
| 31 | - |
||
| 32 | |||
| 33 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 34 | |||
| 35 | bq. <notextile>[@main]</notextile> |
||
| 36 | #if |
||
| 37 | [[checkUseItem]] 0 |
||
| 38 | [[checkUseItem]] 1 |
||
| 39 | #act |
||
| 40 | goto <notextile>@通用设定</notextile> |
||
| 41 | #elseAct |
||
| 42 | [[sendTipsMsg]] 请穿戴武器衣服后测试/scolor=222 |
||
| 43 | break |
||
| 44 | <notextile></notextile> |
||
| 45 | #if |
||
| 46 | #say |
||
| 47 | <被绑定显示属性8_值类型-1统计/<notextile>@</notextile>值类型-1> \ \ |
||
| 48 | <被绑定显示属性8_值类型0统计/<notextile>@</notextile>值类型0> \ \ |
||
| 49 | <被绑定显示属性8_值类型1统计/<notextile>@</notextile>值类型1> \ \ |
||
| 50 | <被绑定显示属性8_值类型2统计/<notextile>@</notextile>值类型2> \ \ |
||
| 51 | <notextile></notextile> |
||
| 52 | <notextile></notextile> |
||
| 53 | [<notextile>@</notextile>通用设定] |
||
| 54 | #act |
||
| 55 | %{color:lightGrey};-衣服 属性0 绑定显示属性8% |
||
| 56 | [[setCustomItemAbil]] 0 0 1 8 |
||
| 57 | [[setCustomItemAbil]] 0 0 3 1 |
||
| 58 | <notextile></notextile> |
||
| 59 | %{color:lightGrey};-衣服 属性0 赋值% |
||
| 60 | [[setCustomItemValueEx]] 0 0 = 1 2 3 |
||
| 61 | <notextile></notextile> |
||
| 62 | %{color:lightGrey};-武器 属性0 绑定显示属性8% |
||
| 63 | [[setCustomItemAbil]] 1 0 1 8 |
||
| 64 | [[setCustomItemAbil]] 1 0 3 0 |
||
| 65 | <notextile></notextile> |
||
| 66 | %{color:lightGrey};-武器 属性0 赋值% |
||
| 67 | [[setCustomItemValueEx]] 1 0 = 1 20 30 |
||
| 68 | <notextile></notextile> |
||
| 69 | %{color:lightGrey};-项链 属性0 绑定显示属性8% |
||
| 70 | [[setCustomItemAbil]] 3 0 1 8 |
||
| 71 | [[setCustomItemAbil]] 3 0 3 2 |
||
| 72 | <notextile></notextile> |
||
| 73 | %{color:lightGrey};-项链 属性0 赋值% |
||
| 74 | [[setCustomItemValueEx]] 3 0 = 1 9 9 |
||
| 75 | <notextile></notextile> |
||
| 76 | [<notextile>@</notextile>值类型-1] |
||
| 77 | #act |
||
| 78 | *{color:green}getAllCustomItemValueByTextLine* 8 -1 1 N1 N2 N3 |
||
| 79 | [[print]] 被绑定显示属性8_值类型-1求和 |
||
| 80 | [[print]] 值1合计:<notextile><$str(N1)>,值2合计:<$str(N2)>,值3合计:<$str(N3)></notextile> |
||
| 81 | <notextile></notextile> |
||
| 82 | [<notextile>@</notextile>值类型0] |
||
| 83 | #act |
||
| 84 | *{color:green}getAllCustomItemValueByTextLine* 8 0 1 N1 N2 N3 |
||
| 85 | [[print]] 被绑定显示属性8_值类型0求和 |
||
| 86 | [[print]] 值1合计:<notextile><$str(N1)>,值2合计:<$str(N2)>,值3合计:<$str(N3)></notextile> |
||
| 87 | <notextile></notextile> |
||
| 88 | [<notextile>@</notextile>值类型1] |
||
| 89 | #act |
||
| 90 | *{color:green}getAllCustomItemValueByTextLine* 8 1 1 N1 N2 N3 |
||
| 91 | [[print]] 被绑定显示属性8_值类型1求和 |
||
| 92 | [[print]] 值1合计:<notextile><$str(N1)>,值2合计:<$str(N2)>,值3合计:<$str(N3)></notextile> |
||
| 93 | <notextile></notextile> |
||
| 94 | [<notextile>@</notextile>值类型2] |
||
| 95 | #act |
||
| 96 | *{color:green}getAllCustomItemValueByTextLine* 8 2 1 N1 N2 N3 |
||
| 97 | [[print]] 被绑定显示属性8_值类型2求和 |
||
| 98 | [[print]] 值1合计:<notextile><$str(N1)>,值2合计:<$str(N2)>,值3合计:<$str(N3)></notextile> |
||
| 99 | |||
| 100 | - |
||
| 101 | - |
||
| 102 | |||
| 103 | *行变量设定示意* |
||
| 104 | |!行变量设定示意.png!| |