QManage触发器 OnTimer » 历史记录 » 版本 1
tejie, 2025-07-17 10:14
| 1 | 1 | tejie | h4. _%{color:green}[@onTimer]%_ |
|---|---|---|---|
| 2 | |||
| 3 | setOnTimer命令设定触发模块,返回定时器id |
||
| 4 | |||
| 5 | 标签:触发器^@onTimer |
||
| 6 | |||
| 7 | 触发器所在文件 |
||
| 8 | [[QManage]] |
||
| 9 | |||
| 10 | |||
| 11 | - |
||
| 12 | - |
||
| 13 | |||
| 14 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 15 | |||
| 16 | bq. *;--..\Mir200\Envir\MapQuest_Def\QManage.txt* |
||
| 17 | [<notextile>@</notextile>onTimer] |
||
| 18 | #act |
||
| 19 | [[mov]] n$定时器id <$scriptParam1> |
||
| 20 | #call [\游戏功能\定时器.txt] <notextile>@</notextile>定时执行 |
||
| 21 | <notextile></notextile> |
||
| 22 | <notextile></notextile> |
||
| 23 | <notextile></notextile> |
||
| 24 | *;--..\Mir200\Envir\QuestDiary\游戏功能\定时器.txt* |
||
| 25 | [<notextile>@</notextile>main] |
||
| 26 | #say |
||
| 27 | <开启0号定时器/<notextile>@</notextile>1> <关闭0号定时器/<notextile>@</notextile>2> |
||
| 28 | <notextile></notextile> |
||
| 29 | [<notextile>@</notextile>1] |
||
| 30 | #act |
||
| 31 | [[setOnTimer]] 0 5 |
||
| 32 | [[print]] 开启0号定时器 |
||
| 33 | <notextile></notextile> |
||
| 34 | [<notextile>@</notextile>2] |
||
| 35 | #act |
||
| 36 | [[setOffTimer]] 0 |
||
| 37 | [[print]] 关闭0号定时器 |
||
| 38 | <notextile></notextile> |
||
| 39 | [<notextile>@</notextile>定时执行] |
||
| 40 | #if |
||
| 41 | [[equal]] <$str(n$定时器id)> 0 |
||
| 42 | #act |
||
| 43 | [[print]] 定义器0执行 |