GetCustomItemValue-gee » 历史记录 » 版本 1
tejie, 2024-07-02 11:10
| 1 | 1 | tejie | h4. _*{color:green}getCustomItemValue*_ |
|---|---|---|---|
| 2 | |||
| 3 | 指定 装备位 自定义属性 指定值 取值与百分比类型 |
||
| 4 | |||
| 5 | gee系列兼容 |
||
| 6 | 注意与gom同名命令的区别 [[getCustomItemValue]] |
||
| 7 | |||
| 8 | 标签:命令定义|getCustomItemValue>getCustomItemValue |
||
| 9 | |||
| 10 | *格式* |
||
| 11 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 | |
||
| 12 | |getCustomItemValue |装备位id |自定义属性id |变量1保存返回值|变量2保存百分比类型 |取哪个值 | |
||
| 13 | |||
| 14 | * 参数1: [[装备位置|装备位id]] |
||
| 15 | |||
| 16 | * 参数2: 每件装备可设定20个自定义属性(0~19) |
||
| 17 | |||
| 18 | * 参数3: 变量1,用来保存返回值 |
||
| 19 | |||
| 20 | * 参数4: 变量2,用来保存返回值的百分比类型 |
||
| 21 | |||
| 22 | * 参数5: 取指定自定义属性的哪个值(每个自定义属性可设定3个值) |
||
| 23 | 参数5缺省或0,值取1 |
||
| 24 | 参数5=1,值取2 |
||
| 25 | 参数5=2,值取3 |
||
| 26 | |||
| 27 | - |
||
| 28 | - |
||
| 29 | |||
| 30 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 31 | |||
| 32 | bq. <notextile>[@main]</notextile> |
||
| 33 | #if |
||
| 34 | [[checkUseItem]] 1 |
||
| 35 | #act |
||
| 36 | goto <notextile>@通用设定</notextile> |
||
| 37 | #elseAct |
||
| 38 | [[sendTipsMsg]] 请穿戴武器后测试/scolor=222 |
||
| 39 | break |
||
| 40 | <notextile></notextile> |
||
| 41 | <notextile>[@取值设定]</notextile> |
||
| 42 | #if |
||
| 43 | #say |
||
| 44 | <notextile><取值_缺省/@取值1_缺省></notextile> \ \ |
||
| 45 | <notextile><取值_0/@取值1_0></notextile> \ \ |
||
| 46 | <notextile><取值2/@取值2></notextile> \ \ |
||
| 47 | <notextile><取值3/@取值3></notextile> |
||
| 48 | <notextile></notextile> |
||
| 49 | <notextile></notextile> |
||
| 50 | <notextile>[@通用设定]</notextile> |
||
| 51 | #act |
||
| 52 | %{color:lightGrey};-颜色设定% |
||
| 53 | [[setCustomItemAbil]] 1 0 0 222 |
||
| 54 | <notextile></notextile> |
||
| 55 | %{color:lightGrey};-显示属性绑定% |
||
| 56 | [[setCustomItemAbil]] 1 0 1 3 |
||
| 57 | <notextile></notextile> |
||
| 58 | %{color:lightGrey};-内部位置设定% |
||
| 59 | [[setCustomItemAbil]] 1 0 2 1 |
||
| 60 | <notextile></notextile> |
||
| 61 | %{color:lightGrey};-百分比设定% |
||
| 62 | <notextile>goto @百分比设定</notextile> |
||
| 63 | <notextile></notextile> |
||
| 64 | %{color:lightGrey};-模块位置设定% |
||
| 65 | [[setCustomItemAbil]] 1 0 4 1 |
||
| 66 | <notextile></notextile> |
||
| 67 | %{color:lightGrey};-赋值% |
||
| 68 | [[setCustomItemValueEx]] 1 0 = 10 20 30 |
||
| 69 | <notextile></notextile> |
||
| 70 | <notextile>[@百分比设定]</notextile> |
||
| 71 | #say |
||
| 72 | <text:请输入百分比类型:0:0/<notextile>@@</notextile>inPutInteger1(请输入0~3)> |
||
| 73 | <notextile></notextile> |
||
| 74 | <notextile>[@inPutInteger1]</notextile> |
||
| 75 | #or |
||
| 76 | [[large]] N1 3 |
||
| 77 | [[small]] N1 0 |
||
| 78 | #act |
||
| 79 | [[sendTipsMsg]] 请输入数字0~2/fcolor=222 |
||
| 80 | #elseAct |
||
| 81 | %{color:lightGrey};-百分比设定% |
||
| 82 | [[setCustomItemAbil]] 1 0 3 N1 |
||
| 83 | [[print]] 百分比类型设定完毕 |
||
| 84 | goto <notextile>@取值设定</notextile> |
||
| 85 | <notextile></notextile> |
||
| 86 | <notextile>[@取值1_缺省]</notextile> |
||
| 87 | #act |
||
| 88 | *{color:green}getCustomItemValue* 1 0 N1 N2 |
||
| 89 | [[print]] 值1=<notextile><$str(N1)>,百分比类型<$str(N2)></notextile> |
||
| 90 | <notextile></notextile> |
||
| 91 | <notextile>[@取值1_0]</notextile> |
||
| 92 | #act |
||
| 93 | *{color:green}getCustomItemValue* 1 0 N1 N2 0 |
||
| 94 | [[print]] 值1=<notextile><$str(N1)>,百分比类型<$str(N2)></notextile> |
||
| 95 | <notextile></notextile> |
||
| 96 | <notextile>[@取值2]</notextile> |
||
| 97 | #act |
||
| 98 | *{color:green}getCustomItemValue* 1 0 N1 N2 1 |
||
| 99 | print 值2=<notextile><$str(N1)>,百分比类型<$str(N2)></notextile> |
||
| 100 | <notextile></notextile> |
||
| 101 | <notextile>[@取值3]</notextile> |
||
| 102 | #act |
||
| 103 | *{color:green}getCustomItemValue* 1 0 N1 N2 2 |
||
| 104 | [[print]] 值3=<notextile><$str(N1)>,百分比类型<$str(N2)></notextile> |