Paste #40247: nalex assignment

Date: 2017/02/24 11:40:59 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


nalex:
  type: assignment
  actions:
    on assignment:
    - trigger name:click state:true
  interact scripts:
  - 1 nalex interact

nalex interact:
  type: interact
  steps:
      1:
          click trigger:
              script:
              - chat "Welcome to the Newbie Hotel, <player.name>. I'm Alex. Would you like to hear more about the hotel?"
          chat trigger:
              trigger: /yes/
                  script:
                  - chat "<WHITE>The Newbie Hotel is a safe place for new players to rest at night until they can make their own <AQUA>bed<WHITE> elsewhere."
                  - wait 1
                  - chat "<WHITE>Just pick out any of unused <AQUA>bed<WHITE>, and sleep until morning."
                  - wait 1
                  - chat "<WHITE>Our rooms also have a <AQUA>crafting table<WHITE> and <AQUA>furnace<WHITE> for you to use."
                  - wait 1
                  - chat "<WHITE>The rooms are equipped with <AQUA>Ender chests<WHITE> so that other players can't come along and steal your items while you're away."
                  - wait 1
                  - chat "<WHITE>So, don't bother going through the <AQUA>Ender chests<WHITE> in other rooms. They'll all return your items."
                  - wait 1
                  - chat "That's pretty much it. Have a restful night, <player.name>."
                  - wait 1
                  - chat "I'd better get back to work."
                  - zap 2
              trigger: /no/
                  script:
                  - chat "Well, I'd best get back to work, then."
                  - zap 2
      2:
          click trigger:
              script:
              - chat "Please don't tickle me, I need to get back to work."
              - zap 1