Advertisement
WriteEscape

Untitled

Mar 10th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.76 KB | None | 0 0
  1. # Helper Bot
  2. "HelperBot":
  3.   type: assignment
  4.   interact scripts:
  5.  - 10 Helper Bot
  6.   actions:
  7.     on assignment:
  8.    # This enables interaction with NPC via clicking, chatting, proximity and damage.
  9.     - trigger name:chat toggle:true
  10.     - trigger name:click toggle:true
  11.     - trigger name:proximity toggle:true
  12.     - trigger name:damage toggle:true
  13.     - lookclose state:true
  14. "Helper Bot":
  15.   type: interact
  16.   steps:
  17.     1:
  18.      proximity trigger:
  19.      entry:
  20.     - if <player.flag[day]> == 1 {
  21.      - if <player.flag[alignment]> == -1 {
  22.      - chat "So, You got down from the balloon then <player.name>"
  23.      - wait 3
  24.      - chat "Here, have some food"
  25.      - execute as_npc "give <player.name> minecraft:apple 64"
  26.      - wait 4
  27.      } else {
  28.      - chat "Careful, <player.name>, I wouldn<&sq>t want you to take damage"
  29.      - wait 5
  30.      - chat "Heres some food"
  31.      - execute as_npc "give <player.name> minecraft:cooked_mutton 64"
  32.      }
  33.      }
  34.      click trigger:
  35.      script:
  36.     - wait 1
  37.      - chat "So, this map has two possible endings and it depends on whether you are nice or naughty"
  38.      - wait 7
  39.      - chat "If you are nice then there will be fireworks and hints along the way"
  40.      - wait 5
  41.      - chat "if you are not nice, then... well... the puzzles will have less and less hints."
  42.      - wait 4
  43.      - chat "this will mean that the puzzles are harder the more times you are naughty."
  44.      - wait 3
  45.      - if <player.flag[alignment]> == -1 {
  46.      - chat "And so far you are on the naughty list, better fix that"
  47.      - chat "The Baker in town can help you get on the nice list"
  48.      } else {
  49.      - chat "And so far you are on the nice list. Keep it up!"
  50.      - chat "The Baker in Town can give you more food."
  51.      }
  52.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement