scripted_diplomatic_actions = {
	#####################################################################################################################
	# COMMENTS HAVE BEEN INCLUDED FOR SAKE OF EXPLANATION, CAN BE REMOVED #
	# > REMEMBER < the default scope in this file is the TARGET COUNTRY! NOT THE COUNTRY SENDING THE DIPLOMATIC REQUEST #
	#####################################################################################################################
	test_diplomatic_action = {
		icon = 13		#	The icon to use for the dipomatic request, visible when the diplomatic action is sent, not visible if the diplomatic request does not require acceptance, must be included in the \gfx\interface\alerts\global_diplorequest_icons.dds file, number represents icon location from left to right.
		
		#### CONDITIONS TO USE/SEE ACTION ###
		
		allowed = {		#	Used for the send window, if not true player/AI wont be able to send the diplomatic request even if can_be_sent is true.
		}
		visible = {		#	Conditions to make this diplomatic action appear in the diplomacy screen.
          if = {
            limit = {
               has_game_rule = { rule = imd_enable_iim option = NO_IIM }
            }
            always = no
          }
		}
		selectable = {
          industrial_complex > 14		   #	Conditions to allow player/AI to click the option in the diplomacy screen, this is what the player sees as "prerequisets" to use this action.
		}
		can_be_accepted = {		# Conditions that may not allow player/AI to accept this diplomatic action.
		}
		can_be_sent = {		# Conditions that may not allow player/AI to send this diplomatic action.
		}
		
		cost = 100		# The cost to execute this diplomatic action, by default is political power

		requires_acceptance = yes		#	Does this diplomatic request requires acceptance, if set to NO reject_effect is invalid
		show_acceptance_on_action_button = yes #	Should accept/decline tooltip be shown in the user interface when using this diplomatic action on AI countries		

		#### ACTION LOCALISATION ###

		send_description = TEST_DIPLO_ACTION_LOC		# The text the country that is executing the diplomatic action sees.
		receive_description = TEST_DIPLO_ACTION_RECIEVER_LOC	# The text the target country sees when recieving the diplomation action.
		accept_title = TEST_DIPLO_ACTION_ACCEPTED_TITLE		# The notification title shown when the diplomatic action is ACCEPTED, not valid if requires_acceptance is set to NO
		accept_description = TEST_DIPLO_ACTION_ACCEPTED_DESC	# The notification description shown when the diplomatic action is ACCEPTED, not valid if requires_acceptance is set to NO
		reject_title = TEST_DIPLO_ACTION_REJECTED_TITLE				# The notification title shown when the diplomatic action is REJECTED, not valid if requires_acceptance is set to NO
		reject_description = TEST_DIPLO_ACTION_REJECTED_DESC           # The notification description shown when the diplomatic action is REJECTED, not valid if requires_acceptance is set to NO

		#### EFFECTS ###		

		on_sent_effect = {		#	An effect that can be applied when sending the diplomatic action.
		}
		complete_effect = {	
          if = {
            limit = {
               THIS = { NOT = { has_idea = contract_1_locked } }
            }
            add_to_array = { THIS.contract_1_countries = ROOT.id }
			add_ideas = contract_1_locked
          }	
          else_if = {
            limit = {
                THIS = { has_idea = contract_1_locked }
				THIS = { NOT = { has_idea = contract_2_locked } }
            }
            add_to_array = { THIS.contract_2_countries = ROOT.id }
			add_ideas = contract_2_locked
          }
          else_if = {
            limit = {
                THIS = { has_idea = contract_2_locked }
				THIS = { NOT = { has_idea = contract_3_locked } }
            }
            add_to_array = { THIS.contract_3_countries = ROOT.id }
			add_ideas = contract_3_locked
          }
          else_if = {
            limit = {
                THIS = { has_idea = contract_3_locked }
				THIS = { NOT = { has_idea = contract_4_locked } }
            }
            add_to_array = { THIS.contract_4_countries = ROOT.id }
			add_ideas = contract_4_locked
          }
          else_if = {
            limit = {
                THIS = { has_idea = contract_4_locked }
				THIS = { NOT = { has_idea = contract_5_locked } }
            }
            add_to_array = { THIS.contract_5_countries = ROOT.id }
			add_ideas = contract_5_locked
          }		  
		}
		reject_effect = {		#	An effect that can be applied the action is REJECTED (only valid if requires_acceptance is set to YES )
		}
		
		#### AI SECTION ###
		
		ai_desire = {		# AI modifiers to use this diplomatic action
			modifier = {
				add = 30
				
			}
		}
		ai_acceptance = {		# AI modifiers to accept this diplomatic action, not valid if requires_acceptance is set to NO.
			base_desire = {
				modifier = {
					factor = -10
				}
			}
            opinion_checks  = {
                modifier = {
                    has_opinion = { target = ROOT value > 5 }
                    add = 10
                }
            }		
		}
	}
}