首页 > 其他分享 >仙境传说脚本RO:NPC对话| mes/next/close函数用法详解

仙境传说脚本RO:NPC对话| mes/next/close函数用法详解

时间:2023-06-24 19:32:25浏览次数:30  
标签:NPC next will window mes close

仙境传说脚本RO:NPC对话| mes/next/close函数用法详解

大家好,我是艾西,今天跟大家讲解下仙境传说mes/next/close函数,在游戏中所有的NPC对话都是用mes函数来创建的。

我们先打开官方文档的script _commands.txt文件,搜索*mes

仙境传说脚本RO:NPC对话| mes/next/close函数用法详解_驰网艾西




search *mes

mes "Hello,world!";

注意:默认是没有关团或next按钮的,必须用close/next命令创建。如果不创建这些按钮,客户端就什么也做不了了,只能重启客户端,.所以时刻记得加上这些按钮很重要。


颜色^RGB 16进制:例子mes "This is ^FF0000 red ^000000 and this is ^00FF00 green, ^000000 so.";用完记得还原 ^FF0000 red是红色,如果后面不输入^000000 那么后面整个都是红色的,^000000即为还原

注:非英文字符要留空格,否则可能解析出错可以uTools里的颜色插件来预览颜色

仙境传说脚本RO:NPC对话| mes/next/close函数用法详解_仙境传说商业端定制开发‘’_02


仙境传说脚本RO:NPC对话| mes/next/close函数用法详解_驰网艾西_03



多行代码:

//一行代码显示三行

mes "Line 1", Lirine 2", "Line 3";



导航.

2011-10-10之后的客户端才可以用导航链接。

语法:

<NAVI>Display Name<FNF0>mapname,x,y,0,000 ,flag</INFO> </NAVI>

(< NAVI是navigation这个单词的缩写> Display Name显示名字 x,y,0,000 信息参数 </INFO> </NAVI>就是xml的标记语言 )

The *flag" parameter can be: 0: Do not open Navigation Window (default). 1: Open Navigation Window.

(flag是有两个可选参数 0就是默认不打开导航窗口,1就是打开导航窗口)

The example below will make the [Tool Shop] text clickable and begin navigation to alberta (98,154) when clicked.


mes "Have you checked out the <NAVI>[Tool Shop]<INF0>alberta ,98, 154,0, 000, 0</INF0></NAVI>?";


See also 'navigateto', which can be used for certain NPC events





道具

ltems

You can refer to items by using HTML-like links to certain items:


<ITEMLINK>Display Name<INFO>Item ID</INF0></ITEMLINK>

(ITEMLINK道具链接的意思)(Item ID道具信息,道具信息数据库必须得有不然点击不了)


Where <Display Name> is the name that will be displayed for your link and <ltem ID> being the ID of the item you want tolink to when clicked.

In 2015 the tag name was changed to <ITEM> resulting in the following syntax:


<ITEM>Display Name<INFO>Item ID</INF0></ITEM>


The following sample will open a preview window for Red Potion:


mes "Did you ever consume a <ITEMLINK>Red Potion<INF0>501</INFO></ITEMLINK>?";

// Or in 2015:

mes "Did you ever consume a <ITEM>Red Potion<INFO>501</INF0></ITEM>?";


NOTE: Be aware that item links are rendered incorrectly in 2015+ clients at the moment.




URLs(超链接)

Similarly, you can create links to websites that launch in a new window:


<URL>Display Name<INFO>http:/ /www . 27server . com/</INFO></URL>" ;


<URL>就是超链接 <INFO>这里面就是地址


示例:


仙境传说脚本RO:NPC对话| mes/next/close函数用法详解_服务端_04




*next ;

This command will display a' next' button in the message window for theinvoking character. Clicking on it will cause the window to clear and display a new one. Used to segment NPC -talking,next is often used in combination with mes and close'.

(此命令将在消息窗口中显示一个“Next”按钮,用于调用信息。单击它将导致窗口清除并显示一个新窗口。使用为了分割NPC对话,Next常与MES和CLOSE结合使用。)



*close;

This command will create a ' close button in the message window for the invoking character. If no window is currently on screen, the script execution will end. This is of the ways to end a speech from an NPC. Once the button is clicked, the NPC script execution will end, and the message box will disappear.


mes”[Woman]" ;

mes "I am finished talking to you. Click the close button.";

