Paste #1982: Untitled Paste

Date: 2014/02/11 15:31:59 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


KillQuestAssignement:
    type: assignment
    interact scripts:
    - 10 KillQuest

KillQuest:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hey <player.name>!"
                - wait 1
                - chat "I Thank goodness your here."
                - wait 1
                - chat "I have a problem with zombies killing my cows at night!"
                - wait 1
                - chat "Think you could help?"
            chat trigger:
                1:
                    trigger: /Yes/, I'll take care of them.
                    script:
                    - chat "I need you to kill some zombies at my farm tonight."
                    - wait 1
                    - chat "Hurry before they kill all my cows!"
                    - zap step:2
                    - listen kill type:entity name:zombie qty:5 script:ZombieQuestTask
                2:
                    trigger: /No/, I am busy.
                    script:
                    - chat "Oh, come back when you have the time, please."
        2:
            click trigger:
                script:
                - chat "Hurry up, my cows keep dying!!"
        3: click trigger:
            script:
            - chat "Oh thank goodenss my cows are safe.."
            - wait 1
            - chat "Heres 100 Coins for your help."
            - give money qty:100
            - zap step:4
        4:
            click trigger:
                script:
                - chat "Thanks again for killing the"
ZombieQuestTask:
    type: task
    script:
    - narrate "You've killed all the zombies! Return to the farmer!"
    - zap step:3 script:KillQuest