{
	components: [

		{
			code: "testhasmet",
			owner: "sedna",
			type: "condition",
			variable: "player.hasmetsedna",
			isNotValue: "true",
			thenJumpTo: "firstmeet",
			elseJumpTo: "welcomeback"
		},
		{
			code: "firstmeet",
			owner: "sedna",
			type: "talk",
			setVariables: { "player.hasmetsedna": "true" },
			text: [
				{ value: "dialogue-sedna-commoner", condition: { variable: "player.characterclass", isValue: "commoner" } },
				{ value: "dialogue-sedna-hunter", condition: { variable: "player.characterclass", isValue: "hunter" } },
				{ value: "dialogue-sedna-malefactor", condition: { variable: "player.characterclass", isValue: "malefactor" } },
				{ value: "dialogue-sedna-clockmaker", condition: { variable: "player.characterclass", isValue: "clockmaker" } },
				{ value: "dialogue-sedna-blackguard", condition: { variable: "player.characterclass", isValue: "blackguard" } },
				{ value: "dialogue-sedna-tailor", condition: { variable: "player.characterclass", isValue: "tailor" } },
				{ value: "dialogue-sedna-unknownclass", conditions: [{ variable: "player.characterclass", isNotValue: "tailor" }, { variable: "player.characterclass", isNotValue: "malefactor" }, { variable: "player.characterclass", isNotValue: "blackguard" }, { variable: "player.characterclass", isNotValue: "hunter" }, { variable: "player.characterclass", isNotValue: "commoner" }, { variable: "player.characterclass", isNotValue: "clockmaker" }]},
			],
		},
		{
			code: "main",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-name", jumpTo: "name" },
				{ value: "dialogue-profession", jumpTo: "profession" },
				{ value: "dialogue-location", jumpTo: "location" },
				{ value: "dialogue-sedna-anythingtosell", jumpTo: "trade" },
				{ value: "dialogue-sedna-whatdoyoubuy", jumpTo: "whatbuy", condition: { variable: "player.triedsellsedna", isValue: "true" } },
				{ value: "dialogue-sedna-ihavestories", jumpTo: "stories", condition: { variable: "player.triedbuysedna", isValue: "true" } },
				{ value: "dialogue-sedna-letter", jumpTo: "letter", condition: { variable: "player.inventory", isValue: "{type: 'item', code: 'letter-faded', stacksize: 1}" } },
				{ value: "dialogue-sedna-tobias", jumpTo: "tobias", condition: { variable: "player.heardoftobias", isValue: "true" } },
			],
		},
		{
			code: "welcomeback",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-anystories" }
			],
			jumpTo: "main"
		},
		{
			code: "name",
			owner: "sedna",
			type: "talk",
			trigger: "revealname",
			text: [
				{ value: "dialogue-sedna-sedna"	}
			],
			jumpTo: "main"
		},
		{
			code: "profession",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-obvious"	}
			],
			jumpTo: "main"
		},
		{
			code: "location",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-nadiya"	}
			],
			jumpTo: "main"
		},
		{
			code: "trade",
			owner: "sedna",
			type: "talk",
			setVariables: { "player.triedsellsedna": "true" },
			text: [
				{ value: "dialogue-sedna-accuseme"	}
			],
			jumpTo: "main"
		},
		{
			code: "whatbuy",
			owner: "sedna",
			type: "talk",
			setVariables: { "player.triedbuysedna": "true" },
			text: [
				{ value: "dialogue-sedna-books"	}
			],
			jumpTo: "main"
		},
		{
			code: "letter",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-seenbefore"	}
			],
		},
		{
			code: "heardtell",
			owner: "sedna",
			type: "talk",
			setVariables: { "player.heardoftobias": "true" },
			text: [
				{ value: "dialogue-sedna-connected"	}
			],
			jumpTo: "main"
		},
		{
			code: "stories",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-pullupachair"	}
			],
			jumpTo: "storylist"
		},
		{
			code: "storylist",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-archives", jumpTo: "archives", conditions: [{ variable: "player.heardalchemistlocations", isValue: "true" }, { variable: "player.heardarchivessedna", isNotValue: "true" }]},
				//{ value: "I have stood at the top of the ruined tower and faced the Mad Crow in battle.", jumpTo: "main"	},
				//{ value: "I've met Saint Tobias himself.", jumpTo: "main"	},
				//{ value: "I have some writings you might like.", jumpTo: "main"	},
				{ value: "dialogue-sedna-allivegot", jumpTo: "storiesreturn"	},
			],
		},
		{
			code: "storiesreturn",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-verywell"	}
			],
			jumpTo: "main"
		},
		{
			code: "archives",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-archiveswhat"	}
			],
			jumpTo: "archivesdesc"
		},
		{
			code: "archivesdesc",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-massiveunderground", jumpTo: "archives2", },
				{ value: "dialogue-sedna-hauntinglybeautiful", jumpTo: "archives2", },
				{ value: "dialogue-sedna-bastionofknowledge", jumpTo: "archives2", },
			],
		},
		{
			code: "archives2",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-storyneedsaction"	}
			],
			jumpTo: "archivesdesc2"
		},
		{
			code: "archivesdesc2",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-metalgiant", jumpTo: "archivesduel", },
				{ value: "dialogue-sedna-lootedtheplace", jumpTo: "archivesheist", },
				{ value: "dialogue-sedna-despitethedanger", jumpTo: "archivesread", },
			],
		},
		{
			code: "archivesduel",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-howdashing"	}
			],
			jumpTo: "archivescontinue"
		},
		{
			code: "archivesheist",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-thrillingheist"	}
			],
			jumpTo: "archivescontinue"
		},
		{
			code: "archivesread",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-subtlerapproach"	}
			],
			jumpTo: "archivescontinue"
		},
		{
			code: "archivescontinue",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-continue", jumpTo: "archives3", }
			],
		},
		{
			code: "archives3",
			owner: "sedna",
			type: "talk",
			trigger: "giveitemstack",
			triggerdata: { type: "item", code: "gear-rusty", stacksize: 2 },
			setVariables: { "player.heardarchivessedna": "true" },
			text: [
				{ value: "dialogue-sedna-fascinatingtale"	}
			],
			jumpTo: "storylist"
		},
		{
			code: "tobias",
			owner: "sedna",
			type: "talk",
			text: [
				{ value: "dialogue-sedna-wiseman"	}
			],
			jumpTo: "main"
		},
	]
}
