Paste #7045: Untitled Paste

Date: 2014/07/17 21:15:10 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


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