SetNpcStat » 历史记录 » 版本 3
yangdefeng, 2022-06-17 17:14
1 | 2 | yangdefeng | h4. _*%{color:green}setNpcStat%*_ |
---|---|---|---|
2 | 1 | machenhe | |
3 | 在NPC上增加标识 |
||
4 | |||
5 | 标签:命令定义|setNpcStat |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 |参数6 |参数7 | |
||
9 | 3 | yangdefeng | |setNpcStat |地图编号 |NPC名字 |字符串 |颜色值 |字符串 |颜色值 |图片资源 | |
10 | 1 | machenhe | |
11 | *说明* |
||
12 | 3 | yangdefeng | * 参数1: 地图编号,参见[[MapInfo]]文件配置字段1中的地图编号 |
13 | 1 | machenhe | |
14 | * 参数2: NPC名字,参见[[MerChant]]文件配置字段5 |
||
15 | |||
16 | * 参数3: 字符串(场景中NPC下方的字符串) |
||
17 | |||
18 | * 参数4: 颜色值(场景中NPC下方对应字符串的颜色值) |
||
19 | |||
20 | * 参数5: 字符串(小地图对应NPC显示的字符串) |
||
21 | |||
22 | * 参数6: 颜色值(小地图对应NPC显示符串的颜色值) |
||
23 | |||
24 | * 参数7: 图片资源,小地图上使用的NPC坐标点图片 |
||
25 | |||
26 | - |
||
27 | - |
||
28 | |||
29 | |||
30 | 2 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
31 | 1 | machenhe | |
32 | bq. [<notextile>@</notextile>main] |
||
33 | #if |
||
34 | #act |
||
35 | 2 | yangdefeng | [[mov]] s$npc 〈·守护使者·〉\\开启旅程 |
36 | [[mov]] s$mapId xrjd |
||
37 | 1 | machenhe | |
38 | #say |
||
39 | <找到npc/<notextile>@</notextile>找npc>\\ \\ |
||
40 | <npc加标识/<notextile>@</notextile>加标识>\\ \\ |
||
41 | <打开小地图/<notextile>@</notextile>小地图>\\ \\ |
||
42 | |
||
43 | [<notextile>@</notextile>找npc] |
||
44 | #if |
||
45 | #act |
||
46 | 2 | yangdefeng | [[getNpcPos]] s$mapId s$npc s$x s$y |
47 | 1 | machenhe | print <$str(s$x)> <$str(s$y)> |
48 | 2 | yangdefeng | [[mapMove]] <$str(s$mapId)> s$x s$y |
49 | 1 | machenhe | |
50 | [<notextile>@</notextile>加标识] |
||
51 | #if |
||
52 | #act |
||
53 | 2 | yangdefeng | *{color:green}setNpcStat* s$mapId s$npc 场景中NPC名字下方字符串 254 小地图NPC坐标处 253 lc_tx_1 |
54 | 1 | machenhe | |
55 | [<notextile>@</notextile>小地图] |
||
56 | #if |
||
57 | #act |
||
58 | 2 | yangdefeng | [[openSysUi]] 15 |