- 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


TitleEdit of P#19900 - Edit of P#19899 - shadow assignment
TypeDenizen Script
Date2015/09/06 22:05:46 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
11800
cchat:
    type: format
        format:"<&b><npc.name><&f><&co><&a><text>"

shadowassignment:
    type: assignment
    actions:
        on assignment:
        - trigger name:proximity state:true
        - trigger name:click state:true
        - run masterpath npc:<npc> def<^npc>
    interact scripts:
    - 10 shadowquest
shadowquest:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - narrate format:cchat "please do not touch me i am in a hurry. the kingdom is in a state of emergency."
            proximity trigger:
                exit:
                    script:
                    - narrate format:cchat "Wait!!! You there. Your name is <player.name> I have heard tales of you. You might be able to save the kingdom."
                    - ^create player "Ender Knight" <npc.location> save"Ender Knight"
                    - ^adjust <player> hide_entity:<npc>
                    - ^adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry["Ender Knight"].created_npc>
                    - ^run quest npc:<entry["Ender Knight"].created_npc> def:<^npc>
                    - ^run questtalk npc:
                    - zap 2
                    
                    
questtalk:
    type: task
    definition: masternpc
    script:
    - ^while <npc.location.simple.distance[<player.location.simple].is[more].then[5]>{
    - walk <npc> <player.location.simple>
    }
         - narrate format:cchat "please listen to what i have to say. there is a dangerous creature that has moved into the sewers and has been amasing a monster army. will you help 
                 
masterpath:
    type: task
    definition: masternpc
    script:
        - walk <def[masternpc].anchor[spot1]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot2]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot3]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot4]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot5]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot6]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot7]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot8]> auto_range
        - wait 10
        - walk <def[masternpc].anchor[spot9]> auto_range
        - wait 10
quest:
    type: interact
    definition: masternpc
    steps:
        1:
          
            chat trigger:
                1:
                    trigger: /yes/"i will help you. this evil cannot go unpunished."
                    script:
                    - run enderkightpath npc:<npc> def:<masternpc>
                2:
                    trigger: /no/"i will not put my life at risk for you."
                    script:
                    - narrate format:cchat "well than i will have to find somone else."
                    - walk <npc> <def[masternpc].location> auto-range
                    - remove <npc>
                    - adjust <player> show_entity:<def[masternpc]>
                    - zap 1 script:shadowquest
        2:
enderknightpath:
    type: task
    definitions: masternpc
    script:
    - ^flag <npc> step:1
    - ~walk <def[masternpc].anchor[spot10]> auto_range
    - inject pause
    - ^flag <npc> step:2
    - ~walk <def[masternpc].anchor[spot11]> auto_range
    - inject pause
    - wait 1
    - ^flag <npc> step:3
    - ~walk <def[masternpc].anchor[spot12]> auto_range
    - inject pause
    - remove <npc>
    - adjust <player> show_entity:<def[masternpc]>
    - zap 1 script:shadowquest
pause:
    type: task
    script:
        - ^while <npc.location.distance[<player.location>].is[or_more].than[5]{
        - narrate format:cchat "try to keep up. i cant go loosing you now."
        - wait 5
        }
enderkighttalk:
    type: task
    script:
    - narrate format:cchat "I am afraid i have under sold the difficulty of this creature. it is viciously intelegent. and has an army of creatures at its disposal. you must be very carefull of its magic. all of the soldiars i have sent down there have not come back. "
    - wait 3
    - narrate format:cchat "the sewers are also like a labrynth. no one knows all the pathways. not even me. i will try to meet you at the exit if i am able."
    - while <npc.flag[step].is[or_less].then[1]>{
    - wait 1
     }
    - narrate format:cchat "well here we are at the entrancee. good luck to you. i have left some supplies in this chest. if you survive your welcome to them. good luck <player.name>"



RawRaw



Pastes made: 72179