{
	components: [
		{
			code: "testhasmet",
			owner: "gerhardt",
			type: "condition",
			variable: "player.hasmetgerhardt",
			isNotValue: "true",
			thenJumpTo: "firstmeet",
			elseJumpTo: "welcomeback"
		},
		{
			code: "firstmeet",
			owner: "gerhardt",
			type: "talk",
			setVariables: { "player.hasmetgerhardt": "true" },
			text: [
				{ value: "dialogue-gerhardt-nothing", condition: { variable: "player.characterclass", isNotValue: "hunter" } },
				{ value: "dialogue-gerhardt-keeneyes" , condition: { variable: "player.characterclass", isValue: "hunter" } }
			],
		},
		{
			code: "main",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-name", jumpTo: "name" },
				{ value: "dialogue-profession", jumpTo: "profession" },
				{ value: "dialogue-location", jumpTo: "location" },
				{ value: "dialogue-trade", jumpTo: "trade" },
				{ value: "dialogue-gerhardt-letter", jumpTo: "letter", condition: { variable: "player.inventory", isValue: "{type: 'item', code: 'letter-faded', stacksize: 1}" } },
				{ value: "dialogue-gerhardt-devastation", jumpTo: "deadland", condition: { variable: "player.readnote", isValue: "true" } },
				{ value: "dialogue-gerhardt-ilostthemap", jumpTo: "maprepeat", conditions: [{ variable: "player.gavemapgerhardt", isValue: "true" }, { variable: "player.inventory", isNotValue: "{type: 'item', code: 'locatormap-devastationarea', stacksize: 1}" }] },
			],
		},
		{
			code: "welcomeback",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-mayyourarrows" }
			],
			jumpTo: "main"
		},
		{
			code: "name",
			owner: "gerhardt",
			type: "talk",
			trigger: "revealname",
			text: [
				{ value: "dialogue-gerhardt-gerhardt"	}
			],
			jumpTo: "main"
		},
		{
			code: "profession",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-ihunt"	}
			],
			jumpTo: "main"
		},
		{
			code: "location",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-nadiya"	}
			],
			jumpTo: "main"
		},
		{
			code: "trade",
			owner: "gerhardt",
			trigger: "opentrade"
		},
		{
			code: "letter",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-hermit"	}
			],
			jumpTo: "whytobias"
		},
		{
			code: "whytobias",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-whycallhim", jumpTo: "thetobias"	},
				{ value: "dialogue-gerhardt-howtofindhim", jumpTo: "tobiasfind"	}
			],
		},
		{
			code: "thetobias",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-madman"	}
			],
			jumpTo: "whytobias"
		},
		{
			code: "tobiasfind",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-sorceror"	}
			],
			jumpTo: "main"
		},
		{
			code: "deadland",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-deadland"	}
			],
			jumpTo: "howtogetthere"
		},
		{
			code: "howtogetthere",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-howtogetthere", jumpTo: "death", condition: { variable: "player.gavemapgerhardt", isNotValue: "true" }	},
				{ value: "dialogue-gerhardt-howtogetthere", jumpTo: "alreadydid", condition: { variable: "player.gavemapgerhardt", isValue: "true" }	},
			],
		},
		{
			code: "alreadydid",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-alreadydid"	}
			],
			jumpTo: "main"
		},
		{
			code: "death",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-willnottell"	}
			],
		},
		{
			code: "noworry",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-noneedtoworry", jumpTo: "stubborn"	}
			],
		},
		{
			code: "stubborn",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-yourkindarestubborn"	}
			],
			jumpTo: "continuestubborn"
		},
		{
			code: "continuestubborn",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-continue", jumpTo: "stubborn2"	}
			],
		},
		{
			code: "stubborn2",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-takethis"	}
			],
			trigger: "giveitemstack",
			triggerdata: { type: "item", code: "locatormap-devastationarea", stacksize: 1 },
			setVariables: { "player.gavemapgerhardt": "true" },
			jumpTo: "main"
		},
		{
			code: "maprepeat",
			owner: "gerhardt",
			type: "talk",
			text: [
				{ value: "dialogue-gerhardt-afterbadgering"	}
			],
			trigger: "giveitemstack",
			triggerdata: { type: "item", code: "locatormap-devastationarea", stacksize: 1 },
			setVariables: { "player.gavemapgerhardt": "true" },
			jumpTo: "main"
		},
	]
}
