Paste #1997: Untitled Paste

Date: 2014/02/12 16:33:03 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


GoldBarQuest:
    type: assigment
    interact scripts:
    - 10 GoldBarStart

GoldBarStart:
    type: interact
    steps:
        1:
            Click trigger:
                script:
                - chat "Hello <player.name>, I need some help!"
                - wait 1
                - chat "Can you help me?"
            chat trigger:
                1:
                    trigger: /Yes/, I will help you!
                    script:
                    - chat "Oh, great! I need 10 gold Ignots."
                    - wait 1
                    - chat "Come back when you have them, I'll be here."
                    - zap step:2
                2:
                    trigger: /No/, I'm to busy.
                    script:
                    - chat "Oh darn, come back later if you have some spare time..."
        2:
            click trigger:
                script:
                - if <player.inventory.contains[GOLD_INGOT].qty[10]> {
                    - ^take gold_ingot qty:10
                    - chat "Oh great you have my gold!"
                    - wait 1
                    - chat "Thank you so much!"
                    - chat "Heres 50 Coins for your troubles."
                    - give money qty:50
                    - zap step:3
                    } else {
                    - chat "Oh, come back when you have my 10 gold bars!"
                    - wait 1
                    - narrate "<npc.name> frowns at you."
                    }
        3:
            click trigger:
                script
                - chat "Thank you so much for your help earlier!"
                - wait 1
                - chat "I'd be broke without you."