Paste #16566: Doviscript4

Date: 2015/06/17 17:31:23 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Historybookquest:
    type: assignment
    interact scripts:
    - 10 Historybookstart

Historybookstart:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "<player.name>, have you seen my history textbook?"
                - wait 1
                - chat "I can't remember where I left it..."
                - wait 1
                - chat "Could you help me find it?"
                - chat "(type 'yes' or 'no')"
            chat trigger: 
                1:
                    trigger: /Yes/, I'll help you out.
                    script:
                    - chat "Oh thank you!"
                    - wait 1
                    - chat "I had it at the train station earlier...try looking there."
                    - zap step:2

                2:
                    trigger: /No/, I'm too busy right now.
                    script: 
                    - chat "Alright then. I'll just keep looking on my own."
        2:
            click trigger:
                script:
                - if <player.inventory.contains[i@HistoryBook].qty[1]> {
                - chat "What a strange book! Clockworks? What rubbish!"
                - wait 1
                - chat "That's not my book though, keep it."
                - wait 1
                - chat "I'll just keep looking, thanks anyways!"
                - give 264 qty:2
                - zap step:3
                } else {
                - chat "Have you found my book yet?"
                }
        3:
            click trigger:
                script:
                - chat "Oh hey, it's you! I found my book in the restroom."
                - wait 1
                - chat "What...I had the burritos last night"
                - wait 2
                - chat "...don't ask."