Paste #11997: Script re-paste from http://pastebin.com/ntPF5PcC

Date: 2014/12/11 19:36:45 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


JayScript:
    type: assignment
    actions:
      on assignment:
      - trigger name:chat toggle:true
      - trigger name:click toggle:true

    interact scripts:
    - JayInteract

JayInteract:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Howdy there <YELLOW><player.name><GREEN>."
                - wait 3
                - chat "I haven't seen you around town!"
                - wait 3
                - chat "Can you go grab me some eggs so I can make some dough?"
                - wait 3
                - narrate "<YELLOW>Will you help the man?"
                - narrate "<YELLOW> [YES]"
                - narrate "<YELLOW> [NO]"
                - zap step:2
        2:
            chat trigger:
                1:
                    trigger: /Yes/
                    script:
                    - chat "Thank you!"
                    - wait 3
                    - chat "I'll be waiting!"
                    - zap step:3
                2:
                   trigger: /No/
                    script:
                    - chat "Well now I can't make my dough!"
                    - zap step:1
        3:
            click trigger:
                script:
                - if <player.inventory.contains[EGG]> {
                   - chat "Thank you, <YELLOW><player.name><GREEN>!"
                   - wait 3
                   - take EGG gty:1
                   - chat "Here take this."
                   - give IRON_INGOT qty:1
                   - zap step:4
                }
                else {
                  - chat "Do you have the egg yet?"
                }
        4:
            click trigger:
                script:
                - chat "Thanks again for the egg!"