Paste #42941: SW

Date: 2017/07/09 04:08:13 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


DiamondsQuest:
    type: assignment
    interact scripts:
    - 10 DiamondsQuest

DiamondsStart:
    type: interact
    steps: 
    1:
        click trigger:
            script:
            - chat "Hello World"
            - wait 1
            - chat "My name is <npc.name>"
        chat trigger:
            1:
                trigger: /Yes/, I will help you!
                script:
                - chat "Nice... Awesome!!! I need 10 Diamonds!!!"
                - wait 1
                - chat "Come back when you have them!!!"
                - zap step:2 

            2.
                trigger: /No/ I am too busy...
                script:
                - chat "Oh darn, come back if you want to have a donut..."
    2:
        click trigger:
            script:
            - if <player.inventory.contains[Diamond].qty[10]> {
              - ^take diamond qty:10
               - chat "OKAY I SEE YOU!!! You have the Diamonds"
              - wait 1
              - chat "Thank you so much"
              - give DEAD_BUSH qty:10
              - zap step:3
              } else {
              - chat "Oh, come back when you have DE DIAMONDS!!!"
              - wait 1
              - narrate "<npc.name> frowns at you..."
              }

    3.
        click trigger:
            script:
            - chat "Thanks my dude!!!"
            - wait 1
            - chat "You are my only friend in the world!!!"