CheckStoneCount » 历史记录 » 版本 1
machenhe, 2022-05-11 13:18
| 1 | 1 | machenhe | _*%{color:green}checkStoneCount%*_ |
|---|---|---|---|
| 2 | 检测身上装备已镶嵌的指定宝石数量,是否满足条件 |
||
| 3 | |||
| 4 | 标签:命令定义|checkStoneCount |
||
| 5 | |||
| 6 | *格式* |
||
| 7 | |_.命令名 |_.参数1 |_.参数2|_.参数3| |
||
| 8 | |checkStoneCount |镶嵌宝石名称 |比较符 |比较值 | |
||
| 9 | |||
| 10 | *说明* |
||
| 11 | * 参数1: 镶嵌宝石名称 |
||
| 12 | |||
| 13 | * 参数2: 比较符 |
||
| 14 | |||
| 15 | * 参数3: 比较值(非负整数) |
||
| 16 | |||
| 17 | - |
||
| 18 | - |
||
| 19 | |||
| 20 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 21 | |||
| 22 | bq. [<notextile>@</notextile>main] |
||
| 23 | #if |
||
| 24 | [[equal]] <$dress> |
||
| 25 | #act |
||
| 26 | [[messageBox]] 请穿戴衣服后测试 |
||
| 27 | break |
||
| 28 | |
||
| 29 | #if |
||
| 30 | #say |
||
| 31 | <衣服打孔/<notextile>@</notextile>打孔>\\ \\ |
||
| 32 | <宝石镶嵌/<notextile>@</notextile>镶嵌>\\ \\ |
||
| 33 | <镶嵌检测/<notextile>@</notextile>镶嵌检测>\\ \\ |
||
| 34 | <镶嵌宝石检测/<notextile>@</notextile>镶嵌宝石检测>\\ \\ |
||
| 35 | <镶嵌数量检测/<notextile>@</notextile>镶嵌数量检测>\\ \\ |
||
| 36 | |
||
| 37 | [<notextile>@</notextile>打孔] |
||
| 38 | #if |
||
| 39 | #act |
||
| 40 | [[drillHole]] <notextile>* * 0 * * 0 * 1 * *</notextile> |
||
| 41 | messageBox 装备位衣服_0号孔位_打孔成功 |
||
| 42 | |
||
| 43 | [<notextile>@</notextile>镶嵌] |
||
| 44 | #if |
||
| 45 | [[checkDrillHoleCount]] 0 = 0 |
||
| 46 | #act |
||
| 47 | messageBox 装备位衣服_打孔数量_等于0 \\ \\ 请先打孔 |
||
| 48 | break |
||
| 49 | |
||
| 50 | #if |
||
| 51 | #act |
||
| 52 | [[socketableItem]] <notextile>* * * * 0 0 * * 922 *</notextile> |
||
| 53 | messageBox 装备位衣服_孔位0_镶嵌完毕 |
||
| 54 | |
||
| 55 | [<notextile>@</notextile>镶嵌检测] |
||
| 56 | #if |
||
| 57 | [[checkSocketableItemCount]] 0 = 1 |
||
| 58 | #act |
||
| 59 | messageBox 装备位衣服_镶嵌数量_等于1 |
||
| 60 | |
||
| 61 | #if |
||
| 62 | checkSocketableItemCount 0 > 1 |
||
| 63 | #act |
||
| 64 | messageBox 装备位衣服_镶嵌数量_大于1 |
||
| 65 | |
||
| 66 | #if |
||
| 67 | checkSocketableItemCount 0 < 1 |
||
| 68 | #act |
||
| 69 | messageBox 装备位衣服_镶嵌数量_小于1 |
||
| 70 | |
||
| 71 | [<notextile>@</notextile>镶嵌宝石检测] |
||
| 72 | #if |
||
| 73 | [[checkSocketableItem]] 0 0 n1 s1 |
||
| 74 | #act |
||
| 75 | [[dec]] n1 1 |
||
| 76 | messageBox 装备位衣服_0号孔位_镶嵌了宝石 \\ \\ 宝石名称:<$str(s1)> \\ \\ 宝石IDX字段:<$str(n1)> |
||
| 77 | #elseAct |
||
| 78 | messageBox 装备位衣服_0号孔位_未镶嵌宝石 |
||
| 79 | |
||
| 80 | [<notextile>@</notextile>镶嵌数量检测] |
||
| 81 | #if |
||
| 82 | *{color:green}checkStoneCount* 镶嵌丹1 > 1 |
||
| 83 | #act |
||
| 84 | messageBox 身上装备镶嵌【镶嵌丹1】数量_大于1 |
||
| 85 | |
||
| 86 | #if |
||
| 87 | checkStoneCount 镶嵌丹1 = 1 |
||
| 88 | #act |
||
| 89 | messageBox 身上装备镶嵌【镶嵌丹1】数量_等于1 |
||
| 90 | |
||
| 91 | #if |
||
| 92 | checkStoneCount 镶嵌丹1 < 1 |
||
| 93 | #act |
||
| 94 | messageBox 身上装备镶嵌【镶嵌丹1】数量_小于 |