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

	
	
	<!--German relations-->
	<event eventID="3701" countryID="37" visibleByPlayer="1" oneTimeChecking="0"> 
		<title>ZID_3701_title</title>
		<description>ZID_3701_desc</description>
	<condition>
		<and>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="37"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
        <!--Country is not at war-->
		<expression>
			<leftOperand method="Country.IsAtWar" param0="37"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
        </expression>
        <!--Iran is neutral-->
        <expression>
        	<leftOperand method="Country.GetAlliance"  param0="37"/>
        	<operator value="equals"/>
        	<rightOperand constValue="0"/>
        </expression>
	    <!--Option 1 in event 267 - events_02_germany.xml-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="267"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="3701"/>
			<operator value="equals" />
			<rightOperand constValue="0" />
			</expression>
		</and>
		</condition>
		<options>
		<option optionID="1" chanceAI="90">
			<description>ZID_3701_op1</description>
			<tooltip>ZID_3701_desc1</tooltip>
			<effects>
				<!--Production points increased-->
				<effect method="Country.ChangeProductionPoints" param0="37" param1="50" />
				<!--Change alliance entry-->
          		<effect method="Country.ChangeAllianceEntry" param0="37" param1="10"/>
				<!--Diplomatic points increased-->
          		<effect method="Country.ChangeDiplomaticPoints" param0="37" param1="10"/>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="3701" param1="1"/>
			</effects>
		</option>
		<option optionID="2" chanceAI="10">
			<description>ZID_3701_op1</description>
			<tooltip>ZID_3701_desc2</tooltip>
			<effects>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="3701" param1="2"/>
			</effects>
		</option>
	</options>
	</event>

	
	<!--Ultimatum from UK and USSR-->
	<event eventID="3702" countryID="37" visibleByPlayer="1" oneTimeChecking="0"> 
		<title>ZID_3702_title</title>
		<description>ZID_3702_desc</description>
	<condition>
		<and>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="37"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Option 1 in event 7710 - events_77_dummy.xml-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="7710"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="3702"/>
			<operator value="equals" />
			<rightOperand constValue="0" />
			</expression>
		</and>
		</condition>
		<options>
		<option optionID="1" chanceAI="95">
			<description>ZID_3702_op1</description>
			<tooltip>ZID_3702_desc1</tooltip>
			<effects>
<!--AAAA Make Iran Allied's friendly-->
				<!--Turn off oil pipe-->
          		<effect method="Flag.SetValue" param0="269" param1="2"/>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="3702" param1="1"/>
			</effects>
		</option>
		<option optionID="2" chanceAI="5">
			<description>ZID_3702_op2</description>
			<tooltip>ZID_3702_desc2</tooltip>
			<effects>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="3702" param1="2"/>
			</effects>
		</option>
	</options>
	</event>
	
	
	<!--Ultimatum from UK or USSR-->
	<event eventID="3703" countryID="37" visibleByPlayer="1" oneTimeChecking="0"> 
		<title>ZID_3703_title</title>
		<description>ZID_3703_desc</description>
	<condition>
		<and>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="37"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
	    <!--Option 1 in event 7711 - events_77_dummy.xml-->
        <expression>
          	<leftOperand method="Flag.GetValue" param0="7711"/>
          	<operator value="equals"/>
          	<rightOperand constValue="1"/>
        </expression>
	    <!--Flag not fired yet-->
		<expression>
			<leftOperand method="Flag.GetValue" param0="3703"/>
			<operator value="equals" />
			<rightOperand constValue="0" />
			</expression>
		</and>
		</condition>
		<options>
		<option optionID="1" chanceAI="90">
			<description>ZID_3703_op1</description>
			<tooltip>ZID_3703_desc1</tooltip>
			<effects>
<!--AAAA Make Iran Allied's friendly-->
				<!--Turn off oil pipe-->
          		<effect method="Flag.SetValue" param0="269" param1="2"/>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="3703" param1="1"/>
			</effects>
		</option>
		<option optionID="2" chanceAI="5">
			<description>ZID_3703_op2</description>
			<tooltip>ZID_3703_desc2</tooltip>
			<effects>
				<!--Set flag-->
          		<effect method="Flag.SetValue" param0="3703" param1="2"/>
			</effects>
		</option>
	</options>
	</event>


	<!--Increasing War Economy - Peace-->
	<event eventID="3704" countryID="37" visibleByPlayer="1" oneTimeChecking="1"> 
		<title>ZID_3704_title</title>
		<description>ZID_3704_desc</description>
    <beginDate day="1" month="9" year="1939"/>
	<condition>
		<and>
        <!--Random check-->
        <expression>
          	<leftOperand method="System.GetRandomNumber" param0="1" param1="100"/>
          	<operator value="lessOrEqual"/>
          	<rightOperand constValue="2"/>
        </expression>
        <!--Country is active-->
		<expression>
			<leftOperand method="Country.IsActive" param0="37"/>
			<operator value="equals"/>
			<rightOperand constValue="1"/>
        </expression>
		<!--Not at war-->
		<expression>
			<leftOperand method="Country.IsAtWar" param0="37"/>
			<operator value="equals"/>
			<rightOperand constValue="0"/>
       	</expression>
		<!--WE less than 50-->
		<expression>
			<leftOperand method="Country.GetWarEconomy" param0="37"/>
			<operator value="lessOrEqual"/>
			<rightOperand constValue="50"/>
       	</expression>
		</and>
	</condition>
	<options>
		<option optionID="1" chanceAI="100">
			<description>ZID_3704_op1</description>
			<tooltip>ZID_3704_desc1</tooltip>
			<effects>
				<!--WE Increased by 5-->
          		<effect method="Country.ChangeWarEconomy" param0="37" param1="5"/>
			</effects>
		</option>
	</options>
	</event>
	
	






</eventSystem>