close;

mes” This command will not run at all, since the script has ended." ;



*关闭;

此命令将创建一个“关闭”事件的消息窗口中的信息。如果当前屏幕上没有窗口,脚本执行将结束,一旦单击按钮,则NPC脚本执行将结束,消息框将消失。


标签:NPC,next,will,window,mes,close
From: https://blog.51cto.com/idc02/6541538

相关文章

  • 成功实现脚本检测手机号是否注册imessage的原理
    一、imessages数据检测的两种方式:1.人工筛选,将要验证的号码输出到文件中,以逗号分隔。再将文件中的号码粘贴到iMessage客户端的地址栏,iMessage客户端会自动逐个检验该号码是否为iMessage账号,检验速度视网速而定。红色表示不是iMessage账号,蓝色表示iMessage账号。2.编写苹果操作系......
  • 用applescript脚本实现检测手机号码是否注册imessage的原理
    一、检测数据的两种方式:1.人工筛选,将要验证的号码输出到文件中,以逗号分隔。再将文件中的号码粘贴到iMessage客户端的地址栏,iMessage客户端会自动逐个检验该号码是否为iMessage账号,检验速度视网速而定。红色表示不是iMessage账号,蓝色表示iMessage账号。2.编写脚本控制Macos/iphon......
  • pycharm中的gihub copilot中报错Sign in failed. Reason: Request signInInitiate fai
    pycharm中的gihubcopilot中报错Signinfailed.Reason:RequestsignInInitiatefailedwithmessage:getaddri无法使用问题解决方法:idea打开我们的插件settings-plugins-找到插件,点击homepage插件主页跳出的页面下载对应pycharm的github copilot版本安装问题解决......
  • CMake Error at /root/anaconda3/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (mess
     001、问题CMakeErrorat/root/anaconda3/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9(message):  Failedtofi 002、报错原因centos中没有安装opengl,安装opengl[[email protected]]#yum-yinstallmesa*freeglut*GLEW 003、再次编译[root......
  • Games101-Cp4-Geometry
    几何表示方法隐式表达对应通过隐函数表示点的相对位置,而不是空间的具体位置。具体有:代数公式、水平集、分形/自相似(fractals)、CSG(constructivesolidgeometry):通过简单几何体的布尔运算获得复杂的几何体、距离函数:指的是到几何体点的最小距离,当两个几何体的点近,通过融合距离函......
  • Android App运行核心,Handler,Looper,Message
    目标在手机屏幕上显示指定的区域两种方法在已存在的图片上,绘制矩形,查看图片在全屏透明悬浮窗上直接画矩形已有图片绘制矩形读取图片letimgFilepath=files.path("./chess.png");letimg=images.read(imgFilepath);设置绘制区域letrect={left:52,top:20,rig......
  • ABAP MESSAGE 关键字的使用方法
    ABAPmessage关键字的作用是要么显示在当前用户的登录语言中,从数据库表T100的msg字段中指定的短消息文本,要么显示作为消息的任何文本。以下是可用的变体:如果没有指定RAISING或INTO中的任何一个,语句MESSAGE将中断程序流并发送消息。该语句MESSAGE的基本形式的确切行为(即文本......
  • 什么是 ABAP 的 Message Class,Message Number 和 Message Text 试读版
    ABAP编程语言里的Message(消息)是SAP产品里及其重要的一个概念,因为Message是SAP应用在运行过程中,向终端用户提供运行反馈的最重要的交互渠道之一。当用户使用SAP产品过程中,如果遇到各种错误或者提示消息,会根据这些消息,查询文档或者咨询SAP支持人员,以获得下一步的操作......
  • DM8,DATE转TIMESTAMP
    declaretableNamevarchar(100);columnNamevarchar(100);updateSqlvarchar(100);beginforcin(select*fromdba_tab_columnswhereDATA_TYPE='DATE'andTABLE_NAMELIKE'ACT%'AND(COLUMN_NAMELIKE'%TIME'OR......
  • Android Themes关于totalBar总结
     ustakealookatdefaultthemessuppliedwithAndroidSDK.Belowthemeswillcontrolthebackground,statusbarandtitlebar.Statusbar:VisibleStatusbar:VisibleStatusbar:InvisibleTitlebar:VisibleTitlebar:InvisibleTitlebar:InvisibleThemeThem......