<?xml version="1.0" encoding="utf-8"?>
<eventSystem xmlns="iqsoftwaregames">

	
	
	<!--Denmark attacked by Germany-->
	<event eventID="1001" countryID="10" visibleByPlayer="1" oneTimeChecking="0"> 
		<title>ZID_1001_title</title>
		<description>ZID_1001_desc</description>
	<condition>
		<and>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="10"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Option 1 in event 202 - events_02_germany.xml-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="202"/>
			<operator value="equals" />
			<rightOperand constValue="1" />
			</expression>
	    <!--Flag not fired yet-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="1001"/>
			<operator value="equals" />
			<rightOperand constValue="0" />
			</expression>
		</and>
		</condition>
		<options>
		<option optionID="1" chanceAI="99">
			<description>ZID_1001_op1</description>
			<tooltip>ZID_1001_desc1</tooltip>
			<effects>
				<!--Territorial changes-->
				<effect method="HexStripe.ChangeControllerAndOwner" param0="111" param1="62" param2="4" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="112" param1="61" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="112" param1="63" param2="4" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="113" param1="61" param2="10" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="114" param1="60" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="114" param1="62" param2="9" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="115" param1="59" param2="12" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="116" param1="57" param2="10" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="116" param1="70" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="117" param1="57" param2="10" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="117" param1="68" param2="2" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="118" param1="60" param2="4" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="118" param1="68" param2="2" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="119" param1="59" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="119" param1="61" param2="3" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="119" param1="66" param2="2" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="120" param1="66" param2="4" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="120" param1="71" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="121" param1="65" param2="5" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="121" param1="72" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="122" param1="64" param2="6" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="122" param1="71" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="123" param1="66" param2="2" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="123" param1="69" param2="1" param3="2" />
				<effect method="HexStripe.ChangeControllerAndOwner" param0="123" param1="71" param2="1" param3="2" />
          		<!--Killing all land units of Denmark-->
          		<effect method="Country.KillAllLandUnits" param0="10"/>
          		<!--Killing all air units of Denmark-->
          		<effect method="Country.KillAllAirUnits" param0="10"/>
          		<!--Killing all reserve units of Denmark-->
          		<effect method="Country.KillAllUnitsInReserve" param0="10"/>
          		<!--Fleet of Denmark is taken over by Germans -->
          		<effect method="Country.ChangeOwnershipOfAllNavalUnits" param0="10" param1="2"/>
				<!--Bye Denmark :(-->
				<effect method="Country.SetActive" param0="10" param1="0" />
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="1001" param1="1"/>
			</effects>
		</option>
		<option optionID="2" chanceAI="1">
			<description>ZID_1001_op2</description>
			<tooltip>ZID_1001_desc2</tooltip>
			<effects>
				<!--Production point added-->
				<effect method="Country.ChangeProductionPoints" param0="10" param1="40" />
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="1001" param1="2"/>
			</effects>
		</option>
	</options>
	</event>
	
	
	<!--Winter War - Help for Finland-->
	<event eventID="1002" countryID="10" visibleByPlayer="1" oneTimeChecking="0"> 
		<title>ZID_1002_title</title>
		<description>ZID_1002_desc</description>
    <beginDate day="1" month="10" year="1939"/>
    <endDate day="31" month="4" year="1940"/>
	<condition>
		<and>
		<!--Random check-->
        <expression>
          	<leftOperand method="System.GetRandomNumber" param0="1" param1="100"/>
          	<operator value="lessOrEqual"/>
          	<rightOperand constValue="25"/>
        </expression>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="10"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
        <!--Finland is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="7"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
        <!--Soviet is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Finland at war with soviets-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="7" param1="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
       	</expression>
	    <!--Flag not fired yet-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="1002"/>
			<operator value="equals" />
			<rightOperand constValue="0" />
		</expression>
		</and>
		</condition>
		<options>
		<option optionID="1" chanceAI="95">
			<description>ZID_1002_op1</description>
			<tooltip>ZID_1002_desc1</tooltip>
			<effects>
				<!--PP reduced by 10-->
          		<effect method="Country.ChangeProductionPoints" param0="10" param1="-10"/>
				<!--Set flag-->
          		<effect method="Flag.ChangeValue" param0="1002" param1="1"/>
			</effects>
		</option>
		<option optionID="2" chanceAI="5">
			<description>ZID_1002_op2</description>
			<tooltip>ZID_1002_desc2</tooltip>
			<effects>
				<!--Set flag-->
          		<effect method="Flag.ChangeValue" param0="1002" param1="2"/>
			</effects>
		</option>
	</options>
	</event>
	
	
	<!--Increasing War Economy - Peace-->
	<event eventID="1003" countryID="10" visibleByPlayer="1" oneTimeChecking="1"> 
		<title>ZID_1003_title</title>
		<description>ZID_1003_desc</description>
    <beginDate day="1" month="9" year="1939"/>
	<condition>
		<and>
        <!--Random check-->
        <expression>
          	<leftOperand method="System.GetRandomNumber" param0="1" param1="100"/>
          	<operator value="lessOrEqual"/>
          	<rightOperand constValue="2"/>
        </expression>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="10"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Not at war-->
		<expression>
			<leftOperand method="Country.IsAtWar" param0="10"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
		<!--WE less than 50-->
		<expression>
			<leftOperand method="Country.GetWarEconomy" param0="10"/>
			<operator value="lessOrEqual"/>
			<rightOperand constValue="50"/>
       	</expression>
		</and>
	</condition>
	<options>
		<option optionID="1" chanceAI="100">
			<description>ZID_1003_op1</description>
			<tooltip>ZID_1003_desc1</tooltip>
			<effects>
				<!--WE Increased by 5-->
          		<effect method="Country.ChangeWarEconomy" param0="10" param1="5"/>
			</effects>
		</option>
	</options>
	</event>
	
	
	
	
	
	
	
	
	
	

</eventSystem>