RobotManage » 历史记录 » 版本 1
yangdefeng, 2022-06-22 11:11
1 | 1 | yangdefeng | _*%{color:green}RobotManage%*_ |
---|---|---|---|
2 | |||
3 | 标签:文件定义|RobotManage |
||
4 | |||
5 | 全局触发器脚本,执行[[AutoRunRobot]]定时器触发的对应@跳转标签 |
||
6 | |||
7 | - |
||
8 | - |
||
9 | |||
10 | *%{color:fireBrick}文件路径%* |
||
11 | ..\Mir200\Envir\Robot_def\RobotManage.txt |
||
12 | |||
13 | - |
||
14 | - |
||
15 | |||
16 | *%{color:fireBrick}文件中的触发器说明%* |
||
17 | |全局定时器对应触发块 |[[AutoRunRobot]]全局定时触发 | |
||
18 | |[@delChar] |玩家删除角色时触发 | |
||
19 | |||
20 | - |
||
21 | - |
||
22 | |||
23 | *%{color:fireBrick}该文件可执行的命令%* |
||
24 | 此脚本中只能执行全局命令 |
||
25 | 非全局命令不会执行 |
||
26 | |||
27 | *%{color:deepSkyBlue}脚本示例%* |
||
28 | |||
29 | bq. %{color:lightGrey};AutoRunRobot.txt 定时触发对应<notextile>@</notextile>跳转标签% |
||
30 | #AutoRun NPC SEC 20 @每20秒触发 |
||
31 | |||
32 | bq. %{color:lightGrey};RobotManage.txt 响应定时触发对应<notextile>@</notextile>跳转标签% |
||
33 | [@每20秒触发] |
||
34 | #act |
||
35 | %{color:lightGrey};--此命令可以执行% |
||
36 | clearPath ..\test\test\ |
||
37 | %{color:lightGrey};--此命令会执行% |
||
38 | sendMsg 1 helloTejie全局发送 |
||
39 | %{color:lightGrey};--此命令不会执行% |
||
40 | sendMsg 6 helloTejie个人发送 |
||
41 | |||
42 | - |
||
43 | - |
||
44 | |||
45 | *%{color:fireBrick}该文件可处理的变量%* |
||
46 | 此脚本只能处理全局变量 |
||
47 | 私人变量不会被处理 |
||
48 | |||
49 | *%{color:deepSkyBlue}脚本示例%* |
||
50 | |||
51 | bq. %{color:lightGrey};AutoRunRobot.txt 定时触发对应<notextile>@</notextile>跳转标签% |
||
52 | #AutoRun NPC SEC 20 @每20秒触发 |
||
53 | |||
54 | bq. %{color:lightGrey};RobotManage.txt 响应定时触发对应<notextile>@</notextile>跳转标签% |
||
55 | [@每20秒触发] |
||
56 | #act |
||
57 | #call [\调试模块\试炼.txt] <notextile>@</notextile>数据同步 |
||
58 | |||
59 | bq. %{color:lightGrey};执行脚本路径: |
||
60 | ;..\Mir200\Envir\QuestDiary\调试模块\试炼.txt% |
||
61 | [@数据同步] |
||
62 | #act |
||
63 | %{color:lightGrey};以下会执行% |
||
64 | mov g100 0 |
||
65 | inc g100 1 |
||
66 | |
||
67 | %{color:lightGrey};以下不执行% |
||
68 | mov n100 0 |
||
69 | inc n100 1 |