Paste #5535: Untitled Paste

Date: 2014/06/21 09:54:13 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


TheCake:
  Type: Assignment
  actions:
    on assignment:
    - trigger name:chat toggle:true
    - trigger name:click toggle:true 
  Interact Scripts:
  - 4 completedcake
  - 3 hascake
  - 2 hasnocake
  - 1 cakestart
cakestart:
  Type: Interact
  Requirements:
    Mode: Any 1
    List:
    - -FLAGGED basicCake
  Steps:
      1:
        Click Trigger:
          Script:
          - chat "Do you have a minute? I need some help"
          - zap 2
      2:
        Chat Trigger:
          1:
            trigger: /regex:(Yeah|Yes|Yep|Ok|Sure)/
            Script:
            - chat "I need you to bake a cake for me. Its Mark's birthday tomorrow and I can't cook!
            - wait 1
            - chat "You will need one egg, two sugar, three buckets of milk and three wheat to make the cake"
            - wait 1
            - chat "See you soon!"
            - flag nocake:false
            - finish