config/npcs.yml

## Each npc starts with their name
jeb_:
  ## Active
  Active: true
  ## Menu pages
  Menu:
    ## Each menu page starts with their id (String)
    ## The "Main" page is the page that opens when the player uses the map on the npc
    "Main":
      ## Text is the intro text of the npc
      Text: "Hello there <player>. Do you need anything?"
      ## Items are extra items you can place in the menu
      Items:
        ## Each item starts with a numbered id. Always start from 0 and go up. Don't skip numbers!
        '0':
          ## Condition is the condition when this menu item should show or not
          ##    ActiveQuest:ID  - This will check if the player has active quest 'ID'
          ##                      Place a minus before ActiveQuest and it will only show when the quest isn't active
          ##    DeliverQuest:ID - This will check if the player has to deliver quest 'ID'
          Condition: "-ActiveQuest:TQ2"
          ## Text is the text that will be displayed. Or if type is set to Text this isn't necessary
          Text: "Quest: Tutorial 1"
          ## Type is the type of command
          ##   DoQuest   : This will try and open the quest intro for the quest that's set in field 'Quest'
          ##   NagMessage: This will show the player a nag message if one is set
          ##   OpenMenu  : This will open the npc menu page with the id that's set in field 'Menu'
          ##   Text      : This will just show the text set in the 'text' field. Empty lines can be made by removing the 'Text' field
          Type: DoQuest
          Quest: TQ2
        '1':
          Condition: "ActiveQuest:TQ2"
          Type: NagMessage
        '2':
          Condition: "-ActiveQuest:TQ3"
          Text: "Quest: Tutorial 2"
          Type: DoQuest
          Quest: TQ3
        '3':
          Condition: "ActiveQuest:TQ3"
          Type: NagMessage
        '4':
          Condition: "-ActiveQuest:TQ4"
          Text: "Quest: Tutorial 3"
          Type: DoQuest
          Quest: TQ4
        '5':
          Condition: "ActiveQuest:TQ4"
          Type: NagMessage
        '6':
          Condition: "DeliverQuest:TQ1"
        '7':
          Condition: "DeliverQuest:TQ2"
        '8':
          Condition: "DeliverQuest:TQ3"
        '9':
          Condition: "DeliverQuest:TQ4"
Notch:
  Active: true
  Menu:
    "Main":
      Text: "Yeah. I'm Notch. You want something?!"
      Items:
        '0':
          Condition: "-ActiveQuest:TQ1"
          Text: "Quest: Welcome!"
          Type: DoQuest
          Quest: TQ1
        '1':
          Condition: "ActiveQuest:TQ1"
          Type: NagMessage
        '2':
          Text: "Thank you!"
          Type: OpenMenu
          Menu: Thanks
        '3':
          Text: "..."
          Type: OpenMenu
          Menu: Secret
    "Thanks":
      Text: "I wish to thank Mojang for creating such a great game! THANKS! - barryg"
      Items:
        '0':
          Text: "More text..."
          Type: Text
        '1':
          Type: Text
        '2':
          Text: "..."
          Type: OpenMenu
          Menu: Secret
        '3':
          Type: Text
        '4':
          Text: "Back"
          Type: OpenMenu
          Menu: Main
    "Secret":
      Text: "You think selecting the menu option with the three dots will give you something special?"
      Items:
        '0':
          Text: "Thank you!"
          Type: OpenMenu
          Menu: Thanks
        '1':
          Type: Text
        '2':
          Text: "Back"
          Type: OpenMenu
          Menu: Main

Comments

Posts Quoted:
Reply
Clear All Quotes