Paste #49232: Untitled Paste

Date: 2018/08/20 12:37: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
16
17
18
19
20
21


Proximity: 
    type: assignment 
    actions: 
        on assignment:  
        - trigger name:click toggle:true
    interact scripts: 
    - 1 follow
follow:
    type: interact
    steps:
        1:
            click trigger:
                    script:
                    - follow
                    - flag player playername:<player.name>
                    - flag player npcfollower:<npc.id>
                    - narrate "<player.flag[playername]>"
                    - if <l@location.distance[<npc.location>].to[<pla.locations>]> > 20 {
                      - teleport <npc> <player.location>
                      - narrate "<player.flag[playername]>"
                      }