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

	
	<!--Bessarbia - Soviets makes demands-->
  	<event eventID="8011" countryID="3" oneTimeChecking="1" visibleByPlayer="1">
    	<title>ZID_8011_title</title>
    	<description>ZID_8011_desc</description>
    <beginDate day="1" month="5" year="1940"/>
    <endDate day="31" month="10" 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="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Romania is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="26"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Romania is neutral-->
		<expression>
			<leftOperand method="Country.GetAlliance" param0="26"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
		<!--No war with Germany-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="3" param1="2"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
		<!--No war with Romania-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="3" param1="26"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
		<!--No war with Finland-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="3" param1="7"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8011"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="90">
        	<description>ZID_8011_op1</description>
        	<tooltip>ZID_8011_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8011" param1="2"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="10">
        	<description>ZID_8011_op2</description>
        	<tooltip>ZID_8011_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8011" param1="1"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
	
	<!--Bessarbia - Soviet territorial demands-->
  	<event eventID="8012" countryID="26" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8012_title</title>
    	<description>ZID_8012_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8012"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
	    <!--Option 1 in event 8011 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8011"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="50">
        	<description>ZID_8012_op1</description>
        	<tooltip>ZID_8012_desc1</tooltip>
        	<effects>
		  	<!--Army is ready -->
          	<effect method="Country.UnFreezeAllUnits" param0="26"/>
		  	<!--More willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="10"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8012" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="30">
        	<description>ZID_8012_op2</description>
        	<tooltip>ZID_8012_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8012" param1="2"/>
        	</effects>
      	</option>
      	<option optionID="3" chanceAI="20">
        	<description>ZID_8012_op3</description>
        	<tooltip>ZID_8012_desc3</tooltip>
        	<effects>
		  	<!--More willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="15"/>
			<!--Territory changes-->
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="181" param1="109" param2="1" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="180" param1="108" param2="2" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="179" param1="103" param2="10" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="178" param1="101" param2="11" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="177" param1="101" param2="11" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="176" param1="100" param2="12" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="175" param1="100" param2="13" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="174" param1="99" param2="13" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="173" param1="100" param2="8" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="172" param1="98" param2="8" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="171" param1="98" param2="7" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="170" param1="97" param2="6" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="169" param1="98" param2="4" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="168" param1="98" param2="3" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="167" param1="99" param2="3" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="166" param1="102" param2="2" param3="3"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8012" param1="3"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	<!--Bessarbia - Romanians seeks for assistance-->
  	<event eventID="8013" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8013_title</title>
    	<description>ZID_8013_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8013"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
	    <!--Option 2 in event 8012 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8012"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="90">
        	<description>ZID_8013_op1</description>
        	<tooltip>ZID_8013_desc1</tooltip>
        	<effects>
		  	<!--Romania less willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="-5"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8013" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="10">
        	<description>ZID_8013_op2</description>
        	<tooltip>ZID_8013_desc2</tooltip>
        	<effects>
		  	<!--Romania more willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="20"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8013" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	<!--Bessarbia - Germans not helping Romania-->
  	<event eventID="8014" countryID="26" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8014_title</title>
    	<description>ZID_8014_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8014"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
	    <!--Option 2 in event 8012 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8012"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Option 1 in event 8013 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8013"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="80">
        	<description>ZID_8014_op1</description>
        	<tooltip>ZID_8014_desc1</tooltip>
        	<effects>
		  	<!--Army is ready -->
          	<effect method="Country.UnFreezeAllUnits" param0="26"/>
			<!--Territory changes-->
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="181" param1="109" param2="1" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="180" param1="108" param2="2" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="179" param1="103" param2="10" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="178" param1="101" param2="11" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="177" param1="101" param2="11" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="176" param1="100" param2="12" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="175" param1="100" param2="13" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="174" param1="99" param2="13" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="173" param1="100" param2="8" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="172" param1="98" param2="8" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="171" param1="98" param2="7" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="170" param1="97" param2="6" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="169" param1="98" param2="4" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="168" param1="98" param2="3" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="167" param1="99" param2="3" param3="3"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="166" param1="102" param2="2" param3="3"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8014" param1="1"/>
        	</effects>
    	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8014_op2</description>
        	<tooltip>ZID_8014_desc2</tooltip>
        	<effects>
		  	<!--Army is ready -->
          	<effect method="Country.UnFreezeAllUnits" param0="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8014" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
			
			
	<!--Bessarbia - Soviets decides-->
  	<event eventID="8015" countryID="3" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8015_title</title>
    	<description>ZID_8015_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8015"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
			<or>
	   	 	<!--Option 2 in event 8014 -->
        	<expression>
          		<leftOperand method="Flag.GetValue" param0="8014"/>
          		<operator value="equals"/>
          		<rightOperand constValue="2"/>
        	</expression>
	    	<!--Option 2 in event 8012 -->
        	<expression>
          		<leftOperand method="Flag.GetValue" param0="8012"/>
          		<operator value="equals"/>
          		<rightOperand constValue="2"/>
        	</expression>
				<and>
	   	 		<!--Option 2 in event 8013 -->
        		<expression>
          			<leftOperand method="Flag.GetValue" param0="8013"/>
          			<operator value="equals"/>
          			<rightOperand constValue="2"/>
        		</expression>
	    		<!--Option 1 in event 8012 -->
        		<expression>
          			<leftOperand method="Flag.GetValue" param0="8012"/>
          			<operator value="equals"/>
          			<rightOperand constValue="1"/>
        		</expression>					
                </and>
			</or>
   	 	</and>
    </condition>
	<options>
      	<option optionID="1" chanceAI="85">
        	<description>ZID_8015_op1</description>
        	<tooltip>ZID_8015_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8015" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="15">
        	<description>ZID_8015_op2</description>
        	<tooltip>ZID_8015_desc2</tooltip>
        	<effects>
		  	<!--Declare war with Romania -->
          	<effect method="Country.DeclareWarOnCountry" param0="3" param1="26"/>
		  	<!--Social unrests -->
          	<effect method="Country.ChangeSocialUnrest" param0="3" param1="10"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8015" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
		
	
	<!--Bessarbia - Germans help Romania as promised-->
  	<event eventID="8016" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8016_title</title>
    	<description>ZID_8016_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8016"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
	    <!--Option 2 in event 8013 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8013"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Option 2 in event 8015 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8015"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="80">
        	<description>ZID_8016_op1</description>
        	<tooltip>ZID_8016_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8016" param1="1"/>
		  	<!--Romania less willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="20"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8016_op2</description>
        	<tooltip>ZID_8016_desc2</tooltip>
        	<effects>
		  	<!--Romania less willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="-20"/>
		  	<!--Social unrests -->
          	<effect method="Country.ChangeSocialUnrest" param0="2" param1="10"/>
		  	<!--decreased war economy -->
          	<effect method="Country.ChangeWarEconomy" param0="2" param1="-10"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8016" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
	
	<!--Bessarbia - Help Romania as promised - final choice, no western front-->
  	<event eventID="8017" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8017_title</title>
    	<description>ZID_8017_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8017"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
	    <!--Option 1 in event 8016 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8016"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
			<or>
	    	<!--France is out -->
			<expression>
          		<leftOperand method="Country.IsActive" param0="16"/>
          		<operator value="equals"/>
          		<rightOperand constValue="0"/>
        	</expression>
	    	<!--No war between Germany and France-->
			<expression>
          		<leftOperand method="Country.HasWarWithCountry" param0="2" param1="16"/>
          		<operator value="equals"/>
          		<rightOperand constValue="0"/>
        	</expression>   	 		
        	</or>	
        </and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="95">
        	<description>ZID_8017_op1</description>
        	<tooltip>ZID_8017_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8017" param1="1"/>
		  	<!--Romania joins Axis -->
          	<effect method="Country.SetAllianceEntry" param0="26" param1="100"/>
		  	<!--increased war economy -->
          	<effect method="Country.ChangeWarEconomy" param0="2" param1="5"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="5">
        	<description>ZID_8017_op2</description>
        	<tooltip>ZID_8017_desc2</tooltip>
        	<effects>
		  	<!--Romania less willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="-20"/>
		  	<!--Social unrests -->
          	<effect method="Country.ChangeSocialUnrest" param0="2" param1="20"/>
		  	<!--decreased war economy -->
          	<effect method="Country.ChangeWarEconomy" param0="2" param1="-20"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8017" param1="1"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
	
	<!--Bessarbia - Help Romania as promised - final choice, western front-->
  	<event eventID="8018" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8018_title</title>
    	<description>ZID_8018_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8018"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
	    <!--Option 1 in event 8016 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8016"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
			<or>
	    	<!--France is out -->
			<expression>
          		<leftOperand method="Country.IsActive" param0="16"/>
          		<operator value="equals"/>
          		<rightOperand constValue="1"/>
        	</expression>
	    	<!--No war between Germany and France-->
			<expression>
          		<leftOperand method="Country.HasWarWithCountry" param0="2" param1="16"/>
          		<operator value="equals"/>
          		<rightOperand constValue="1"/>
        	</expression>   	 		
        	</or>	
        </and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="70">
        	<description>ZID_8018_op1</description>
        	<tooltip>ZID_8018_desc1</tooltip>
        	<effects>
		  	<!--Romania joins Axis -->
          	<effect method="Country.SetAllianceEntry" param0="26" param1="100"/>
		  	<!--increased war economy -->
          	<effect method="Country.ChangeWarEconomy" param0="2" param1="10"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8018" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="30">
        	<description>ZID_8018_op2</description>
        	<tooltip>ZID_8018_desc2</tooltip>
        	<effects>
		  	<!--Romania less willing to join Axis -->
          	<effect method="Country.ChangeAllianceEntry" param0="26" param1="-5"/>
		  	<!--Social unrests -->
          	<effect method="Country.ChangeSocialUnrest" param0="2" param1="5"/>
		  	<!--decreased war economy -->
          	<effect method="Country.ChangeWarEconomy" param0="2" param1="-5"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8018" param1="1"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
					
	<!--Bessarbia - Romanians give up-->
  	<event eventID="8019" countryID="3" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8019_title</title>
    	<description>ZID_8019_desc</description>
    <condition>
      	<and>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8019"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
			<or>
	   	 	<!--Option 1 in event 8014 -->
        	<expression>
          		<leftOperand method="Flag.GetValue" param0="8014"/>
          		<operator value="equals"/>
          		<rightOperand constValue="1"/>
        	</expression>
	    	<!--Option 3 in event 8012 -->
        	<expression>
          		<leftOperand method="Flag.GetValue" param0="8012"/>
          		<operator value="equals"/>
          		<rightOperand constValue="3"/>
        	</expression>
			</or>
   	 	</and>
    </condition>
	<options>
      	<option optionID="1" chanceAI="100">
        	<description>ZID_8019_op1</description>
        	<tooltip>ZID_8019_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8019" param1="1"/>
        	</effects>
      	</option>
    </options>
  	</event>
		
	
		

</eventSystem>