{
	components: [
		{
			code: "testhasmet",
			owner: "agnieszka",
			type: "condition",
			variable: "player.hasmetagnieszka",
			isNotValue: "true",
			thenJumpTo: "firstmeet",
			elseJumpTo: "welcomeback"
		},
		{
			code: "firstmeet",
			owner: "agnieszka",
			type: "talk",
			setVariables: { "player.hasmetagnieszka": "true" },
			text: [
				{ value: "dialogue-agnieszka-youlooklike" , condition: { variable: "player.characterclass", isValue: "blackguard" } },
				{ value: "dialogue-agnieszka-whatcani", condition: { variable: "player.characterclass", isNotValue: "blackguard" } }
			],
		},
		{
			code: "main",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-name", jumpTo: "name" },
				{ value: "dialogue-profession", jumpTo: "profession" },
				{ value: "dialogue-agnieszka-canyourepair", jumpTo: "repair", condition: { variable: "player.agnieszkaquestcompleted", isNotValue: "true" } },
				{ value: "dialogue-agnieszka-canyourepair", jumpTo: "repairdiscount", condition: { variable: "player.agnieszkaquestcompleted", isValue: "true" } },
				{ value: "dialogue-location", jumpTo: "location" },
				{ value: "dialogue-trade", jumpTo: "trade" },
				{ value: "dialogue-work", jumpTo: "work", conditions: [{ variable: "player.agnieszkaqueststarted", isNotValue: "true" }, { variable: "player.agnieszkaquestcompleted", isNotValue: "true" }] },
				{ value: "dialogue-workreminder", jumpTo: "workrepeat", conditions: [{ variable: "player.agnieszkaqueststarted", isValue: "true" }, { variable: "player.agnieszkaquestcompleted", isNotValue: "true" }] },
				{ value: "dialogue-agnieszka-gotingots", jumpTo: "workaccept", conditions: [{ variable: "player.agnieszkaqueststarted", isValue: "true" }, { variable: "player.agnieszkaquestcompleted", isNotValue: "true" }, { variable: "player.inventory", isValue: "{type: 'item', code: 'ingot-iron', stacksize: 8}"}] },
				{ value: "dialogue-agnieszka-ifoundaletter", jumpTo: "letter", condition: { variable: "player.inventory", isValue: "{type: 'item', code: 'letter-faded', stacksize: 1}" } },
				{ value: "dialogue-agnieszka-whoistheoldman", jumpTo: "oldman", condition: { variable: "player.sawletteragnieszka", isValue: "true" } },
				{ value: "dialogue-agnieszka-canihavethemap", jumpTo: "map", conditions: [{ variable: "player.sawletteragnieszka", isValue: "true" }, { variable: "player.gavemapagnieszka", isNotValue: "true" }] },
				{ value: "dialogue-agnieszka-whatdoyoumean", jumpTo: "whymap", condition: { variable: "player.sawletteragnieszka", isValue: "true" } },
				{ value: "dialogue-agnieszka-thismapmentions", jumpTo: "devastation", condition: { variable: "player.readnote", isValue: "true" } },
				{ value: "dialogue-agnieszka-ilostthemap", jumpTo: "maprepeat", conditions: [{ variable: "player.gavemapagnieszka", isValue: "true" }, { variable: "player.inventory", isNotValue: "{type: 'item', code: 'locatormap-cavetobias', stacksize: 1}" }] },
			],
		},
		{
			code: "welcomeback",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-backformore" }
			],
			jumpTo: "main"
		},
		{
			code: "name",
			owner: "agnieszka",
			type: "talk",
			trigger: "revealname",
			text: [
				{ value: "dialogue-agnieszka-agnieszka"	}
			],
			jumpTo: "main"
		},
		{
			code: "profession",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-mostlywhatido"	}
			],
			jumpTo: "main"
		},
		{
			code: "repair",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-putatool" }
			],
			jumpTo: "repairchoice"
		},
		{
			code: "repairchoice",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-repairmytool", jumpTo: "testrepairtool", condition: { variable: "player.inventory", isValue: "{type: 'item', code: 'gear-rusty', stacksize: 5}" }	},
				{ value: "dialogue-agnieszka-repairmyarmor", jumpTo: "testrepairarmor", condition: { variable: "player.inventory", isValue: "{type: 'item', code: 'gear-rusty', stacksize: 10}" }	},
				{ value: "dialogue-agnieszka-cantafford", jumpTo: "repairreturn" },
			],
		},
		{
			code: "repairreturn",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-suityourself"	}
			],
			jumpTo: "main"
		},
		{
			code: "testrepairtool",
			owner: "agnieszka",
			type: "condition",
			variable: "player.heldstack",
			isValue: "damagedtool",
			thenJumpTo: "takegearstool",
			elseJumpTo: "norepair"
		},
		{
			code: "testrepairarmor",
			owner: "agnieszka",
			type: "condition",
			variable: "player.heldstack",
			isValue: "damagedarmor",
			thenJumpTo: "takegearsarmor",
			elseJumpTo: "norepair"
		},
		{
			code: "norepair",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-nothingtorepair"	},
			],
			jumpTo: "main"
		},
		{
			code: "takegearstool",
			owner: "agnieszka",
			type: "talk",
			trigger: "takefrominventory",
			triggerdata: {type: 'item', code: 'gear-rusty', quantity: 5 },
			text: [
				{ value: "dialogue-agnieszka-alright"	},
			],
			jumpTo: "dorepairtool"
		},
		{
			code: "takegearsarmor",
			owner: "agnieszka",
			type: "talk",
			trigger: "takefrominventory",
			triggerdata: {type: 'item', code: 'gear-rusty', quantity: 10 },
			text: [
				{ value: "dialogue-agnieszka-alright"	},
			],
			jumpTo: "dorepairarmor"
		},		
		{
			code: "dorepairtool",
			owner: "agnieszka",
			type: "talk",
			trigger: "repairheldtool",
			triggerData: { amount: 400 },
			text: [
				{ value: "dialogue-agnieszka-comebyagain"	},
			],
			jumpTo: "main"
		},
		{
			code: "dorepairarmor",
			owner: "agnieszka",
			type: "talk",
			trigger: "repairheldarmor",
			triggerData: { amount: 200 },
			text: [
				{ value: "dialogue-agnieszka-comebyagain"	},
			],
			jumpTo: "main"
		},
        {
			code: "repairdiscount",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-putatooldiscount" }
			],
			jumpTo: "repairchoicediscount"
		},
		{
			code: "repairchoicediscount",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-repairmytooldiscount", jumpTo: "testrepairtooldiscount", condition: { variable: "player.inventory", isValue: "{type: 'item', code: 'gear-rusty', stacksize: 4}" }	},
				{ value: "dialogue-agnieszka-repairmyarmordiscount", jumpTo: "testrepairarmordiscount", condition: { variable: "player.inventory", isValue: "{type: 'item', code: 'gear-rusty', stacksize: 8}" }	},
				{ value: "dialogue-agnieszka-cantafford", jumpTo: "repairreturn" },
			],
		},
		{
			code: "repairreturndiscount",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-suityourself"	}
			],
			jumpTo: "main"
		},
		{
			code: "testrepairtooldiscount",
			owner: "agnieszka",
			type: "condition",
			variable: "player.heldstack",
			isValue: "damagedtool",
			thenJumpTo: "takegearstooldiscount",
			elseJumpTo: "norepair"
		},
		{
			code: "testrepairarmordiscount",
			owner: "agnieszka",
			type: "condition",
			variable: "player.heldstack",
			isValue: "damagedarmor",
			thenJumpTo: "takegearsarmordiscount",
			elseJumpTo: "norepair"
		},
		{
			code: "takegearstooldiscount",
			owner: "agnieszka",
			type: "talk",
			trigger: "takefrominventory",
			triggerdata: {type: 'item', code: 'gear-rusty', quantity: 4 },
			text: [
				{ value: "dialogue-agnieszka-alright"	},
			],
			jumpTo: "dorepairtool"
		},
		{
			code: "takegearsarmordiscount",
			owner: "agnieszka",
			type: "talk",
			trigger: "takefrominventory",
			triggerdata: {type: 'item', code: 'gear-rusty', quantity: 8 },
			text: [
				{ value: "dialogue-agnieszka-alright"	},
			],
			jumpTo: "dorepairarmor"
		},
		{
			code: "location",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-thisisnadiya"	}
			],
			jumpTo: "main"
		},
		{
			code: "trade",
			owner: "agnieszka",
			trigger: "opentrade"
		},
		{
			code: "letter",
			owner: "agnieszka",
			type: "talk",
			setVariables: { "player.sawletteragnieszka": "true" },
			text: [
				{ value: "dialogue-agnieszka-ahiknow"	}
			],
			jumpTo: "main"
		},
		{
			code: "oldman",
			owner: "agnieszka",
			type: "talk",
			setVariables: { "player.heardoftobias": "true" },
			text: [
				{ value: "dialogue-agnieszka-theoldman"	}
			],
			jumpTo: "main"
		},
		{
			code: "map",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-takeit"	}
			],
			jumpTo: "mapcontinue"
		},
		{
			code: "maprepeat",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-youlostit"	}
			],
			jumpTo: "maprepeatcontinue"
		},
		{
			code: "maprepeatcontinue",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-yes", jumpTo: "maprepeat2"	}
			],
		},
		{
			code: "maprepeat2",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-unbelievable"	}
			],
			jumpTo: "mapcontinue"
		},
		{
			code: "mapcontinue",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-takethemap", jumpTo: "mapnote"	}
			],
		},
		{
			code: "mapnote",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-writingonmap"	}
			],
			trigger: "giveitemstack",
			triggerdata: { type: "item", code: "locatormap-cavetobias", stacksize: 1 },
			setVariables: { "player.gavemapagnieszka": "true", "player.readnote": "true" },
			jumpTo: "mapnotecontinue"
		},
		{
			code: "mapnotecontinue",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-continue", jumpTo: "mapnote2"	}
			],
		},
		{
			code: "mapnote2",
			owner: "agnieszka",
			type: "talk",
			setVariables: { "player.readnote": "true" },
			text: [
				{ value: "dialogue-agnieszka-beforeyoucome"	}
			],
			jumpTo: "main"
		},
		{
			code: "whymap",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-myfamilywas"	}
			],
			jumpTo: "main"
		},
		{
			code: "devastation",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-youcanreadthat"	}
			],
			jumpTo: "devastationquestion"
		},
		{
			code: "devastationquestion",
			owner: "player",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-howcanifind", jumpTo: "devastation2"	}
			],
		},
		{
			code: "devastation2",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-iwouldntknow"	}
			],
			jumpTo: "main"
		},
        {
			code: "work",
			owner: "agnieszka",
			type: "talk",
            setVariables: { "player.agnieszkaqueststarted": "true" },
			text: [
				{ value: "dialogue-agnieszka-lostdelivery"	}
			],
			jumpTo: "main"
		},
        {
			code: "workrepeat",
			owner: "agnieszka",
			type: "talk",
			text: [
				{ value: "dialogue-agnieszka-justbring"	}
			],
			jumpTo: "main"
		},
        {
			code: "workaccept",
			owner: "agnieszka",
			type: "talk",
			trigger: "takefrominventory",
			triggerdata: {type: 'item', code: 'ingot-iron', quantity: 8 },
			text: [
				{ value: "dialogue-agnieszka-prettyreliable"	},
			],
			jumpTo: "workcomplete"
		},
        {
			code: "workcomplete",
			owner: "agnieszka",
			type: "talk",
            setVariables: { "player.agnieszkaquestcompleted": "true" },
            trigger: "giveitemstack",
			triggerdata: { type: "item", code: "gear-rusty", stacksize: 32 },
			text: [
				{ value: "dialogue-agnieszka-myusualrate"	}
			],
			jumpTo: "main"
		},
	]
}
