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

	

	<!--AI - Italy concentrates at Greece-->
  	<event eventID="12101" countryID="21" visibleByPlayer="0" oneTimeChecking="0">
    	<title>ZID_12101_title</title>
    	<description>ZID_12101_desc</description>
    <beginDate day="1" month="9" year="1940"/>
    <endDate day="31" month="1" year="1941"/>
	<condition>
      	<and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--France is not active-->
        <expression>
          	<leftOperand method="Country.IsActive" param0="16"/>
          	<operator value ="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
		<!--Greece is active-->
        <expression>
          	<leftOperand method="Country.IsActive" param0="24"/>
          	<operator value ="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
		<!--No war with Greece-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="21" param1="24"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
		<!-- Tirana controlled by Italy-->
		<expression>
			<leftOperand method="Hex.ControlledByCountry" param0="148" param1="127" param2="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
		</expression>
		<!--No war with Russia-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="21" param1="3"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
	    <!--Option 1 in event 2104 - events_21_italy.xml-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="2104"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="12101"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
      	</and>
	</condition>
   	<options>
      	<option optionID="1" chanceAI="100" >
        	<description>ZID_12101_op1</description>
        	<tooltip>ZID_12101_desc1</tooltip>
        	<effects>
				<!--Allowing to transport units to front by sea-->
				<effect method="AI.TransportUnitsToFrontsBySea" param0="21" param1="1"/>
          		<!-- Concentrate for invasion towards 1 city: Ioannia -->
          		<effect method="AI.AddInvasionTarget" param0="21" param1="151" param2="134" param3="50"/>
				<!--Production point add-->
				<effect method="Country.ChangeProductionPoints" param0="21" param1="50" />
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="12101" param1="1"/>
   			</effects>
		</option>
  	</options>
  	</event>

	
	<!--AI - Italy concentrates at Egipt-->
  	<event eventID="12102" countryID="21" visibleByPlayer="0" oneTimeChecking="0">
    	<title>ZID_12102_title</title>
    	<description>ZID_12102_desc</description>
    <beginDate day="1" month="1" year="1940"/>
    <endDate day="31" month="1" year="1941"/>
	<condition>
      	<and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--France is not active-->
        <expression>
          	<leftOperand method="Country.IsActive" param0="16"/>
          	<operator value ="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
		<!--UK is active-->
        <expression>
          	<leftOperand method="Country.IsActive" param0="9"/>
          	<operator value ="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
		<!--No war with UK-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="21" param1="24"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
		<!-- Tobruk controlled by Italy-->
		<expression>
			<leftOperand method="Hex.ControlledByCountry" param0="162" param1="164" param2="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
		</expression>
		<!--No war with Russia-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="21" param1="3"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="12102"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
      	</and>
	</condition>
   	<options>
      	<option optionID="1" chanceAI="100" >
        	<description>ZID_12102_op1</description>
        	<tooltip>ZID_12102_desc1</tooltip>
        	<effects>
				<!--Allowing to transport units to front by sea-->
				<effect method="AI.TransportUnitsToFrontsBySea" param0="21" param1="1"/>
          		<!-- Concentrate for invasion towards 1 city: Sidi Barrani -->
          		<effect method="AI.AddInvasionTarget" param0="21" param1="172" param2="166" param3="40"/>
				<!--Production point add-->
				<effect method="Country.ChangeProductionPoints" param0="21" param1="50" />
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="12102" param1="1"/>
   			</effects>
		</option>
  	</options>
  	</event>
	
		
	<!--AI - Italy to attack Malta-->
	<event eventID="12103" countryID="21" visibleByPlayer="0" oneTimeChecking="0">
	<title>ZID_12103_title</title>
    	<description>ZID_12103_desc</description>
    <beginDate day="1" month="8" year="1940"/>
	<condition>
      	<and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="21"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--France is not active-->
        <expression>
          	<leftOperand method="Country.IsActive" param0="16"/>
          	<operator value ="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
		<!-- Naples controlled by Axis-->
		<expression>
			<leftOperand method="Hex.ControlledByAliance" param0="133" param1="132" param2="2"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
		</expression>
		<!-- Valetta not controlled by Axis-->
		<expression>
			<leftOperand method="Hex.ControlledByAliance" param0="135" param1="151" param2="2"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
		</expression>
		<!--No war with Germany-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="21" param1="2"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
		<!--War with UK-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="21" param1="9"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
       	</expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="12103"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
      	</and>
	</condition>
   	<options>
      	<option optionID="1" chanceAI="99" >
        	<description>ZID_12103_op1</description>
        	<tooltip>ZID_12103_desc1</tooltip>
        	<effects>
				<!--Prepare for invasion-->
          		<effect method="AI.SetMakesSeaInvasionsParameter" param0="21" param1="1"/>
				<!--Changnig number of fronts-->
				<effect method="AI.SetMaxNumberOfFrontsForSeaInvasion" param0="21" param1="3"/>
				<!--Set Valetta as alternative Sea Invasion target-->
				<effect method="AI.AddPortForObligatoryInvasion" param0="21" param1="135" param2="151" param3="1"/>
				<!--Allowing to transport units to front by sea-->
				<effect method="AI.TransportUnitsToFrontsBySea" param0="21" param1="1"/>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="12103" param1="1"/>
   			</effects>
		</option>
      	<option optionID="2" chanceAI="1" >
        	<description>ZID_12103_op2</description>
        	<tooltip>ZID_12103_desc2</tooltip>
        	<effects>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="12103" param1="2"/>
   			</effects>
		</option>
  	</options>
  	</event>

	
	



</eventSystem>