Paste #45623: quest

Date: 2017/11/20 10:30:11 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


TicketQuest:
    type: assignment
    interact scripts:
    - 10 TicketStart

TicketStart:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hello there <player.name>..."
                - wait 1
                - chat "Would you like to show me the ticket, please?"
                - wait 2 
                - chat "#Hint# Type Yes/No in the chat."
            chat trigger: 
                1:
                    trigger: /Yes/, here you go as the Conductor reaches for the ticket in <player.name>'s hand.
                    script:
                    - if <player.inventory.contains[PAPER].qty[1]> {
                      - take paper qty:1
                      - wait 3
                      - chat "Welcome to the House Of Tore"
                      - wait 1
                      - teleport <player> <l@30,28,-14,Spawn>
                      - zap step:1
                      } else {
                      - chat "Seems like you dont have the ticket, come back when you've got it!"
                      - wait 1
                      - narrate "<npc.name> frowns at you."
                      - zap step:1
                      }
                2:
                    trigger: /No/, I will not give you the ticket.
                    script:
                    - chat "Oh darn, you will not get passed me without a ticket."
                    - wait 1
                    - chat "Come back when you´ve got a ticket..."
                    - zap step:1