Paste #13592: test

Date: 2015/02/04 07:59:43 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


cookass:
    type: assignment
    actions:
        on assignment:
        - trigger name:click trigger
        - trigger name:chat trigger
    interact scripts:
    - 10 cook
cook:
    type: interact
    steps:
         1:
             click trigger:
                 script:
                     - if "<player.has_flag[CTF1]>" {
                       - chat "Would you like to hear our menu <player.name>, if so just say Menu"
                    } else {
                    - random 3
                    - chat "<red>Dont you have citizens around the realm you could be helping"
                    - chat "<red>You have not won the Emporors Favor yet!"
                    - chat "<red>You may want to talk to the Chef"
                    }
             chat trigger:
                 1:
                     trigger: '/cookie/s!'
                     script:
                         - chat "OH you gonna like these cookies!"
                         - give FortuneCookie qty:16
                         - take money qty:20
                         - narrate '<gold>You just bought 16 fortue cookies for 20 money! SWEET!'
                         - narrate '<green> Your Balance is <player.money.as_int>!'
FortuneCookie:
    type: item
    material: i@cookie
    display name: <red>Fortune Cookie
    lore:
    - <green>'Fortune: says May Be Sweet
    - <green>or maybe SOUR!'
    recipe:
    - i@item|i@item|i@item
    - i@item|i@item|i@item
    - i@cookie|i@mycel|i@paper