<?xml version="1.0" encoding="UTF-8"?>
<root>
<quest name="Meet Bernice" type="normal">
	<function name="requires">
		<cmd cmd="reputation">
			<param name="reputation" value="0"></param>
		</cmd>
	</function>

	<function name="begin">	
		<cmd cmd="showtutorial">
			<param name="name" value="Tutorial1"></param>
		</cmd>
		
		<cmd cmd="showstory">
			<param name="story" value="act1_intro"></param>
		</cmd>
		
		<cmd cmd="texticonquest">
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q01_ICONTEXT01"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="zoehome"></param>
			<param name="visible" value="true"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="zoe_door"></param>
			<param name="dialog" value="Meet_Bernice_intro"></param>
			<param name="onok" value="step1done"></param>
		</cmd>
		
		<cmd cmd="setbonuses">
			<param name="town" value="le"></param>
			<param name="bonuses" value="5"></param>
			<param name="set" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetstate">
			<param name="building" value="flowers"></param>
			<param name="people" value="1"></param>
			<param name="building" value="basketball"></param>
			<param name="people" value="1"></param>
			<param name="building" value="mobile"></param>
			<param name="people" value="1"></param>
			<param name="building" value="petshop"></param>
			<param name="people" value="1"></param>
			<param name="building" value="workshop"></param>
			<param name="people" value="1"></param>
			<param name="building" value="jessica"></param>
			<param name="people" value="1"></param>
		</cmd>
	</function>

	<function name="step1done">
		<cmd cmd="texticonquest">
			<param name="building" value="petshop" />
			<param name="setarrow" value="petshopcharglobe" />
			<param name="clearall" value="1"></param>
			<param name="seticon" value="bernicequestbar"></param>
			<param name="settext" value="Q01_ICONTEXT02"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="dialog" value="Meet_Bernice_unfin"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="petshop"></param>
			<param name="visible" value="true"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="zoe_door"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="petshop"></param>
			<param name="dialog" value="Meet_Bernice_step01"></param>
			<param name="oncomplete" value="step2done"></param>
		</cmd>
	</function>

	<function name="step2done">
		<cmd cmd="texticonquest">
			<param name="building" value="zoehome" />
			<param name="setarrow" value="bernicecharglobe" />
			<param name="clearall" value="1"></param>
			<param name="seticon" value="bernicequestbar"></param>
			<param name="settext" value="Q01_ICONTEXT03"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="petshop"></param>
			<param name="dialog" value="Meet_Bernice_unnpc"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="dialog" value="Meet_Bernice_outcome"></param>
			<param name="oncomplete" value="step3done"></param>
		</cmd>
	</function>

	<function name="step3done">

		<cmd cmd="addreputation">
			<param name="value" value="10"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="petshop"></param>
			<param name="dialog" value="idle_petshop01"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="firequest">
			<param name="quest" value="Rent a store"></param>
		</cmd>
		
		<cmd cmd="questcompleted"></cmd>
	</function>
</quest>

