HCall » 历史记录 » 修订 5
修订 4 (tejie, 2025-05-26 12:35) → 修订 5/6 (tejie, 2025-08-29 10:25)
h4. _*%{color:green}hCall%*_
指定角色名称触发
%{color:deeppink}..\Mir200\Envir\MapQuest_Def\QManage.txt%
对应@跳转标签
标签:命令定义^hCall
*格式*
|命令名 |参数1 |参数2 |
|hCall |角色名称 |跳转标签 |
*说明*
|参数1|执行脚本跳转的角色名称|
|参数2|脚本QManage.txt中的跳转标签|
-
-
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
bq. [<notextile>@</notextile>main]
#act
%{color:lightGrey};假设指定玩家为"张三",则张三在线会执行跳转,其他玩不执行%
*{color:green}hCall* 张三 <notextile>@</notextile>跳转标签
bq. %{color:lightGrey};..\Mir200\Envir\MapQuest_Def\QManage.txt%
[<notextile>@</notextile>跳转标签]
#act
[[sendMsg]] 6 指定玩家<$userName>执行了跳转
-
-
h4. %{color:LightSeaGreen}示例--获取其他玩家的变量数据%
bq. %{color:lightPink}..\Mir200\Envir\QuestDiary\游戏功能\获取其他玩家变量.txt%
<notextile>[@main]</notextile>
#if
#act
[[mov]] s$玩家昵称 玩家昵称
*{color:green}hCall* <$str(s$玩家昵称)> @指定玩家跳转标签
[[print]] 玩家:<$str(a$玩家昵称)> 地图:<$str(a$所在地图)> x坐标:<$str(a$x坐标)> y坐标:<$str(a$y坐标)>
<notextile></notextile>
%{color:lightPink}..\Mir200\Envir\MapQuest_Def\QManage.txt%
<notextile>[@指定玩家跳转标签]</notextile>
#call [\触发器\其他玩家.txt] <notextile>@main</notextile>
<notextile></notextile>
%{color:lightPink}..\Mir200\Envir\QuestDiary\触发器\其他玩家.txt%
<notextile>[@main]</notextile>
#if
#act
[[mov]] a$玩家昵称 <$userName>
[[mov]] a$所在地图 <$map>
[[mov]] a$x坐标 <$x>
[[mov]] a$y坐标 <$y>
-
-
h4. %{color:LightSeaGreen}示例--判定当前玩家指定范围内,是否存在指定玩家。%
bq. %{color:lightPink}..\Mir200\Envir\QuestDiary\游戏功能\指定玩家范围判定.txt%
<notextile>[@main]</notextile>
#if
#act
[[mov]] s$玩家昵称 玩家昵称
[[mov]] a$玩家昵称 <$str(s$玩家昵称)>
[[mov]] a$所在地图 <$map>
[[mov]] a$x坐标 <$x>
[[mov]] a$y坐标 <$y>
<notextile></notextile>
*{color:green}hCall* <$str(s$玩家昵称)> @指定玩家跳转标签
[[print]] <$str(a$范围判定)>
<notextile></notextile>
%{color:lightPink}..\Mir200\Envir\MapQuest_Def\QManage.txt%
<notextile>[@指定玩家跳转标签]</notextile>
#call [\触发器\其他玩家.txt] @main
<notextile></notextile>
%{color:lightPink}..\Mir200\Envir\QuestDiary\触发器\其他玩家.txt%
<notextile>[@main]</notextile>
#if
#act
[[mov]] a$范围判定
[[print]] 玩家:<$str(a$玩家昵称)> 地图:<$str(a$所在地图)> x坐标:<$str(a$x坐标)> y坐标<$str(a$y坐标)>
<notextile></notextile>
#if
[[checkHumInRange]] <$str(a$所在地图)> <$str(a$x坐标)> <$str(a$y坐标)> 5
#act
[[mov]] a$范围判定 在指定范围
#elseAct
[[mov]] a$范围判定 不在指定范围