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