Paste #13410: test4

Date: 2015/01/27 13:06:02 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"Cookies":
    type: assignment

    actions:
      on assignment:
      - trigger name:proximity toggle:true
      - trigger name:click toggle:true
      - trigger name:click toggle:true

    interact scripts:
    - 10 Cookie Greeting
'Cookie Greeting':
    type: interact

    steps:
        'Spreading the Word*':

            proximity trigger:
                enter:
                    Script:
                    - chat "<player.name>You have no BUSINESS here!"
                exit:
                    Script:
                    - chat "<player.name>I knew you would know what was best for you now GET!"

            click trigger:
                script:
                - random 3
                - chat 'I like cookies!'
                - chat 'MMmm.. cookies are my favorite!'
                - chat 'Cocoa and wheat make me freak!'

            chat trigger:

                'Cookies':
                    trigger: 'I love /cookie/s!'
                    script:
                    - chat 'Me too!'
                    - narrate '<npc.name> gives you some cookies.'
                    - give item:cookie qty:6
                    - zap 'step:Cookies given'

        'Cookies given':

            click trigger:
                script:
                - chat 'How were the cookies?'
                - zap 'step:Spreading the Word'