Date: 2014/07/17 21:15:10 UTC-07:00
Type: Denizen Script
companionloop:
Type: interact
steps:
1:
on proximity:
exit:
- if <player.flag[npcn].as_npc.flag[busy]> == null {
- follow npc:<player.flag[npcn]> target:<player.name>
}
- if <player.flag[npcn].as_npc.location.distance[<player.location>]> <= 2 {
- follow npc:<player.flag[npcn]> stop
}
}
- if <player.flag[npcn]> == null queue clear
- run companionloop