Date: 2015/09/15 08:33:00 UTC-07:00
Type: Denizen Script
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
script:
- define wpts '<yaml[npc].list_keys[npc.nguide.waypoints].alphanumeric>'
- foreach %wpts% {
- ~walk <npc> <yaml[npc].read[npc.nguide.waypoints.%value%.location]>
- 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:%1%