- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2015/09/15 08:33:00 UTC-07:00
Bymawej1
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2500
NpcGuideInteract:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "So you want a tour? Great"
                - wait 2
                - adjust <player> hide_entity:<npc>
                - create player Guide <npc.location> save:p_guide
                - run NpcGuideScript npc:<entry[p_guide].created_npc> def:<^npc>

NpcGuideScript:
    type: task
    script:
    - define wpts '<yaml[npc].list_keys[npc.nguide.waypoints].alphanumeric>'
    - foreach %wpts% { 
        - ~walk <npc> <yaml[npc].read[npc.nguide.waypoints.%value%.location]>
        - inject NpcGuideTryPause
        - narrate <parse:<yaml[npc].read[npc.nguide.waypoints.%value%.message]>>
        - wait <yaml[npc].read[npc.nguide.waypoints.%value%.delay]>
    }
    - remove <npc>
    - adjust <player> show_entity:%1%



RawRaw



Pastes made: 55652