Paste #49179: Longtimenosiege

Date: 2018/08/18 17:25:06 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Quest1:
    type: assignment
    interact script:
    - 10 Quest1start
Quest1start:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hello <player.name>, I could use your help!"
                - wait 1
                - chat "Are you up for an adventure?"
            chat trigger:
                1:
                    trigger: /yes/, Ofcourse i am!
                    script:
                    - chat "Good! now i would like you to get me the book of Galia!"
                    - wait 1
                    - chat "The book of Galia is found in a cave inside Mourgrav!"
                    - wait 1
                    - chat "becareful <player.name>, come back once you have it!"
                    - zap step:2
                2:
                    trigger: /No/, Sorry im busy.
                    script:
                    - chat "Oh okay, come back whenever you have time.."
        2:
            click trigger:
                script:
                - if <player.inventory.contains[BOOK].qty[1]> {
                  - ^take book qty:1
                  - chat "Extrodinary! you acually found it! thanks a lot <player.name>!"
                  - give diamond qty:2
                  - zap step:3
                  } else {
                  - chat "Please return once you retrived the book!"
                  - wait 1
                  - narrate "<npc.name> frowns at you."
                  }
            3:
                click trigger:
                    script:
                    - chat "Thanks for your help!"