- 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#3900 - Edit of P#3899 - Edit of P#3897 - Untitled Paste
TypeDenizen Script
Date2014/05/01 02:32:17 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
11500
Zorgoth:
  Type: Assignment
  Interact scripts:
  - 10 ZorgothQuest

ZorgothQuest:
  Type: Interact
  Steps:
    1:
      Click Trigger:
        Script:
        - chat "Welcome to my shop, Traveler!"
        - wait 2
        - chat "I would normally offer you ingredients but..."
        - wait 2
        - chat "...I'm afraid my supplies have been stolen by witches."
      Click Trigger:
        Script:
        - chat "Are you offering assistance with my witch problem?"
        - wait 2
        - chat "I'm capable of brewing a fair reward for you."
        - wait 2
        - chat "Will you help me out?"
      Chat Trigger:
        Yes:
          Trigger: /Yes/, I will help.
          Script:
          - chat "Ah, this is most excellent."
          - wait 2
          - chat "Please talk to the witches located about 150 meters to the South."
          - wait 2
          - chat "By talk I mean slaughter. Off you go now."
          - listen kill type:npc target:n@Fantasio region:ZorgothQuestTaskZone script:KilledFantasio
          - listen kill type:npc target:n@Ossidiana region:ZorgothQuestTaskZone script:KilledOssidiana
          - zap step:3
        No:
          Trigger: /No/, I'm not ready nor willing to risk my life.
          Script:
          - chat "Oh, what a shame."
          - wait 2
          - chat "Let me know if you happen to change your mind."
          - wait 2
          - chat "It will be worth your time. Come talk to again me when you're able to help."
          - zap step:2
    3:
      Click Trigger:
        Script:
        - chat "Please hurry, I'll sell you stuff when you're finished."
    4:
      Click Trigger:
        Script:
        - chat "Thanks, once again."
        - wait 2
        - chat "Here, check out my supplies!"

KilledOssidiana:
  type: task
  script:
  - flag <player> has_killed:->:Ossidiana
  - if <player.flag[has_killed].contains[Fantasio]> {
    - run s@ZorgothQuestTask
    } else {
    - narrate "Now go kill Fantasio!"
    }

KilledFantasio:
  type: task
  script:
  - flag <player> has_killed:->:Fantasio
  - if <player.flag[has_killed].contains[Ossidiana]> {
    - run s@ZorgothQuestTask
    } else {
    - narrate "Now go kill Ossidiana!"
    }

ZorgothQuestTask:
  Type: Task
  Script:
  - if <player.flag[has_killed].contains[Ossidiana]> && <player.flag[has_killed].contains[Fantasio]> {
    - narrate "&eI should probably return to Zorgoth."
    - zap step:4 script:ZorgothQuest
    }
  
NPCEngageScript:
  Type: Assignment
  Interact scripts:
  - 10 ProximityEngage

  Actions:
    on assignment:
    - trigger name:proximity radius:3
    on death:
    - vulnerable state:false
    - wait 120s-180s
    - spawn <npc> <npc.flag[startLocation]>
    - teleport <npc> <npc.flag[startLocation]>
    - attack target:cancel

ProximityEngage:
  Type: Interact
  Steps:
    1:
      Proximity Trigger:
        Entry:
          Script:
            - flag <npc> startLocation:<npc.location>
            - random {
              - chat "Intruder!"
              - chat "Die scum!"
              - chat "Have at thee!"
              - chat "Die!"
              }
            - attack target:<player>
            - vulnerable



RawRaw



Pastes made: 75780