Paste #2467: Untitled Paste

Date: 2014/03/09 20:23:02 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


StoryQuest3:
    type: assignment
    default constants:
        items: 340
    interact scripts:
    - 10 LostBook
    actions:
       on assignment:
       - trigger name:proximity toggle:true
LostBook:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "I am sorry I'm not much in the mood for conversation."
        2:
            click trigger:
                script:
                - chat "Please help me! My house was attacked by those things and my book was left behind. It may hold the key to ending this invasion."
                - wait 3
                - chat "Will you please retrieve my book?"
            chat trigger:
                1:
                    trigger: /Yes/, I can help you, but where is your house?
                    script:
                    - chat "Great! My house is in hills near Elden. You can get to Elden by following the road outside of town."
                    - wait 4
                    - chat "Watch out for those monsters."
                    - zap step:3
                2: 
                    trigger: /No/, I don't have the time.
                    script:
                    - chat "I see....I guess I'll die trying to get it myself."
                    - zap step:2
        3:
            proximity trigger:
                entry:
                    script:
                    - if <cons:items> contains <player.item_in_hand.id> runtask "FoundBook"
                        else {
                            - random {
                              - chat "Did you get the book?"
                              - chat "Where is the book?"
                              - chat "The fate of this world depends on that book."
                              }
                        }
"FoundBook":
    type: task
    steps: 
        1:
            click trigger:
                script:
                - chat "My book! You found my book! Thank you so much!"
                - wait 3
                - chat "I will start searching through the book for anything that can help us."
                - wait 3
                - chat "Oh and here's something for your time."
                - give money qty:200
                - zap step:2
                - FINISH
        2: 
            click trigger:
                script:
                - chat "Return in a couple days. I should have something by then. Go try and help some other citizens around here in the meantime."