项目

一般

简介

GmExecute » 历史记录 » 版本 1

machenhe, 2022-04-22 14:44

1 1 machenhe
_*%{color:green}gmExeCute%*_
2
让所有在线玩家同时执行一个指定脚本
3
基本只存在于RobotManage.txt文件中
4
5
标签:命令定义
6
7
*格式*
8
|命令名   |参数1     |参数2    |
9
|gmExeCute|执行命令名|@执行块名|
10
11
*说明*
12
* 参数1 执行命令名
13
** 写法1
14
startQuest
15
** 写法2
16
配置文件位置
17
..\Mir\Command.ini
18
配置项
19
startQuest=执行命令名
20
* 参数2 脚本执行块的名称
21
执行QManage.txt中的@执行块名
22
23
*命令示例*
24
* 写法1
25
gmExeCute startQuest @执行块
26
* 写法2
27
%{color:lightGrey};如配置了startQuest=开始提问%
28
gmExeCute 开始提问 @执行块
29
30
-
31
-
32
33
*%{color:deepskyblue}脚本示例:%*
34
35
bq. 编辑命令配置
36
..\Mir\Command.ini
37
startQuest=开始提问
38
39
bq. %{color:lightGrey};编辑AutoRunRobot.txt%
40
#AutoRun NPC MIN 1 @每分钟执行
41
42
bq. %{color:lightGrey};编辑RobotManage.txt%
43
[@每分钟执行]
44
#act
45
gmExeCute 开始提问 <notextile>@</notextile>每分钟执行
46
47
bq. %{color:lightGrey};编辑QManage.txt%
48
[@每分钟执行]
49
#act
50
sendMsg 6 一分钟计时到了