Advertisement
WriteEscape

Untitled

Mar 12th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.48 KB | None | 0 0
  1. "days"
  2.   type: world
  3.   debug: true
  4.   events:
  5.  on 06:00 in world
  6.   - flag player day:++
  7.   - execute asserver "gamerule doDaylightCycle false"
  8.   on weather changes
  9.   - determine: CANCELLED
  10. "Santa":
  11.   type: assignment
  12.   interact scripts:
  13.  - 10 Santa Day 1
  14.  
  15.   actions:
  16.     on assignment:
  17.    # This enables interaction with NPC via clicking, chatting, proximity and damage.
  18.     - trigger name:chat toggle:true
  19.     - trigger name:click toggle:true
  20.     - trigger name:proximity toggle:true
  21.     - trigger name:damage toggle:true
  22.     - lookclose state:true
  23. "Santa Day 1":
  24.   type: interact
  25.   steps:
  26.     1:
  27.       proximity trigger:
  28.         entry:
  29.           script:
  30.          - if <player.flag[day]> == 2
  31.           {
  32.             - chat "Hello <player.name>"
  33.             - wait 3
  34.             - chat "You may be asking yourself why i have brought you all here"
  35.             - wait 1
  36.             - chat "well let me explain. My sleigh had"
  37.             - wait 1
  38.             - chat "well let's just say an accident"
  39.             - wait 2
  40.             - chat "You may have noticed we relocated our operations since last year to this planet."
  41.             - wait 3
  42.             - chat "Given that you morons ruined our home with a small thing called Global Warming,"
  43.             - chat "as soon as the christmas festivities ended we packed up and got the bloody hell out of that place,"
  44.             - chat "making this our new home."
  45.             - wait 3
  46.             - chat "Me and my elves have lived in peace here for the last six months,"
  47.             - wait 2
  48.             - chat "however... recently on a Sled test-run the engine failed for some strange reason"
  49.             - wait 2
  50.             - chat "but I simply don’t have the time to explore!"
  51.             - wait 1
  52.             - chat "Getting down to the point I need you to recover my Sleigh and to collect the magical wool. It must be around there somewhere."
  53.             - wait 2
  54.             - chat "I have an elf to help you, don’t be scared, he will meet you outside on the bridge. Go along now get back to me when you have finished"
  55.             - flag player magicwool:0
  56.             - zap step:2
  57.           }
  58.     2:
  59.       proximity trigger:
  60.         entry:
  61.           script:
  62.          - if <player.flag[magicwool]> == 5
  63.           {
  64.             - chat "Hello <player.name>"
  65.             - chat "thank you for getting my magical wool for me!"
  66.             - execute asserver "gamerule doDaylightCycle false"
  67.           }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement