项目

一般

简介

HCall » 历史记录 » 版本 6

tejie, 2026-01-06 16:52

1 2 tejie
h4. _*%{color:green}hCall%*_
2
3 1 machenhe
指定角色名称触发
4
%{color:deeppink}..\Mir200\Envir\MapQuest_Def\QManage.txt%
5
对应@跳转标签
6
7 6 tejie
标签:命令^hCall
8
9
*相关命令*
10
"movEx2":http://112.124.36.36/redmine/projects/tejie/wiki/%3C$currrTargetName%3E
11 1 machenhe
12
*格式*
13
|命令名	|参数1		|参数2		|
14
|hCall	|角色名称	|跳转标签	|
15
16
*说明*
17 4 tejie
|参数1|执行脚本跳转的角色名称|
18
|参数2|脚本QManage.txt中的跳转标签|
19 1 machenhe
20
-
21
-
22
23 2 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
24 1 machenhe
25
bq. [<notextile>@</notextile>main]
26
#act
27
%{color:lightGrey};假设指定玩家为"张三",则张三在线会执行跳转,其他玩不执行%
28 2 tejie
*{color:green}hCall* 张三 <notextile>@</notextile>跳转标签
29 1 machenhe
30
bq. %{color:lightGrey};..\Mir200\Envir\MapQuest_Def\QManage.txt%
31
[<notextile>@</notextile>跳转标签]
32
#act
33 2 tejie
[[sendMsg]] 6 指定玩家<$userName>执行了跳转
34 5 tejie
35
-
36
-
37
38
h4. %{color:LightSeaGreen}示例--获取其他玩家的变量数据%
39
40
bq. %{color:lightPink}..\Mir200\Envir\QuestDiary\游戏功能\获取其他玩家变量.txt%
41
<notextile>[@main]</notextile>
42
#if
43
#act
44
[[mov]] s$玩家昵称 玩家昵称
45
*{color:green}hCall* <$str(s$玩家昵称)> @指定玩家跳转标签
46
[[print]] 玩家:<$str(a$玩家昵称)> 地图:<$str(a$所在地图)> x坐标:<$str(a$x坐标)> y坐标:<$str(a$y坐标)>
47
<notextile></notextile>
48
%{color:lightPink}..\Mir200\Envir\MapQuest_Def\QManage.txt%
49
<notextile>[@指定玩家跳转标签]</notextile>
50
#call [\触发器\其他玩家.txt] <notextile>@main</notextile>
51
<notextile></notextile>
52
%{color:lightPink}..\Mir200\Envir\QuestDiary\触发器\其他玩家.txt%
53
<notextile>[@main]</notextile>
54
#if
55
#act
56
[[mov]] a$玩家昵称 <$userName>
57
[[mov]] a$所在地图 <$map>
58
[[mov]] a$x坐标 <$x>
59
[[mov]] a$y坐标 <$y>
60
61
-
62
-
63
64
h4. %{color:LightSeaGreen}示例--判定当前玩家指定范围内,是否存在指定玩家。%
65
66
bq. %{color:lightPink}..\Mir200\Envir\QuestDiary\游戏功能\指定玩家范围判定.txt%
67
<notextile>[@main]</notextile>
68
#if
69
#act
70
[[mov]] s$玩家昵称 玩家昵称
71
[[mov]] a$玩家昵称 <$str(s$玩家昵称)>
72
[[mov]] a$所在地图 <$map>
73
[[mov]] a$x坐标 <$x>
74
[[mov]] a$y坐标 <$y>
75
<notextile></notextile>
76
*{color:green}hCall* <$str(s$玩家昵称)> @指定玩家跳转标签
77
[[print]] <$str(a$范围判定)>
78
<notextile></notextile>
79
%{color:lightPink}..\Mir200\Envir\MapQuest_Def\QManage.txt%
80
<notextile>[@指定玩家跳转标签]</notextile>
81
#call [\触发器\其他玩家.txt] @main
82
<notextile></notextile>
83
%{color:lightPink}..\Mir200\Envir\QuestDiary\触发器\其他玩家.txt%
84
<notextile>[@main]</notextile>
85
#if
86
#act
87
[[mov]] a$范围判定
88
[[print]] 玩家:<$str(a$玩家昵称)> 地图:<$str(a$所在地图)> x坐标:<$str(a$x坐标)> y坐标<$str(a$y坐标)>
89
<notextile></notextile>
90
#if
91
[[checkHumInRange]] <$str(a$所在地图)> <$str(a$x坐标)> <$str(a$y坐标)> 5
92
#act
93
[[mov]] a$范围判定 在指定范围
94
#elseAct
95
[[mov]] a$范围判定 不在指定范围