Date: 2015/09/27 03:46:02 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
NpcGuideAssignment:
type: assignment
interact scripts:
- 10 NpcGuideInteract
NpcGuideInteract:
type: interact
steps:
1:
click trigger:
script:
- chat "So you want a tour? Great"
- wait 2
- adjust <player> hide_entity:<npc>
- create player Guide <npc.location> save:p_guide
- run NpcGuideScript npc:<entry[p_guide].created_npc> def:<npc>
NpcGuideScript:
type: task
definitions: masternpc
script:
- define wpts '<yaml[npc].list_keys[npc.nguide.waypoints].alphanumeric>'
- foreach %wpts% {
- ~walk <npc> <yaml[npc].read[npc.nguide.waypoints.%value%.location]>
- if <player.is_online.not> {
- remove <npc>
- wait 1t
- queue clear
}
- inject NpcGuideTryPause
- narrate <parse:<yaml[npc].read[npc.nguide.waypoints.%value%.message]>>
- wait <yaml[npc].read[npc.nguide.waypoints.%value%.delay]>
}
- remove <npc>
- adjust <player> show_entity:<def[masternpc]>
NpcGuideTryPause:
type: task
script:
- while <npc.location.distance[<player.location>].is[OR_MORE].than[5]||false> {
- narrate "Try to keep up!"
- wait 1
}