<quest name="Rent a store">
	<function name="requires">
		<cmd cmd="reputation">
			<param name="reputation" value="0"></param>
		</cmd>
	</function>

	<function name="begin">
		<cmd cmd="texticonquest">
			<param name="building" value="firststore_commercial" />
			<param name="setarrow" value="horacecharglobe"></param>
			<param name="seticon" value="horacequestbar"></param>
			<param name="settext" value="Q02_ICONTEXT01"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="dialog" value="Rent_a_store_prev"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="firststore_commercial"></param>
			<param name="visible" value="true"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="dialog" value="Rent_a_store_intro"></param>
			<param name="oncomplete" value="step1done"></param>
		</cmd>
		
		<cmd cmd="setbonuses">
			<param name="town" value="le"></param>
			<param name="bonuses" value="5"></param>
			<param name="set" value="1"></param>
		</cmd>
	</function>

	<function name="step1done">
		<cmd cmd="texticonquest">
			<param name="building" value="jessica" />
			<param name="setarrow" value="jessicacharglobe"></param>
			<param name="clearall" value="1"></param>
			<param name="seticon" value="horacequestbar"></param>
			<param name="settext" value="Q02_ICONTEXT06"></param>
			<param name="seticon" value="jessicaquestbar"></param>
			<param name="settext" value="Q02_ICONTEXT02"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="dialog" value="Rent_a_store_unfin"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="jessica"></param>
			<param name="visible" value="true"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="jessica"></param>
			<param name="dialog" value="Rent_a_store_step01"></param>
			<param name="onok" value="step2done"></param>
		</cmd>
	</function>

	<function name="step2done">
		<cmd cmd="texticonquest">
			<param name="building" value="" />
			<param name="setarrow" value=""></param>
			<param name="clearall" value="1"></param>
			<param name="seticon" value="horacequestbar"></param>
			<param name="settext" value="Q02_ICONTEXT06"></param>
			<param name="seticon" value="jessicaquestbar"></param>
			<param name="settext" value="Q02_ICONTEXT03"></param>
		</cmd>
		
		<cmd cmd="showtutorial">
			<param name="name" value="Tutorial4"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="jessica"></param>
			<param name="dialog" value="Rent_a_store_st01_unnpc"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="dialog" value="Rent_a_store_step02"></param>
			<param name="oncomplete" value="step3done"></param>
		</cmd>
	</function>

	<function name="step3done">
		<cmd cmd="texticonquest">
			<param name="clearall" value="1"></param>
			<param name="seticon" value="horacequestbar"></param>
			<param name="settext" value="Q02_ICONTEXT06"></param>
			<param name="seticon" value="jessicaquestbar"></param>
			<param name="settext" value="Q02_ICONTEXT04"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="dialog" value="Rent_a_store_st02_unnpc"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="jessica"></param>
			<param name="dialog" value="Rent_a_store_step03"></param>
			<param name="oncomplete" value="step4done"></param>
		</cmd>
	</function>
	
	<function name="step4done">
		<cmd cmd="texticonquest">
			<param name="clearall" value="1"></param>	
			<param name="seticon" value="horacequestbar"></param>
			<param name="settext" value="Q02_ICONTEXT05"></param>
		</cmd>
		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="jessica"></param>
			<param name="dialog" value="Rent_a_store_st03_unnpc"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="dialog" value="Rent_a_store_outcome"></param>
			<param name="oncomplete" value="step5done"></param>
		</cmd>
	</function>
	
	<function name="step5done">
		<cmd cmd="buildingsetdialog">
			<param name="building" value="jessica"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="building" value="bernice_door"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="building" value="firststore_commercial"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="firststore_commercial"></param>
			<param name="visible" value="true"></param>
			<param name="tooltip" value="IDS_MINIMAP_LE_STORE2"></param>
		</cmd>
		
		<cmd cmd="addreputation">
			<param name="value" value="10"></param>
		</cmd>
		
		<cmd cmd="firequest">
			<param name="quest" value="Fixing store"></param>
		</cmd>
		
		<cmd cmd="questcompleted"></cmd>
	</function>
</quest>

