CheckCustomItemProgressBarPercent » 历史记录 » 版本 1
yangdefeng, 2022-05-17 10:46
| 1 | 1 | yangdefeng | *_{color:green}checkCustomItemProgressBarPercent_* |
|---|---|---|---|
| 2 | 检测指定装备位装备,指定进度条进度百分比值,是否满足条件 |
||
| 3 | |||
| 4 | 标签:命令定义|checkCustomItemProgressBarPercent |
||
| 5 | |||
| 6 | *格式* |
||
| 7 | |_.命令名 |_.参数1 |_.参数2 |_.参数4|_.参数5| |
||
| 8 | |checkCustomItemProgressBarPercent |装备位id |进度条序号 |比较符 |比较值 | |
||
| 9 | |||
| 10 | *说明* |
||
| 11 | * 参数1: 装备位id |
||
| 12 | ** 0-16 指定id装备位中的道具 |
||
| 13 | 参见 *[[装备位置|装备位id说明]]* |
||
| 14 | ** -1 |
||
| 15 | 当前打开的自定义道具栏中的道具 |
||
| 16 | 当前拾取道具 |
||
| 17 | |||
| 18 | * 参数2: 进度条序号(0,1) |
||
| 19 | 每件装备最多支持两个进度条 |
||
| 20 | |||
| 21 | * 参数4: 比较符(> < =) |
||
| 22 | |||
| 23 | * 参数5: 比较值(非负整数) |
||
| 24 | |||
| 25 | |||
| 26 | - |
||
| 27 | - |
||
| 28 | |||
| 29 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 30 | |||
| 31 | bq. [<notextile>@</notextile>main] |
||
| 32 | #if |
||
| 33 | [[equal]] [[装备位置|<$dress>]] |
||
| 34 | #act |
||
| 35 | [[messageBox]] 特戒提示:请穿上衣服再来测试! |
||
| 36 | break |
||
| 37 | |
||
| 38 | #if |
||
| 39 | #say |
||
| 40 | <自定义装备进度条测试>\\ \\ |
||
| 41 | <装备位:衣服>\\ \\ |
||
| 42 | |
||
| 43 | <装备进度条设定/<notextile>@</notextile>进度条设定>\\ \\ |
||
| 44 | <打开角色界面,看下衣服tips/<notextile>@</notextile>角色界面>\\ \\ |
||
| 45 | <装备进度条检测/<notextile>@</notextile>进度条检测>\\ \\ |
||
| 46 | |
||
| 47 | [<notextile>@</notextile>角色界面] |
||
| 48 | #act |
||
| 49 | [[openSysUi]] 1 0 |
||
| 50 | |
||
| 51 | [<notextile>@</notextile>进度条设定] |
||
| 52 | #act |
||
| 53 | goto <notextile>@</notextile>等级设定 |
||
| 54 | goto <notextile>@</notextile>进度设定 |
||
| 55 | goto <notextile>@</notextile>名称显示设定 |
||
| 56 | goto <notextile>@</notextile>进度文本显示设定 |
||
| 57 | goto <notextile>@</notextile>开启显示 |
||
| 58 | |
||
| 59 | [<notextile>@</notextile>等级设定] |
||
| 60 | #act |
||
| 61 | %{color:lightGrey};--装备位id 进度条序号(0) 类型(2进度条等级)% |
||
| 62 | [[changeCustomItemProgressBarValue]] 0 0 2 = 1 |
||
| 63 | |
||
| 64 | [<notextile>@</notextile>进度设定] |
||
| 65 | #act |
||
| 66 | %{color:lightGrey};--装备位id 进度条序号(0) 类型(0当前进度)% |
||
| 67 | changeCustomItemProgressBarValue 0 0 0 = 5 |
||
| 68 | |
||
| 69 | %{color:lightGrey};--装备位id 进度条序号(0) 类型(1进度条最大值)% |
||
| 70 | changeCustomItemProgressBarValue 0 0 1 = 20 |
||
| 71 | |
||
| 72 | [<notextile>@</notextile>名称显示设定] |
||
| 73 | %{color:lightGrey};--以下效果3选1% |
||
| 74 | #act |
||
| 75 | %{color:lightGrey};--设定进度条0的显示名称+进度条等级% |
||
| 76 | [[changeCustomItemProgressBar]] 0 0 1 刀魂(lv.%l) |
||
| 77 | |
||
| 78 | %{color:lightGrey};--设定进度条0的显示名称+进度条百分比值% |
||
| 79 | %{color:lightGrey};changeCustomItemProgressBar 0 0 1 刀魂(<notextile>%r%</notextile>)% |
||
| 80 | |
||
| 81 | %{color:lightGrey};--设定进度条0的显示名称+进度条当前进度值% |
||
| 82 | %{color:lightGrey};changeCustomItemProgressBar 0 0 1 刀魂(进度%p)% |
||
| 83 | |
||
| 84 | [<notextile>@</notextile>进度文本显示设定] |
||
| 85 | %{color:lightGrey};--以下效果3选1% |
||
| 86 | #act |
||
| 87 | %{color:lightGrey};--设定进度条0上方文本不显示% |
||
| 88 | %{color:lightGrey};changeCustomItemProgressBar 0 0 4 0% |
||
| 89 | |
||
| 90 | %{color:lightGrey};--设定进度条0上方文本显示百分比格式% |
||
| 91 | changeCustomItemProgressBar 0 0 4 1 |
||
| 92 | |
||
| 93 | %{color:lightGrey};--设定进度条0上方文本显示常规数字格式% |
||
| 94 | %{color:lightGrey};changeCustomItemProgressBar 0 0 4 2% |
||
| 95 | |
||
| 96 | |
||
| 97 | [<notextile>@</notextile>开启显示] |
||
| 98 | #act |
||
| 99 | %{color:lightGrey};--开启进度条0的显示% |
||
| 100 | changeCustomItemProgressBar 0 0 0 1 |
||
| 101 | |
||
| 102 | [<notextile>@</notextile>进度条检测] |
||
| 103 | #if |
||
| 104 | [[checkCustomItemProgressBar]] 0 0 |
||
| 105 | #act |
||
| 106 | [[sendMsg]] 6 衣服的第一个进度条已经开启 |
||
| 107 | #elseact |
||
| 108 | sendMsg 6 衣服的第一个进度条没有开启 |
||
| 109 | |
||
| 110 | #if |
||
| 111 | [[checkCustomItemProgressBarValue]] 0 0 0 = 5 |
||
| 112 | #act |
||
| 113 | sendMsg 6 衣服的第一个进度条,当前进度为5 |
||
| 114 | #elseact |
||
| 115 | sendMsg 6 衣服的第一个进度条,当前进度不是5 |
||
| 116 | |
||
| 117 | #if |
||
| 118 | *%{color:green}checkCustomItemProgressBarPercent%* 0 0 = 25 |
||
| 119 | #act |
||
| 120 | sendMsg 6 衣服的第一个进度条,当前进度百分比为25% |
||
| 121 | #elseact |
||
| 122 | sendMsg 6 衣服的第一个进度条,当前进度百分比不是25% |