- 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
Date2013/12/30 17:22:43 UTC-08: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
5200
"KillQuestAssignment":
    type: assignment
    interact scripts:
         - 10 KillQuest

KillQuest:
    type: interact
    steps:
        1:
            click trigger:
                script:
                                - chat "Hello <player.name>, I need some help!"
                                - wait 1
                                - chat "I have a problem with zombies killing my cows at night."
                                - wait 1
                                - chat "Can you help me?"
            chat trigger:
                1:
                    trigger: /Yes/, I will help you!
                    script:
                                        - chat "Ok thank you ver much! i need to kill 5 zombies arround my farm tonight"
                                        - wait 1
                                        - chat "Hurry they're going to kill my cows if you don't hurry!"
                                        - zap step:2     
                                        - listen kill type:entity name: zombie qty:5 script:ZombieQuestTask
                2:
                    trigger: /No/, I'm too busy.
                    script:
                                        - chat "Oh darn, come back if you have some spare time..."
        2:
            click trigger:
                script:
                                - chat "Hurry up, <player.name>! My cows keep dying!!"
        3:
            click trigger:
                script:
                                - chat "Oh thank goodness, my cows are safe!"
                                - wait 1
                                - chat "Here is a reward
                - give money qty:100
                                - give iron_sword
                                - zap step:4
        4:
            click trigger:
                script:
                                - chat "Thanks for saving my cows!"

ZombieQuestTask:
    type: Task
    script:
        - narrate "You've killed 5 zombies! Return  to <npc.name>!"
    - zap step: 3 script:KillQuest


RawRaw



Pastes made: 62554