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

  <!-- AI Soviet research plan 1940-->
  <event eventID="10130" countryID="3" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10130_title</title>
    <description>ZID_10130_desc</description>
    <beginDate day="1" month="1" year="1940"/>
    <endDate day="25" month="12" year="1941"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10130"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="3"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10130_op1</description>
        <tooltip>ZID_10130_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10130" param1="1"/>
          <!--Country: Try to get level 3 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="1" param2="3"/>
          <!--Country: Try to get level 4 armor tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="2" param2="4"/>
        </effects>
      </option>
    </options>
  </event>
  
		
  <!-- AI Soviet research plan 1941 option 1-->
  <!-- Not at war with Germany-->
  <event eventID="10131" countryID="3" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10131_title</title>
    <description>ZID_10131_desc</description>
    <beginDate day="1" month="1" year="1941"/>
    <endDate day="25" month="12" year="1943"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--No war with Germany-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="3" param1="2"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10131"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="3"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10131_op1</description>
        <tooltip>ZID_10131_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10131" param1="1"/>
		  <!--Set option 2 flag on -->
          <effect method="Flag.SetValue" param0="10132" param1="1"/>
          <!--Country: Try to get level 4 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="1" param2="4"/>
          <!--Country: Try to get level 2 planes tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="4" param2="2"/>
          <!--Country: Try to get level 1 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="3" param2="1"/>
        </effects>
      </option>
    </options>
  </event>
  
		
  <!-- AI Soviet research plan 1941 option 2-->
  <!-- At war with Germany-->
  <event eventID="10132" countryID="3" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10132_title</title>
    <description>ZID_10132_desc</description>
    <beginDate day="1" month="1" year="1941"/>
    <endDate day="25" month="12" year="1943"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--War with Germany-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="3" param1="2"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10132"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="3"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10132_op1</description>
        <tooltip>ZID_10132_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10132" param1="1"/>
		  <!--Set option 1 flag on -->
          <effect method="Flag.SetValue" param0="10131" param1="1"/>
          <!--Country: Try to get level 4 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="1" param2="4"/>
          <!--Country: Try to get level 4 armor tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="2" param2="4"/>
          <!--Country: Try to get level 1 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="3" param2="1"/>
        </effects>
      </option>
    </options>
  </event>
    
  
  <!-- AI Soviet research plan 1944-->
  <event eventID="10140" countryID="3" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10140_title</title>
    <description>ZID_10140_desc</description>
    <beginDate day="1" month="1" year="1944"/>
    <endDate day="25" month="12" year="1945"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10140"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="3"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10140_op1</description>
        <tooltip>ZID_10140_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10140" param1="1"/>
          <!--Country: Try to get level 5 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="1" param2="5"/>
          <!--Country: Try to get level 5 armor tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="2" param2="5"/>
          <!--Country: Try to get level 4 plane tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="4" param2="4"/>
          <!--Country: Try to get level 3 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="3" param2="3"/>
        </effects>
      </option>
    </options>
  </event>
    
  <!-- AI Soviet research plan 1946-->
  <event eventID="10143" countryID="3" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10143_title</title>
    <description>ZID_10143_desc</description>
    <beginDate day="1" month="1" year="1946"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10143"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="3"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10143_op1</description>
        <tooltip>ZID_10143_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10143" param1="1"/>
          <!--Country: Try to get level 5 infantry tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="1" param2="5"/>
          <!--Country: Try to get level 5 armor tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="2" param2="5"/>
          <!--Country: Try to get level 5 plane tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="4" param2="5"/>
          <!--Country: Try to get level 5 warfare tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="3" param2="5"/>
          <!--Country: Try to get level 5 naval tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="6" param2="5"/>
          <!--Country: Try to get level 5 subs tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="5" param2="5"/>
        </effects>
      </option>
    </options>
  </event>
    
		
  <!-- AI Soviet nuke research plan 1942-->
  <!-- No war with Germany-->
  <event eventID="10150" countryID="3" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10150_title</title>
    <description>ZID_10150_desc</description>
    <beginDate day="1" month="1" year="1942"/>
    <endDate day="25" month="12" year="1945"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--No war with Germany-->
		<expression>
			<leftOperand method="Country.HasWarWithCountry" param0="3" param1="2"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
	    <!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10150"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 100 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="3"/>
          <operator value="greater"/>
          <rightOperand constValue="100"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10150_op1</description>
        <tooltip>ZID_10150_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10150" param1="1"/>
          <!--Country: Try to get level 2 nuke tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="7" param2="2"/>
        </effects>
      </option>
    </options>
  </event>
  		  
		
  <!-- AI Soviet nuke research plan 1946-->
  <event eventID="10151" countryID="3" oneTimeChecking="0" visibleByPlayer="0">
    <title>ZID_10151_title</title>
    <description>ZID_10151_desc</description>
    <beginDate day="1" month="1" year="1946"/>
    <condition>
      <and>
		<!--Country is AI controlled-->
		<expression>
			<leftOperand method="Country.IsAIControlled" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="3"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Flag not fired yet-->
        <expression>
          <leftOperand method="Flag.GetValue" param0="10151"/>
          <operator value="equals"/>
          <rightOperand constValue="0"/>
        </expression>
		<!--Only if the country has got more than 500 of PP-->
        <expression>
          <leftOperand method="Country.GetProductionPoints" param0="3"/>
          <operator value="greater"/>
          <rightOperand constValue="500"/>
        </expression>
      </and>
    </condition>
    <options>
      <option optionID="1" chanceAI="100">
        <description>ZID_10151_op1</description>
        <tooltip>ZID_10151_desc1</tooltip>
        <effects>
		  <!--Set flag on -->
          <effect method="Flag.SetValue" param0="10151" param1="1"/>
          <!--Country: Try to get level 5 nuke tech-->
          <effect method="AI.SetDesiredTechLevel" param0="3" param1="7" param2="5"/>
        </effects>
      </option>
    </options>
  </event>
		
  </eventSystem>