Paste #8575: Untitled Paste

Date: 2014/08/19 07:31:25 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"Giver":
    type: assignment

    default constants:
        1st_message: Hey here's some stuff

    interact scripts:
    - 10 GiverMessage

    actions:
        on assignment:
        - trigger name:chat toggle:true
        - trigger name:click state:true

'GiverMessage':
    type: interact

    steps:
        'Saying_Message*':
            click trigger:
              script:
                - chat '<cons:1st_message>'
                - zap 'step:Giving_items' 
        'Giving_items':
            click trigger:
              script:
               - if <player.flag[Giver]> == true {
                  - chat 'Hey! You already got stuff!'
                }
                else{
                 - give item:Redstone qty:64
                 - give item:29 qty:6
                 - flag player "Giver:true"
                 - zap 'step:Saying_Message'
                }