Paste #830: flowers

Date: 2014/01/01 14:46:48 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


GatherFlowers:
    type: assignment
    interact scripts:
    - 10 flowers

flowers:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hello <player.name>, I need some help!"
                - wait 1
                - chat "I love flowers!  I love them so much! I need more!"    
                - wait 1
                - chat "Will you help me find some?"
            chat trigger:
                1:
                    trigger: /Yes/, I will help you!
                    script:
                    - chat "Yay! That's wonderful!"
                    - wait 1
                    - chat "Can you find me 20 Poppy's and 20 Dandelion's?"
                    - wait 1
                    - chat "When you find them bring them back to me for a reward!"
                    - zap step:2
                2:
                    trigger: /No/, Flowers are stupid.
                    script:
                    - chat "Oh poo, well come back later if you change your mind..."
                    - wait 1
                    - narrate "<npc.name> tears up..."
        2:
            click trigger:
                script:
                  - if <player.inventory.contains[yellow_flower].qty[20]> || <player.inventory.contains[red_flower].qty[20]> {
                    - take yellow_flower qty:20
                    - take red_flower qty:20
                    - chat "Oh thank you so much for the flowers!"
                    - wait 1
                    - chat "I'm so happy now!"
                    - wait 1
                    - chat "Here, I have something special for you..."
                    - narrate "<npc.name> hands you something..."
                    - give 'i@Epidemic Shovel'
                    - zap step:3
                    } else {
                    - chat "Oh, come back when you have my flowers!"
                    - wait 1
                    - narrate "<npc.name> frowns at you."
                    }
        3:
            click trigger:
                script:
                - chat "Thanks again for your help <player.name>."
"Epidemic Shovel":
   type: item
   material: diamond_spade
   display name: "Epidemic Shovel"
   lore:
   - Some crazy flower lady gave me this shovel.
   - It's ok though becuase it's awesome!
   enchantments:
   - durability:4
   - DIG_SPEED:3
   - WATER_WORKER:1