|
- module.exports = {
- hermit: {
- '1': {
- msg: [{
- msg: `What? Oh...what are you doing here?`,
- options: [1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7]
- }],
- options: {
- '1.1': {
- msg: `Me? What are YOU doing in the middle of the wilderness?`,
- goto: 2
- },
- '1.2': {
- msg: `My ship got wrecked, just south of here. I'm stranded on this island.`,
- goto: 3
- },
- '1.3': {
- msg: `Have you scavenged anything worth selling lately?`,
- goto: 'tradeBuy'
- },
- '1.4': {
- msg: `I have some items you might be interested in.`,
- goto: 'tradeSell'
- },
- '1.5': {
- msg: `I changed my mind, I want to buy something back.`,
- goto: 'tradeBuyback'
- },
- '1.6': {
- msg: `Send me to the big city.`,
- goto: 'portalCity'
- },
- '1.7': {
- msg: `Gimme`,
- goto: 'getItem'
- }
- }
- },
- '2': {
- msg: `I ran into some trouble in the city a few years ago. Moving out here seemed preferable to taking up residence in prison.`,
- options: {
- '2.1': {
- msg: `Trouble? What kind of trouble?`,
- goto: '2-1'
- },
- '2.2': {
- msg: `Where is the city?`,
- goto: '2-2'
- },
- '2.3': {
- msg: `I'd like to ask something else.`,
- goto: 1
- }
- }
- },
- '2-1': {
- msg: `Let's just say it was of a royal nature. There are those who would still like to see me in prison, or better yet; dead.`,
- options: {
- '2-1.1': {
- msg: `I'd like to ask something else`,
- goto: 2
- }
- }
- },
- '2-2': {
- msg: `It's on the south-west part of the island. Just don't let your tongue slip about my location.`,
- options: {
- '2-2.1': {
- msg: `I'd like to ask something else`,
- goto: 2
- }
- }
- },
- '3': {
- msg: `You mean you don't know where you are? Where are you from?`,
- options: {
- '3.1': {
- msg: `I don't know. The developer hasn't written me a backstory yet.`,
- goto: '3-1'
- },
- '3.2': {
- msg: `I'd like to ask something else`,
- goto: 2
- }
- }
- },
- '3-1': {
- msg: `Typical...`,
- options: {
- '3-1.1': {
- msg: `I'd like to ask something else`,
- goto: 1
- }
- }
- },
- '4': {
- msg: `There you go!`,
- options: {
-
- }
- },
- '5': {
- msg: `You already have that!`,
- options: {
-
- }
- },
- tradeBuy: {
- cpn: 'trade',
- method: 'startBuy',
- args: [{
- targetName: 'hermit'
- }]
- },
- tradeSell: {
- cpn: 'trade',
- method: 'startSell',
- args: [{
- targetName: 'hermit'
- }]
- },
- tradeBuyback: {
- cpn: 'trade',
- method: 'startBuyback',
- args: [{
- targetName: 'hermit'
- }]
- },
- portalCity: {
- cpn: 'dialogue',
- method: 'teleport',
- args: [{
- toZone: 'city',
- toPos: {
- x: 136,
- y: 216
- }
- }]
- },
- getItem: {
- cpn: 'dialogue',
- method: 'getItem',
- args: [{
- item: {
- name: 'fancy feather',
- quest: true,
- sprite: [0, 0]
- }
- }],
- goto: {
- success: 4,
- failure: 5
- }
- }
- }
- };
|