CheckItemNameColor » 历史记录 » 版本 1
machenhe, 2022-05-11 14:34
| 1 | 1 | machenhe | _*%{color:green}checkItemNameColor%*_ |
|---|---|---|---|
| 2 | 检测指定装备位的装备名字颜色,是否满足条件 |
||
| 3 | |||
| 4 | 标签:命令定义|checkItemNameColor |
||
| 5 | |||
| 6 | *格式* |
||
| 7 | |命令名 |参数1 |参数2 | |
||
| 8 | |checkItemNameColor |装备位id |颜色编码id | |
||
| 9 | |||
| 10 | *说明* |
||
| 11 | * 参数1: 装备位id |
||
| 12 | ** 0-16 指定id装备位中的道具 |
||
| 13 | 参见装备位id说明[[装备位置]] |
||
| 14 | ** -1 |
||
| 15 | 当前打开的自定义道具栏中的道具 |
||
| 16 | 当前拾取道具 |
||
| 17 | |||
| 18 | * 参数2: [[颜色编码id]][0-255] |
||
| 19 | |||
| 20 | - |
||
| 21 | - |
||
| 22 | |||
| 23 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 24 | |||
| 25 | bq. [<notextile>@</notextile>main] |
||
| 26 | #say |
||
| 27 | <衣服名称改颜色/<notextile>@@</notextile>inputInteger0>\\ \\ |
||
| 28 | <查看衣服装备位/<notextile>@</notextile>查看>\\ \\ |
||
| 29 | <点击装备位衣服,查看名称变化> |
||
| 30 | |
||
| 31 | [<notextile>@</notextile>inputInteger0] |
||
| 32 | #if |
||
| 33 | [[equal]] [[装备位置|<$dress>]] |
||
| 34 | #act |
||
| 35 | [[messageBox]] 未穿戴衣服,穿上再试试 |
||
| 36 | break |
||
| 37 | |
||
| 38 | #or |
||
| 39 | equal n0 255 |
||
| 40 | equal n0 222 |
||
| 41 | equal n0 254 |
||
| 42 | equal n0 244 |
||
| 43 | equal n0 70 |
||
| 44 | #act |
||
| 45 | goto <notextile>@</notextile>改颜色 |
||
| 46 | #elseAct |
||
| 47 | [[mov]] s$info \"请从以下颜色编码中选1个\\255, 222, 254, 244, 70\" |
||
| 48 | [[messageBox]] <$str(s$info)> |
||
| 49 | break |
||
| 50 | |
||
| 51 | [<notextile>@</notextile>改颜色] |
||
| 52 | #if |
||
| 53 | #act |
||
| 54 | [[changeItemNameColor]] 0 <$str(n0)> |
||
| 55 | sendMsg 6 衣服名称颜色变更完毕 |
||
| 56 | goto <notextile>@</notextile>查看 |
||
| 57 | |
||
| 58 | #if |
||
| 59 | *{color:green}checkItemNameColor* 0 255 |
||
| 60 | #act |
||
| 61 | messageBox 衣服名称颜色变为了白色 |
||
| 62 | |
||
| 63 | #if |
||
| 64 | checkItemNameColor 0 222 |
||
| 65 | #act |
||
| 66 | messageBox 衣服名称颜色变为了绿色 |
||
| 67 | |
||
| 68 | #if |
||
| 69 | checkItemNameColor 0 254 |
||
| 70 | #act |
||
| 71 | messageBox 衣服名称颜色变为了蓝色 |
||
| 72 | |
||
| 73 | #if |
||
| 74 | checkItemNameColor 0 244 |
||
| 75 | #act |
||
| 76 | messageBox 衣服名称颜色变为了紫色 |
||
| 77 | |
||
| 78 | #if |
||
| 79 | checkItemNameColor 0 70 |
||
| 80 | #act |
||
| 81 | messageBox 衣服名称颜色变为了橙色 |
||
| 82 | |
||
| 83 | [<notextile>@</notextile>查看] |
||
| 84 | #act |
||
| 85 | [[openSysUi]] 1 0 |