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

	
	<!--Transylvania - Magyars makes demands-->
  	<event eventID="8056" countryID="27" oneTimeChecking="1" visibleByPlayer="1">
    	<title>ZID_8056_title</title>
    	<description>ZID_8056_desc</description>
    <beginDate day="1" month="7" year="1940"/>
    <endDate day="31" month="12" 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="27"/>
			<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="27" param1="26"/>
			<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>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8056"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="75">
        	<description>ZID_8056_op1</description>
        	<tooltip>ZID_8056_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8056" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8056_op2</description>
        	<tooltip>ZID_8056_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8056" param1="2"/>
        	</effects>
      	</option>
      	<option optionID="3" chanceAI="5">
        	<description>ZID_8056_op3</description>
        	<tooltip>ZID_8056_desc3</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8056" param1="3"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
	
	<!--Transylvania - Magyar territorial demands-->
  	<event eventID="8057" countryID="26" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8057_title</title>
    	<description>ZID_8057_desc</description>
    <condition>
      	<and>
	    <!--Option 2 in event 8056 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8056"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8057"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="50">
        	<description>ZID_8057_op1</description>
        	<tooltip>ZID_8057_desc1</tooltip>
        	<effects>
		  	<!--Army is ready -->
          	<effect method="Country.UnFreezeAllUnits" param0="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8057" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="30">
        	<description>ZID_8057_op2</description>
        	<tooltip>ZID_8057_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8057" param1="2"/>
        	</effects>
      	</option>
      	<option optionID="3" chanceAI="20">
        	<description>ZID_8057_op3</description>
        	<tooltip>ZID_8057_desc3</tooltip>
        	<effects>
          	<!-- Territorial changes:-->
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="156" param1="103" param2="2" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="157" param1="103" param2="3" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="158" param1="101" param2="4" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="159" param1="101" param2="6" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="160" param1="101" param2="6" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="161" param1="101" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="162" param1="101" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="163" param1="102" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="164" param1="102" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="165" param1="105" param2="6" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="166" param1="107" param2="5" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="167" param1="109" param2="3" param3="27"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8057" param1="3"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	<!--Transylvania - Romanians refuse-->
  	<event eventID="8058" countryID="27" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8058_title</title>
    	<description>ZID_8058_desc</description>
    <condition>
      	<and>
	    <!--Option 1 in event 8057 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8057"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8058"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="80">
        	<description>ZID_8058_op1</description>
        	<tooltip>ZID_8058_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8058" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8058_op2</description>
        	<tooltip>ZID_8058_desc2</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="27" param1="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8058" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	<!--Transylvania - Romanians asks for German assistance-->
  	<event eventID="8061" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8061_title</title>
    	<description>ZID_8061_desc</description>
    <condition>
      	<and>
	    <!--Option 2 in event 8057 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8057"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8061"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="80">
        	<description>ZID_8061_op1</description>
        	<tooltip>ZID_8061_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8061" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8061_op2</description>
        	<tooltip>ZID_8061_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8061" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	<!--Transylvania - Germans support Romania-->
  	<event eventID="8062" countryID="27" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8062_title</title>
    	<description>ZID_8062_desc</description>
    <condition>
      	<and>
	    <!--Option 2 in event 8061 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8061"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8062"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="90">
        	<description>ZID_8062_op1</description>
        	<tooltip>ZID_8062_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8062" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="9">
        	<description>ZID_8062_op2</description>
        	<tooltip>ZID_8062_desc2</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="27" param1="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8062" param1="2"/>
        	</effects>
      	</option>
      	<option optionID="3" chanceAI="1">
        	<description>ZID_8062_op3</description>
        	<tooltip>ZID_8062_desc3</tooltip>
        	<effects>
			<!--Orientation Democracy-->
          	<effect method="Country.SetOrientation" param0="27" param1="0"/>
			<!--Zone of influence-->
          	<effect method="Country.SetZoneOfInfluence" param0="27" param1="0"/>
		  	<!--Declare war against Romania -->
          	<effect method="Country.DeclareWarOnCountry" param0="27" param1="26"/>
		  	<!--Declare war against Germany -->
          	<effect method="Country.DeclareWarOnCountry" param0="27" param1="2"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8062" param1="3"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	<!--Transylvania - Hungary attacks Romania-->
  	<event eventID="8063" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8063_title</title>
    	<description>ZID_8063_desc</description>
    <condition>
      	<and>
	    <!--Option 2 in event 8062 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8062"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8063"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="70">
        	<description>ZID_8063_op1</description>
        	<tooltip>ZID_8063_desc1</tooltip>
        	<effects>
			<!--Orientation Democracy-->
          	<effect method="Country.SetOrientation" param0="27" param1="0"/>
			<!--Zone of influence-->
          	<effect method="Country.SetZoneOfInfluence" param0="27" param1="0"/>
		  	<!--Declare war against Hungary -->
          	<effect method="Country.DeclareWarOnCountry" param0="2" param1="27"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8063" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="30">
        	<description>ZID_8063_op2</description>
        	<tooltip>ZID_8063_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8063" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	<!--Transylvania - Hungary asks for German assistance-->
  	<event eventID="8066" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8066_title</title>
    	<description>ZID_8066_desc</description>
    <condition>
      	<and>
	    <!--Option 1 in event 8056 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8056"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8066"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="90">
        	<description>ZID_8066_op1</description>
        	<tooltip>ZID_8066_desc1</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8066" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8066_op2</description>
        	<tooltip>ZID_8066_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8066" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
			
		
	<!--Transylvania - Germany support Hungarians-->
  	<event eventID="8067" countryID="26" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8067_title</title>
    	<description>ZID_8067_desc</description>
    <condition>
      	<and>
	    <!--Option 1 in event 8066 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8056"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8067"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="95">
        	<description>ZID_8067_op1</description>
        	<tooltip>ZID_8067_desc1</tooltip>
        	<effects>
          	<!-- Territorial changes:-->
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="156" param1="103" param2="2" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="157" param1="103" param2="3" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="158" param1="101" param2="4" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="159" param1="101" param2="6" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="160" param1="101" param2="6" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="161" param1="101" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="162" param1="101" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="163" param1="102" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="164" param1="102" param2="8" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="165" param1="105" param2="6" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="166" param1="107" param2="5" param3="27"/>
          	<effect method="HexStripe.ChangeControllerAndOwner" param0="167" param1="109" param2="3" param3="27"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8067" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="5">
        	<description>ZID_8067_op2</description>
        	<tooltip>ZID_8067_desc2</tooltip>
        	<effects>
		  	<!--Army is ready -->
          	<effect method="Country.UnFreezeAllUnits" param0="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8067" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
				
	<!--Transylvania - Romanians refuse despite German support-->
  	<event eventID="8068" countryID="27" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8068_title</title>
    	<description>ZID_8068_desc</description>
    <condition>
      	<and>
	    <!--Option 2 in event 8067 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8067"/>
          	<operator value="equals"/>
          	<rightOperand constValue="2"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8068"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="60">
        	<description>ZID_8068_op1</description>
        	<tooltip>ZID_8068_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="27" param1="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8068" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="40">
        	<description>ZID_8068_op2</description>
        	<tooltip>ZID_8068_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8068" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
				
	<!--Transylvania - Romanians don't give up under German pressure-->
  	<event eventID="8069" countryID="2" oneTimeChecking="0" visibleByPlayer="1">
    	<title>ZID_8069_title</title>
    	<description>ZID_8069_desc</description>
    <condition>
      	<and>
	    <!--Option 1 in event 8068 -->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8068"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="8069"/>
          	<operator value="equals"/>
          	<rightOperand constValue="0"/>
        </expression>
   	 	</and>
    </condition>
    <options>
      	<option optionID="1" chanceAI="80">
        	<description>ZID_8069_op1</description>
        	<tooltip>ZID_8069_desc1</tooltip>
        	<effects>
		  	<!--Declare war against Romania -->
          	<effect method="Country.DeclareWarOnCountry" param0="2" param1="26"/>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8069" param1="1"/>
        	</effects>
      	</option>
      	<option optionID="2" chanceAI="20">
        	<description>ZID_8069_op2</description>
        	<tooltip>ZID_8069_desc2</tooltip>
        	<effects>
		  	<!--Set flag on -->
          	<effect method="Flag.SetValue" param0="8069" param1="2"/>
        	</effects>
      	</option>
    </options>
  	</event>
	
		
	
	
		

</eventSystem>