SetMirrorMapTime » 历史记录 » 版本 1
tejie, 2024-07-03 09:32
| 1 | 1 | tejie | h4. _*{color:green}setMirrorMapTime*_ |
|---|---|---|---|
| 2 | |||
| 3 | 重新设置镜像地图时间 |
||
| 4 | |||
| 5 | 标签:命令定义|setMirrorMapTime>setMirrorMapTime |
||
| 6 | |||
| 7 | *格式:* |
||
| 8 | |命令名 |参数1 |参数2 |参数3 | |
||
| 9 | |setMirrorMapTime |镜像地图编号 |重置时间 |是否重新计算 | |
||
| 10 | |||
| 11 | |||
| 12 | *说明:* |
||
| 13 | |参数1 |镜像地图编号 |
||
| 14 | 由[[addMirrorMap1]]创建的临时地图编号| |
||
| 15 | |参数2 |重置时间 单位秒| |
||
| 16 | |/2.参数3|缺省 |
||
| 17 | 剩余时间=重置时间-已消耗时间 |
||
| 18 | 举例 |
||
| 19 | 原始时间100秒,已消耗50秒,重置时间为200,则剩余时间=150 |
||
| 20 | 原始时间100秒,已消耗50秒,重置时间为20, 则剩余时间=0,镜像结束| |
||
| 21 | |=1 |
||
| 22 | 剩余时间=重置时间| |
||
| 23 | |||
| 24 | h4. *{color:deepskyblue}特戒引擎脚本示例:* |
||
| 25 | |||
| 26 | bq. [@示例] |
||
| 27 | #say |
||
| 28 | <notextile><创建镜像地图/@创建></notextile> |
||
| 29 | <notextile><检测地图时间/@检测></notextile> |
||
| 30 | <notextile><重置地图时间1/@重置1></notextile> |
||
| 31 | <notextile><重置地图时间2/@重置2></notextile> |
||
| 32 | <notextile></notextile> |
||
| 33 | <notextile>[@创建]</notextile> |
||
| 34 | #act |
||
| 35 | [[addMirrorMap1]] 桃园副本 <$USERNAME>的地图 新地图显示名 100 桃园副本 |
||
| 36 | <notextile></notextile> |
||
| 37 | <notextile>[@检测]</notextile> |
||
| 38 | #if |
||
| 39 | #act |
||
| 40 | [[getMirrorMapTime]] <$USERNAME>的地图 N1 N2 |
||
| 41 | [[print]] 镜像地图总时间<$str(n1)>,剩余时间<$str(n2)> |
||
| 42 | <notextile></notextile> |
||
| 43 | <notextile>[@重置1]</notextile> |
||
| 44 | #if |
||
| 45 | #act |
||
| 46 | *{color:green}setMirrorMapTime* <$USERNAME>的地图 200 1 |
||
| 47 | <notextile></notextile> |
||
| 48 | <notextile>[@重置2]</notextile> |
||
| 49 | #if |
||
| 50 | #act |
||
| 51 | *{color:green}setMirrorMapTime* <$USERNAME>的地图 200 |