GetCustomItemAbil » 历史记录 » 版本 1
tejie, 2024-07-02 11:05
| 1 | 1 | tejie | h4. _*{color:green}getCustomItemAbil*_ |
|---|---|---|---|
| 2 | |||
| 3 | 指定 装备位 自定义属性 绑定显示属性 取值 |
||
| 4 | |||
| 5 | gee系列兼容 |
||
| 6 | |||
| 7 | 标签:命令定义|getCustomItemAbil>getCustomItemAbil |
||
| 8 | |||
| 9 | *格式* |
||
| 10 | |命令名 |参数1 |参数2 |参数3 |参数4 | |
||
| 11 | |getCustomItemAbil |装备位id |自定义属性id |绑定类型 |绑定值 | |
||
| 12 | |||
| 13 | * 参数1: [[装备位置|装备位id]] |
||
| 14 | |||
| 15 | * 参数2: 每件装备可设定20个自定义属性(0~19) |
||
| 16 | |||
| 17 | * |
||
| 18 | |^. 参数3=0|参数4表示该自定义属性文本颜色设定值| |
||
| 19 | |^. 参数3=1|参数4表示该自定义属性被绑定显示属性id(0~60) |
||
| 20 | 0表示未绑定| |
||
| 21 | |^. 参数3=2|参数4表示该自定义属性内部位置设定值| |
||
| 22 | |^. 参数3=3|参数4表示该自定义属性百分比类型设定值 |
||
| 23 | 参数4=0 直接加数值点数 |
||
| 24 | 参数4=1 加此件装备该属性的百分比(如增加该武器攻击的10%) |
||
| 25 | 参数4=2 加角色全身该属性的百分比(如增加角色攻击的10%)| |
||
| 26 | |^. 参数3=4|tips中已有显示模块的位置 |
||
| 27 | 从上至下 1~14个位置 |
||
| 28 | 0表示自定义属性默认tips位置 |
||
| 29 | 参数3=2同行设定,优先级高于参数3=4的模块位置设定。| |
||
| 30 | |||
| 31 | |||
| 32 | - |
||
| 33 | - |
||
| 34 | |||
| 35 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 36 | |||
| 37 | bq. <notextile>[@main]</notextile> |
||
| 38 | #if |
||
| 39 | checkUseItem 1 |
||
| 40 | #act |
||
| 41 | goto <notextile>@通用设定</notextile> |
||
| 42 | #elseAct |
||
| 43 | [[sendTipsMsg]] 请穿戴武器后测试/scolor=222 |
||
| 44 | break |
||
| 45 | <notextile></notextile> |
||
| 46 | #if |
||
| 47 | #say |
||
| 48 | <notextile><百分比模式设定0/@百分比模式设定0> \ \</notextile> |
||
| 49 | <notextile><百分比模式设定1/@百分比模式设定1> \ \</notextile> |
||
| 50 | <notextile><百分比模式设定2/@百分比模式设定2></notextile> |
||
| 51 | <notextile></notextile> |
||
| 52 | <notextile></notextile> |
||
| 53 | <notextile></notextile> |
||
| 54 | <notextile>[@通用设定]</notextile> |
||
| 55 | #act |
||
| 56 | %{color:lightGrey};-颜色设定% |
||
| 57 | [[setCustomItemAbil]] 1 0 0 254 |
||
| 58 | <notextile></notextile> |
||
| 59 | %{color:lightGrey};-显示属性绑定% |
||
| 60 | [[setCustomItemAbil]] 1 0 1 3 |
||
| 61 | <notextile></notextile> |
||
| 62 | %{color:lightGrey};-内部位置设定% |
||
| 63 | [[setCustomItemAbil]] 1 0 2 1 |
||
| 64 | <notextile></notextile> |
||
| 65 | %{color:lightGrey};-模块位置设定% |
||
| 66 | [[setCustomItemAbil]] 1 0 4 1 |
||
| 67 | <notextile></notextile> |
||
| 68 | %{color:lightGrey};-赋值% |
||
| 69 | [[setCustomItemValue]] 1 0 = 10 |
||
| 70 | <notextile></notextile> |
||
| 71 | <notextile>[@测试输出]</notextile> |
||
| 72 | #act |
||
| 73 | *{color:green}getCustomItemAbil* 1 0 0 N1 |
||
| 74 | [[print]] 武器 0属性 颜色设定 <notextile><$str(N1)></notextile> |
||
| 75 | <notextile></notextile> |
||
| 76 | *{color:green}getCustomItemAbil* 1 0 1 N1 |
||
| 77 | [[print]] 武器 0属性 显示属性绑定 <notextile><$str(N1)></notextile> |
||
| 78 | <notextile></notextile> |
||
| 79 | *{color:green}getCustomItemAbil* 1 0 2 N1 |
||
| 80 | [[print]] 武器 0属性 内部位置设定 <notextile><$str(N1)></notextile> |
||
| 81 | <notextile></notextile> |
||
| 82 | *{color:green}getCustomItemAbil* 1 0 4 N1 |
||
| 83 | [[print]] 武器 0属性 模块位置设定 <notextile><$str(N1)></notextile> |
||
| 84 | <notextile></notextile> |
||
| 85 | <notextile>[@百分比模式设定0]</notextile> |
||
| 86 | #act |
||
| 87 | <notextile>goto @测试输出</notextile> |
||
| 88 | %{color:lightGrey};-百分比模式设定% |
||
| 89 | [[setCustomItemAbil]] 1 0 3 0 |
||
| 90 | *{color:green}getCustomItemAbil* 1 0 3 N1 |
||
| 91 | [[print]] 武器 0属性 百分比设定 <notextile><$str(N1)></notextile> |
||
| 92 | <notextile></notextile> |
||
| 93 | <notextile>[@百分比模式设定1]</notextile> |
||
| 94 | #act |
||
| 95 | goto <notextile>@测试输出</notextile> |
||
| 96 | %{color:lightGrey};-百分比模式设定% |
||
| 97 | [[setCustomItemAbil]] 1 0 3 1 |
||
| 98 | *{color:green}getCustomItemAbil* 1 0 3 N1 |
||
| 99 | [[print]] 武器 0属性 百分比设定 <notextile><$str(N1)></notextile> |
||
| 100 | <notextile></notextile> |
||
| 101 | <notextile>[@百分比模式设定2]</notextile> |
||
| 102 | #act |
||
| 103 | goto @测试输出 |
||
| 104 | %{color:lightGrey};-百分比模式设定% |
||
| 105 | [[setCustomItemAbil]] 1 0 3 2 |
||
| 106 | *{color:green}getCustomItemAbil* 1 0 3 N1 |
||
| 107 | [[print]] 武器 0属性 百分比设定 <notextile><$str(N1)></notextile> |