Paste #38638: Untitled Paste

Date: 2017/01/01 13:46:48 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"Imouto":
    type: assignment

    actions:
      on assignment:
      - trigger name:click toggle:true state:true radius:3
    interact scripts:
    - 1 Imouto_interact

Imouto_interact:
    type: interact
    steps:
        1:
             click trigger:
                 script:
                 - chat "Konichiwa onii-chan"
                 - wait 1
                 - ^narrate "<red>Say:"
                 - ^narrate "  <proc[msgChat].context[<blue>Food|FOOD|Food - Click Me To Feed|]><blue> <gray>or<red> <proc[msgChat].context[Pat|PAT|Pat - Click Me To Pat|]> <gray>or<red> <proc[msgChat].context[<red>Die|DIE|Die - Click Me|]>"
             chat trigger:
                 'Feed Her':
                     Trigger: I have some /food/ for you.
                     script:
                     - ^run "script:Imouto Feed Requirement"
                 'Insult Her':
                     Trigger: I hate you, /Die/!
                     script:
                     - chat "Onii-chan baka! :'("
                 'Head Pat':
                     Trigger: Let me /Pat/ your head.
                     script:
                     - wait 1
                     - chat "Onii-chan <3"
                     - playeffect <npc.location> HEART
                     - adjust <npc> velocity:l@0,0.8,0
             proximity trigger:
                  entry:
                      script:
                          - ^random {
                           - ^narrate "The imouto looks at you with longing eyes..."
                           - ^narrate "Is that your imouto standing all lonely?" }
             damage trigger:
                 script:
                 - chat "Owww onii-chan whyyy :'("
"Imouto Feed Requirement":
    type: task
    script:
    - ^if <player.item_in_hand.id> == 357 run "script:Imouto Food"
      else ^run "script:Disappointed Imouto"
"Imouto Food":
    type: task
    script:
    - ^take iteminhand qty:1
    - chat "Arigato onii-chan~"
    - playeffect <npc.location> HEART
"Disappointed Imouto":
    type: task
    script:
    - wait 1
    - chat "No food for me Onii-chan? :'("
    - wait 1
    - narrate "Maybe you should feed her cookies..."