Paste #45620: quest

Date: 2017/11/20 09:43:42 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. &5Conductor reaches for the ticket in <player.name>´s hand.
                    script:
                    - wait 2
                    - chat "Thank you! I will check this right away."
                    - zap step:2
                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..."
        2:
            click trigger:
                script:
                - if <player.inventory.contains[PAPER].qty[1]> {
                  - take paper qty:1
                  - chat "Thanks for your cooperation, sir."
                  - wait 1
                  - chat "Have a great time here"
                  - wait 2
                  - teleport <player> <player.location.add[30,28,-13]>
                  } else {
                  - chat "Seems like you dont have my ticket, come back when you´ve got it!"
                  - wait 1
                  - narrate "<npc.name> frows at you."
                  }