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

	
	<!--Constanta - Bulgars makes demands-->
  	<event eventID="8071" countryID="25" oneTimeChecking="1" visibleByPlayer="1">
    	<title>ZID_8071_title</title>
    	<description>ZID_8071_desc</description>
    <beginDate day="1" month="8" year="1940"/>
    <endDate day="31" month="11" year="1940"/>
    <condition>
      	<and>
		<!--Random number-->
		<expression>
			<leftOperand method="System.GetRandomNumber" param0="1" param1="2"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="25"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Romania is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="26"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--No war with Romania-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="25" param1="26"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
		<!--No war with Germany-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="25" param1="2"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8071"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="95">
        	<description>ZID_8071_op1</description>
        	<tooltip>ZID_8071_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8071" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="5">
        	<description>ZID_8071_op2</description>
        	<tooltip>ZID_8071_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8071" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
	
	<!--Constanta - Bulgarian territorial demands-->
  	<event eventID="8072" countryID="26" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8072_title</title>
    	<description>ZID_8072_desc</description>
    <condition>
      	<and>
	    <!--Option 1 in event 8071 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8071"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8072"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="80">
        	<description>ZID_8072_op1</description>
        	<tooltip>ZID_8072_desc1</tooltip>
        	<effects>
		  	<!--Army is ready -->
          	<effect method="Country.UnFreezeAllUnits" param0="26"/>
          	<!-- Territorial changes:-->
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="169" param1="119" param2="1" param3="25"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="170" param1="118" param2="1" param3="25"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="171" param1="119" param2="1" param3="25"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="172" param1="118" param2="2" param3="25"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="173" param1="118" param2="3" param3="25"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="174" param1="118" param2="2" param3="25"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="175" param1="118" param2="2" param3="25"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8072" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8072_op2</description>
        	<tooltip>ZID_8072_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8072" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
	
	<!--Constanta - Romanians refuse-->
  	<event eventID="8073" countryID="25" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8073_title</title>
    	<description>ZID_8073_desc</description>
    <condition>
      	<and>
	    <!--Option 2 in event 8072 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8072"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8073"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="15">
        	<description>ZID_8073_op1</description>
        	<tooltip>ZID_8073_desc1</tooltip>
        	<effects>
			<!--Orientation Democracy-->
          	<effect method="Country.SetOrientation" param0="26" param1="0"/>
			<!--Zone of influence-->
          	<effect method="Country.SetZoneOfInfluence" param0="26" param1="0"/>
		  	<!--Declare war against Romania -->
          	<effect method="Country.DeclareWarOnCountry" param0="25" param1="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8073" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="85">
        	<description>ZID_8073_op2</description>
        	<tooltip>ZID_8073_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8073" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
	

</eventSystem>