Paste #13788: SimpleQuest

Date: 2015/02/10 09:11:39 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


QuestForCobble:
    type: assignment
    interact scripts:
    - 10 QuestForCobbleStart

QuestForCobbleStart:
    type: interact
    steps:
        1:
            click trigger:
                script: 
                - chat "Hello <player.name>, do you have some time to help me?"
                - wait 1
                - "Can you help me?"
            chat trigger: 
                1: 
                    trigger: /Yes/, I will help you! 
                    script: 
                    - chat "Oh Great! Shockingly I need 10 Cobblestone. Ebin maymay right?"
                    - wait 1
                    - chat "Get them right now u fug"
                    - zap step:2

                2:
                    trigger: /No/, not right now.
                    script:
                    - chat "Oh Snap. Whenever you are are free then..."
        2:
            click trigger:
                script:
                - if <player.inventory.contains[Cobblestone].qty[10]> {
                  - ^take Cobblestone qty:10
                  - chat "My cobbly stonu"
                  - wait 1
                  - chat "Thanks pleb"
                  - give gold_ingot qty:10
                  - zap step:3

                  } else {
                  - chat "wtf bring me some cobblestone it's not hard GEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEES"
                  - wait 1
                  - narrate "<npc.name> frowns at you."
                  }
        3:
            click trigger:
                script:
                - chat "Thanks again"
                - wait 1
                - chat "I'd have nothing to put on my wall without you."