项目

一般

简介

SendMsg » 历史记录 » 版本 5

tejie, 2025-06-04 11:17

1 2 yangdefeng
h4. _*%{color:green}sendMsg%*_
2
3 1 machenhe
聊天框中发送文字信息
4
5 5 tejie
标签:命令定义^sendMsg
6 1 machenhe
7
*格式*
8
|_.命令名	|_.参数1	|_.参数2	|_.参数3	|
9
|sendMsg	|广播范围	|自定义文字颜色	|消息文字内容	|
10
11
*说明*
12 5 tejie
|^.参数1|_*广播消息*_
13 1 machenhe
sendMsg 0
14
sendMsg 1
15
sendMsg 2
16
sendMsg 3 
17
_*个人消息*_
18
sendMsg 4 点击NPC时,此命令触发NPC头顶消息。支持%n参数,代表npc名称。
19
sendMsg 5(红)
20
sendMsg 6(绿)
21 5 tejie
sendMsg 7(蓝)|
22
|^.参数2|自定义文字颜色id(0-255)
23
参数2为空时,按照参数1设置显示文字颜色|
24
|^.参数3|支持变量形式的字符串
25 1 machenhe
支持文字单独设置颜色id(0-255)
26 5 tejie
{文字信息<notextile>|</notextile>参数1:参数2:参数3}
27 1 machenhe
%{color:deepPink}注:文字单独设置颜色,参数2和参数3效果未支持,但不能缺省%
28 5 tejie
参数1:单独定义的文字颜色
29
参数2:文字背景颜色(效果暂不支持)
30
参数3:显示文字背景色或文字描边(效果暂不支持)
31
0,显示文字背景色
32
1,显示文字描边|
33 1 machenhe
34
-
35
-
36
37 2 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
38 1 machenhe
39
bq. [@main]
40
#act
41
%{color:lightGrey};以下\"任务信息:\"显示为绿色(参数1为6)
42
;以下\"获得兽人信\"显示为黄色(文字单独设置颜色为151)%
43 2 yangdefeng
%{color:green}sendMsg% 6 任务信息:{获得兽人信物|151:0:1}
44 1 machenhe
45
bq. [@main]
46
#act
47
%{color:lightGrey};以下\"任务信息:\"显示为黄色(参数2为151)
48
;以下\"获得兽人信\"显示为粉色(文字单独设置颜色为253)%
49 2 yangdefeng
%{color:green}sendMsg% 6 151 任务信息:{获得兽人信物|253:0:1}
50 1 machenhe
51
bq. [@main]
52
#act
53
%{color:lightGrey};以下\"任务信息:\"显示为蓝色(参数1为7)
54
;以下\"获得兽人信物\"显示为黄色(文字单独设置颜色为151)%
55
mov d0 2
56 2 yangdefeng
%{color:green}sendMsg% 7 任务信息:{获得兽人信物|151:0:1}{<$str(d0)>/8件|146:0:1}
57
58
-
59
-
60
61
*{color:deepPink}npc脚本文件支持以下内容*
62
63
bq. [@main]
64
#act
65
%{color:lightGrey};npc头顶出现对话文字%
66 3 yangdefeng
%{color:green}sendMsg% 4 %n:你好,%s欢迎使用特戒引擎