Date: 2014/07/17 16:56:23 UTC-07:00
Type: Denizen Script
companionloop:
Type: Task
script:
- if <player.flag[npcn].as_npc.flag[busy]> == null {
- narrate "not busy!"
- if <player.flag[npcn].as_npc.location.distance[<player.location>]> >= 4 {
- narrate "too far!"
- follow npc:<player.flag[npcn]> target:<player>
}
- if <player.flag[npcn].as_npc.location.distance[<player.location>]> <= 2 {
- narrate " too close!"
- follow npc:<player.flag[npcn]> stop
}
}
- run companionloop