- 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
Date2018/03/15 11:23:07 UTC-07:00
ByGuest
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
5600
cchat:
        type: format
        format"<&6><npc.name><&f><&co> <&f><text>"

my_npc:
        type: assignment
        actions:
                on assignment:
                - trigger name:click state:true
                - trigger name:chat state:true
        interact scripts:
        - 10 my_npc_interact

my_npc_interact:
        type: interact
        steps:
                1:
                        click trigger:
                                script:
                                - narrate format:cchat "Not here, not now. Come find me when the sun sets, near the old dragon burrial ground"
                                - narrate "Say /Ok/ or /Goodbye/"
                        chat trigger:
                                1:
                                        trigger: /OK/
                                        script:
                                        - ^narrate format:cchat "We will meet then. I have to go."
                                        - ^create player Assassin <npc.location> save:assassin
                                        - ^adjust <player> hide_entity:<npc>
                                        - ajust <entry[Assassin].created_npc> skin:Merchant
                                        - ^adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry[Assassin].created_npc>
                                        - ^run my_npc_path npc:<entry[Assassin].created_npc> def:<^npc>
                                        - zap 2
                                2:
                                        trigger: /Goodbye/
                                        script:
                                        - narrate format:cchat "Ah you are not prepared"

my_npc_path:
        type: task
        definitions: masternpc
        script:
        - flag <npc> step:1
        - ~walk <def[masternpc].anchor[spot1]> auto_range
        - flag <npc> step:2
        - ~walk <def[masternpc].anchor[spot2]> auto_range
        - flag <npc> step:3
        - ~walk <def[masternpc].anchor[spot3]> auto_range
        - flag <npc> step:4
        - ~walk <def[masternpc].anchor[spot4]> auto_range
        - flag <npc> step:5
        - ~walk <def[masternpc].anchor[spot5]> auto_range
        - wait 1
        - remove <npc>
        - adjust <player> show_entity:<def[masternpc]>
        - zap 1 script:s@my_npc_interact



RawRaw



Pastes made: 71797