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

	
	
	<!--Belgium attacked by Germany-->
	<event eventID="1701" countryID="17" visibleByPlayer="1" oneTimeChecking="0"> 
		<title>ZID_1701_title</title>
		<description>ZID_1701_desc</description>
	<condition>
		<and>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="17"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Option 1 in event 213 - events_02_germany.xml-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="213"/>
			<operator value="equals" />
			<rightOperand constValue="1" />
			</expression>
	    <!--Flag not fired yet-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="1701"/>
			<operator value="equals" />
			<rightOperand constValue="0" />
			</expression>
		</and>
		</condition>
		<options>
		<option optionID="1" chanceAI="5">
			<description>ZID_1701_op1</description>
			<tooltip>ZID_1701_desc1</tooltip>
			<effects>
				<!--Territorial changes-->
					<effect method="HexStripe.ChangeControllerAndOwner" param0="98" param1="87" param2="2" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="99" param1="86" param2="5" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="100" param1="86" param2="5" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="101" param1="86" param2="7" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="102" param1="86" param2="7" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="103" param1="86" param2="7" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="104" param1="86" param2="8" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="105" param1="87" param2="8" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="106" param1="89" param2="5" param3="2" />
					<effect method="HexStripe.ChangeControllerAndOwner" param0="107" param1="89" param2="3" param3="2" />
				<!--Bye Belgium :(-->
				<effect method="Country.SetActive" param0="17" param1="0" />
          		<!--Killing all land units of Belgium-->
          		<effect method="Country.KillAllLandUnits" param0="17"/>
          		<!--Killing all air units of Belgium-->
          		<effect method="Country.KillAllAirUnits" param0="17"/>
          		<!--Killing all reserve units of Belgium-->
          		<effect method="Country.KillAllUnitsInReserve" param0="17"/>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="1701" param1="1"/>
			</effects>
		</option>
		<option optionID="2" chanceAI="95">
			<description>ZID_1701_op2</description>
			<tooltip>ZID_1701_desc2</tooltip>
			<effects>
				<!--Production point added-->
				<effect method="Country.ChangeProductionPoints" param0="17" param1="40" />
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="1701" param1="2"/>
			</effects>
		</option>
	</options>
	</event>
	
	
	<!--Increasing War Economy - Peace-->
	<event eventID="1702" countryID="17" visibleByPlayer="1" oneTimeChecking="1"> 
		<title>ZID_1702_title</title>
		<description>ZID_1702_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="17"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Not at war-->
		<expression>
			<leftOperand method="Country.IsAtWar" param0="17"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
		<!--WE less than 50-->
		<expression>
			<leftOperand method="Country.GetWarEconomy" param0="17"/>
			<operator value="lessOrEqual"/>
			<rightOperand constValue="50"/>
       	</expression>
		</and>
	</condition>
	<options>
		<option optionID="1" chanceAI="100">
			<description>ZID_1702_op1</description>
			<tooltip>ZID_1702_desc1</tooltip>
			<effects>
				<!--WE Increased by 5-->
          		<effect method="Country.ChangeWarEconomy" param0="17" param1="5"/>
			</effects>
		</option>
	</options>
	</event>

	
	<!--Mobilisation - AI-->
	<event eventID="1703" countryID="17" visibleByPlayer="1" oneTimeChecking="0">
	<title>ZID_1703_title</title>
    	<description>ZID_1703_desc</description>
    <beginDate day="1" month="9" year="1939"/>
	<condition>
      	<and>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="17"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--France is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="16"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--UK is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="9"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Germany is not AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="2"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
		<!--War with Germany-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="17" param1="2" /> 
			<operator value="equals" />
			<rightOperand constValue="1" />
		</expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="1703"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
      	</and>
	</condition>
   	<options>
      	<option optionID="1" chanceAI="100" >
        	<description>ZID_1703_op1</description>
        	<tooltip>ZID_1703_desc1</tooltip>
        	<effects>
				<!--PP for Belgium-->
          		<effect method="Country.ChangeProductionPoints" param0="17" param1="30"/>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="1703" param1="1"/>
   			</effects>
		</option>
  	</options>
  	</event>
	
	
	

</eventSystem>