Advertisement
Guest User

Untitled

a guest
Feb 9th, 2018
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.10 KB | None | 0 0
  1. {
  2.     "<GREET>": ["Good to see you again."], // what's played when starting conversation with NPC
  3.     "<FIRST_GREET>": [ // what's played when starting the first conversion with NPC, optional
  4.         "Greetings! I am {SELF.name}. ", // {...} are variables that will be evaluated at run time
  5.         "What's that, you are looking for trade?",
  6.         "I may not have much, but please take a look. "
  7.     ],
  8.  
  9.     "<TRADER>": { // this tag marks the NPC as available for trade. Inventory generation and such is hardcoded for now...
  10.         "<TRADE_START>": "Show me what you got." // the choice in the main decision branch that results in trading
  11.     },
  12.  
  13.     "<QUEST>help wanted": { // quest marker
  14.         "<QUEST_REQS>": { // requirements
  15.             "<ITEMS>": {
  16.                 "junk": 30,
  17.                 "root_fruit": 4
  18.             }
  19.         },
  20.         "<QUEST_REWARDS>": { // reward
  21.             "seeds": 10
  22.         },
  23.         "<QUEST_INQUIRE>": "Is there anything I can help you with?",
  24.  
  25.         "<STORY>": [ // what NPC says when inquired about this quest
  26.             "Before I found this place, I was a travelling merchant.",
  27.             "This place is nice... peaceful... I like it here.",
  28.             "I know I don't have much, but I want to help with what I can.",
  29.             "I want to set up a bigger shop, with more resources and supplies. But... I need some initial capital to get started. Can you help me?",
  30.             "<SHOW_QUEST_REQ>" // say the quest requirement
  31.         ],
  32.  
  33.         "<ACCEPT> I'll see what I can do.": [ // the choice available to player that correspond to accepting the quest
  34.             "You have my thanks. I pray for your safe return." // what the NPC says in response
  35.         ],
  36.         "<DECLINE> Not interested.": [ // choice for decline
  37.             "I see... that's understandable. I'll try to find someone else."
  38.         ],
  39.  
  40.         "<MEET_REQS> Here, I got everything.":[ // here is an option that is only available when the quest requirement are met
  41.             "Thank you, thank you so much!",
  42.             "Please, take these as a token of my gratitude. I'll get started on the expansion right away",
  43.             "<QUEST_COMPLETE>", // this marks the quest as complete, that quest option will no longer show up
  44.             "<SET> {PERSONAL.vendorLevel} = 1", // sets a variable to value
  45.             "<SET> {RELATION} += 15"
  46.         ]
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement