Paste #38406: Untitled Paste

Date: 2016/12/19 17:42:21 UTC-08: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


script:
                # get name for chatting
                - ^flag global Food1NPC:<npc.name>

                #cloning vendor
                - ^create villager X <npc.location> save:food1npc

                # get flags for cleanup
                - ^flag player EngagedNPC:<npc>
                - ^flag player EngagedNPC_clone:<entry[food1npc].created_npc>

                - narrate "********** <player.flag[EngagedNPC_clone]>"

                - ^walk <player.flag[EngagedNPC_clone]> <npc.location.add[1,0,1]> speed:0.8 radius:0.2 auto_range
                - ^lookclose <player.flag[EngagedNPC_clone]> state:true range:10 realistic

                - wait 5
                - narrate <player.flag[EngagedNPC_clone]>
                - remove <player.flag[EngagedNPC_clone]>

                - queue clear