<quest name="Fixing store">
	<function name="requires">
		<cmd cmd="reputation">
			<param name="reputation" value="0"></param>
		</cmd>
	</function>

	<function name="begin">
		<cmd cmd="texticonquest">
			<param name="building" value="workshop" />
			<param name="setarrow" value="joecharglobe"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT01"></param>
		</cmd>
		
		<cmd cmd="buildingsetstate">
			<param name="building" value="firststore_commercial"></param>
			<param name="state" value="normal"></param>
			<param name="newstate" value="rented"></param>
			<param name="interactivity" value="1"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="workshop"></param>
			<param name="visible" value="true"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="dialog" value="Fixing_store_prev"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="workshop"></param>
			<param name="dialog" value="Fixing_store_intro"></param>
			<param name="onok" value="step1done"></param>
		</cmd>
		
		<cmd cmd="setbonuses">
			<param name="town" value="le"></param>
			<param name="bonuses" value="5"></param>
			<param name="set" value="1"></param>
		</cmd>
	</function>
	
	<function name="step1done">
		<cmd cmd="texticonquest">
			<param name="building" value="" />
			<param name="setarrow" value=""></param>
			<param name="clearall" value="1"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT06"></param>
			<param name="seticon" value="joequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT02"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="workshop"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="dialog" value="Fixing_store_unfin"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="petshop"></param>
			<param name="dialog" value="Fixing_store_step01"></param>
			<param name="oncomplete" value="step2done"></param>
		</cmd>
	</function>
	
	<function name="step2done">
		<cmd cmd="texticonquest">
			<param name="building" value="flowers" />
			<param name="setarrow" value="rosecharglobe"></param>
			<param name="clearall" value="1"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT06"></param>
			<param name="seticon" value="joequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT03"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="petshop"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="dialog" value="Fixing_store_st01_unnpc"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="flowers"></param>
			<param name="visible" value="true"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="workshop"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="flowers"></param>
			<param name="dialog" value="Fixing_store_step02"></param>
			<param name="oncomplete" value="step3done"></param>
		</cmd>
	</function>
	
	<function name="step3done">
		<cmd cmd="texticonquest">
			<param name="building" value="mobile" />
			<param name="setarrow" value="elicharglobe"></param>
			<param name="clearall" value="1"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT06"></param>
			<param name="seticon" value="joequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT07"></param>
			<param name="seticon" value="elizabethquestbar"></param>
			<param name="settext" value="Q04_ICONTEXT08"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="flowers"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="dialog" value="Fixing_store_st02_unnpc"></param>
		</cmd>
		
		<cmd cmd="mmbuildingsetstate">
			<param name="town" value="le"></param>
			<param name="building" value="mobile"></param>
			<param name="visible" value="true"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="petshop"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="dialog" value="idle_petshop01"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="mobile"></param>
			<param name="dialog" value="wary_elizabeth_intro"></param>
			<param name="oncomplete" value="step4done"></param>
		</cmd>
	</function>
		
	<function name="step4done">
		<cmd cmd="texticonquest">
			<param name="building" value="" />
			<param name="setarrow" value=""></param>
			<param name="clearall" value="1"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT06"></param>
			<param name="seticon" value="joequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT04"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="mobile"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="flowers"></param>
			<param name="dialog" value="Fixing_store_step03"></param>
			<param name="oncomplete" value="step5done"></param>
		</cmd>
	</function>
		
	<function name="step5done">
		<cmd cmd="texticonquest">
			<param name="building" value="" />
			<param name="setarrow" value=""></param>
			<param name="clearall" value="1"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q04_ICONTEXT05"></param>
		</cmd>
		<cmd cmd="buildingsetdialog">
			<param name="building" value="workshop"></param>
			<param name="dialog" value="Fixing_store_outcome"></param>
			<param name="oncomplete" value="step6done"></param>
		</cmd>
	</function>
		
	<function name="step6done">
		<cmd cmd="texticonquest">
			<param name="clearall" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="flowers"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="building" value="workshop"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="building" value="firststore_commercial"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetstate">
			<param name="building" value="firststore_commercial"></param>
			<param name="state" value="normal"></param>
			<param name="newstate" value="open"></param>
			<param name="interactivity" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="dialog" value="the_inauguration_intro"></param>
			<param name="oncomplete" value="step7done"></param>
		</cmd>
		
		<cmd cmd="showstory">
			<param name="story" value="act1_story03"></param>
		</cmd>
		
		<cmd cmd="setbonuses">
			<param name="town" value="le"></param>
			<param name="bonuses" value="5"></param>
			<param name="set" value="1"></param>
		</cmd>
	</function>
	
	<function name="step7done">
		<cmd cmd="buildingsetdialog">
			<param name="building" value="flowers"></param>
			<param name="cleardialogs" value="1"></param>
			<param name="building" value="workshop"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetstate">
			<param name="building" value="firststore_commercial"></param>
			<param name="state" value="normal"></param>
			<param name="newstate" value="open"></param>
			<param name="interactivity" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="addreputation">
			<param name="value" value="10"></param>
		</cmd>
		
		<cmd cmd="firequest">
			<param name="quest" value="The inauguration"></param>
		</cmd>
		
		<cmd cmd="questcompleted"></cmd>
	</function>
</quest>

<quest name="The inauguration">
	<function name="requires">
		<cmd cmd="reputation">
			<param name="reputation" value="0"></param>
		</cmd>
	</function>
	
	<function name="begin">
		<cmd cmd="texticonquest">
			<param name="clearall" value="1"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q07_ICONTEXT06"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="flowers"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="horacehouse"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>

		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="dialog" value="the_inauguration_outcome"></param>
			<param name="oncomplete" value="step1done"></param>
		</cmd>
	</function>
	
	<function name="step1done">
		<cmd cmd="texticonquest">
			<param name="building" value="firststore_commercial" />
			<param name="setarrow" value="storerglobe" />
			<param name="clearall" value="1"></param>
			<param name="seticon" value="zoequestbar"></param>
			<param name="settext" value="Q07_ICONTEXT07"></param>
		</cmd>
		
		<cmd cmd="buildingsetstate">
			<param name="building" value="firststore_commercial"></param>
			<param name="state" value="normal"></param>
			<param name="newstate" value="open"></param>
			<param name="interactivity" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="dialog" value="the_inauguration_outcome2"></param>
			<param name="oncomplete" value="step2done"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="bernice_door"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="flowers"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
	</function>
	
	<function name="step2done">
		<cmd cmd="texticonquest">
			<param name="building" value="" />
			<param name="setarrow" value="" />
			<param name="clearall" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetdialog">
			<param name="building" value="firststore_commercial"></param>
			<param name="cleardialogs" value="1"></param>
		</cmd>
		
		<cmd cmd="buildingsetstate">
			<param name="building" value="firststore_commercial"></param>
			<param name="interactivity" value="2"></param>
		</cmd>
		
		<cmd cmd="addreputation">
			<param name="value" value="30"></param>
		</cmd>
		
		<cmd cmd="setzoecloth">
			<param name="cloth" value="zoe_act2_base"></param>
		</cmd>
		
		<cmd cmd="questcompleted"></cmd>
	</function>
	
</quest>

</root>
