﻿council_heated_brawl = {
	icon = negative
	
	is_valid = {
		is_current_phase_active = yes
		any_attending_character = {
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			save_temporary_scope_as = first_temp
		}
		any_attending_character = {
			this != scope:first_temp
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			can_set_relation_rival_trigger = { CHARACTER = scope:first_temp }
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_heated_brawl_fired
			}
			multiply = 0.1
		}
	}

	effect = {
		set_variable = {
			name = council_heated_brawl_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				save_temporary_scope_as = first_temp
				scope:activity = {
					any_attending_character = {
						this != scope:first_temp
						is_physically_able_ai_adult = yes
						is_lowborn = no
						OR = {
							is_ruler = yes
							AND = {
								is_lowborn = no
								OR = {
									house = scope:host.house
									house = scope:activity.special_guest:the_pretender.house
								}
							}
						}
						location = scope:province
						can_set_relation_rival_trigger = { CHARACTER = scope:first_temp }
					}
				}
			}
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:first
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				can_set_relation_rival_trigger = { CHARACTER = scope:first }
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_heated_brawl
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				add_trait = wounded_1
				set_relation_rival = {
					target = scope:second
					reason = rival_activity_argument
				}
			}
			
			scope:second = {
				add_trait = wounded_1
			}
		}
	}
}

council_political_rivalry = {
	icon = negative
	
	is_valid = {
		is_current_phase_active = yes
		any_attending_character = {
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			save_temporary_scope_as = first_temp
		}
		any_attending_character = {
			this != scope:first_temp
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			can_set_relation_rival_trigger = { CHARACTER = scope:first_temp }
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_political_rivalry_fired
			}
			multiply = 1
		}
	}

	effect = {
		set_variable = {
			name = council_political_rivalry_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				save_temporary_scope_as = first_temp
				scope:activity = {
					any_attending_character = {
						this != scope:first_temp
						is_physically_able_ai_adult = yes
						is_lowborn = no
						OR = {
							is_ruler = yes
							AND = {
								is_lowborn = no
								OR = {
									house = scope:host.house
									house = scope:activity.special_guest:the_pretender.house
								}
							}
						}
						location = scope:province
						can_set_relation_rival_trigger = { CHARACTER = scope:first_temp }
					}
				}
			}
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:first
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				can_set_relation_rival_trigger = { CHARACTER = scope:first }
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_political_rivalry
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				add_opinion = {
					modifier = despised_opinion
					target = scope:second
					opinion = -20
				}
				set_relation_rival = {
					target = scope:second
					reason = rival_activity_argument
				}
			}
			
			scope:second = {
				add_opinion = {
					modifier = despised_opinion
					target = scope:first
					opinion = -20
				}
			}
		}
	}
}

council_forge_alliance = {
	icon = positive
	
	is_valid = {
		is_current_phase_active = yes
		# Host and Pretender cannot be involved
		NOT = { scope:host = scope:activity.special_guest:the_pretender }
		any_attending_character = {
			is_physically_able_ai_adult = yes
			is_lowborn = no
			# Exclude host and pretender
			this != scope:host
			this != scope:activity.special_guest:the_pretender
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			save_temporary_scope_as = first_temp
		}
		any_attending_character = {
			this != scope:first_temp
			is_physically_able_ai_adult = yes
			is_lowborn = no
			# Exclude host and pretender
			this != scope:host
			this != scope:activity.special_guest:the_pretender
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			can_set_relation_friend_trigger = { CHARACTER = scope:first_temp }
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_forge_alliance_fired
			}
			multiply = 0.75
		}
	}

	effect = {
		set_variable = {
			name = council_forge_alliance_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				is_physically_able_ai_adult = yes
				is_lowborn = no
				# Exclude host and pretender
				this != scope:host
				this != scope:activity.special_guest:the_pretender
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				save_temporary_scope_as = first_temp
				scope:activity = {
					any_attending_character = {
						this != scope:first_temp
						is_physically_able_ai_adult = yes
						is_lowborn = no
						# Exclude host and pretender
						this != scope:host
						this != scope:activity.special_guest:the_pretender
						OR = {
							is_ruler = yes
							AND = {
								is_lowborn = no
								OR = {
									house = scope:host.house
									house = scope:activity.special_guest:the_pretender.house
								}
							}
						}
						location = scope:province
						can_set_relation_friend_trigger = { CHARACTER = scope:first_temp }
					}
				}
			}
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:first
				is_physically_able_ai_adult = yes
				is_lowborn = no
				# Exclude host and pretender
				this != scope:host
				this != scope:activity.special_guest:the_pretender
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				can_set_relation_friend_trigger = { CHARACTER = scope:first }
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_forge_alliance
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				set_relation_friend = {
					target = scope:second
				}
			}
		}
	}
}

council_pretender_sways_vassal = {
	icon = public
	
	is_valid = {
		is_current_phase_active = yes
		special_guest:the_pretender ?= {
			is_alive = yes
			location = scope:province
		}
		any_attending_character = {
			this != scope:activity.special_guest:the_pretender
			this != scope:host
			is_physically_able_ai_adult = yes
			is_lowborn = no
			is_ruler = yes
			is_vassal_of = scope:host
			location = scope:province
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_pretender_sways_vassal_fired
			}
			multiply = 0.75
		}
	}

	effect = {
		set_variable = {
			name = council_pretender_sways_vassal_fired
			value = yes
		}
		
		special_guest:the_pretender = {
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:activity.special_guest:the_pretender
				this != scope:host
				is_physically_able_ai_adult = yes
				is_lowborn = no
				is_ruler = yes
				OR = {
					is_vassal_of = scope:host
					is_vassal_of = scope:activity.special_guest:the_pretender
				}
				location = scope:province
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_pretender_sways_vassal
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				add_prestige = minor_prestige_gain
			}
			
			scope:second = {
				add_opinion = {
					modifier = impressed_opinion
					target = scope:first
					opinion = 20
				}
				add_opinion = {
					modifier = suspicious_opinion
					target = scope:host
					opinion = -15
				}

				if = {
					limit = {
						has_character_flag = pledged_to_heir
					}
					
					if = {
						limit = {
							is_in_guest_subset = { name = supporter }
						}
						scope:activity = {
							remove_from_guest_subset = { name = supporter target = scope:second }
							add_to_guest_subset = { name = detractor target = scope:second }
						}
					}
					
					remove_character_flag = pledged_to_heir
					add_character_flag = pledged_to_claimant
					
					set_activity_intent = council_support_pretender
					council_calculate_progression_effect = yes
				}
			}
		}
	}
}

council_impressed_by_host_rhetoric = {
	icon = positive
	
	is_valid = {
		is_current_phase_active = yes
		any_attending_character = {
			this != scope:host
			this != scope:activity.special_guest:the_pretender
			is_physically_able_ai_adult = yes
			is_lowborn = no
			is_ruler = yes
			is_vassal_of = scope:host
			location = scope:province
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_impressed_by_host_rhetoric_fired
			}
			multiply = 0.75
		}
	}

	effect = {
		set_variable = {
			name = council_impressed_by_host_rhetoric_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				this != scope:host
				this != scope:activity.special_guest:the_pretender
				is_physically_able_ai_adult = yes
				is_lowborn = no
				is_ruler = yes
				OR = {
					is_vassal_of = scope:host
					is_vassal_of = scope:activity.special_guest:the_pretender
				}
				location = scope:province
			}
			save_scope_as = first
		}

		add_activity_log_entry = {
			key = council_impressed_by_host_rhetoric
			tags = { pulse_action }
			character = scope:host
			target = scope:first
			
			scope:host = {
				add_prestige = minor_prestige_gain
			}
			
			scope:first = {
				add_opinion = {
					modifier = impressed_opinion
					target = scope:host
					opinion = 15
				}

				if = {
					limit = {
						has_character_flag = pledged_to_claimant
					}

					if = {
						limit = {
							is_in_guest_subset = { name = detractor }
						}
						scope:activity = {
							remove_from_guest_subset = { name = detractor target = scope:first }
							add_to_guest_subset = { name = supporter target = scope:first }
						}
					}
					
					remove_character_flag = pledged_to_claimant
					add_character_flag = pledged_to_heir
					
					set_activity_intent = council_support_host
					council_calculate_progression_effect = yes
				}
			}
		}
	}
}

council_sort_intent_subsets = {
	icon = public

	is_valid = {
		is_current_phase_active = yes
	}

	effect = {
		every_attending_character = {
			save_scope_as = target_char
			
			# Execute activity-scoped commands inside the activity scope
			scope:activity = {
				# Remove from both to ensure a clean state
				remove_from_guest_subset = { name = supporter target = scope:target_char }
				remove_from_guest_subset = { name = detractor target = scope:target_char }

				# Re-assign based on intent or pledge
				if = {
					limit = {
						scope:target_char = {
							has_activity_intent = council_support_host
						}
					}
					add_to_guest_subset = { name = supporter target = scope:target_char }
				}
				else_if = {
					limit = {
						scope:target_char = {
							has_activity_intent = council_support_pretender
						}
					}
					add_to_guest_subset = { name = detractor target = scope:target_char }
				}
			}
		}
	}
}

pulse_action_check_guests = {
	icon = public

	is_valid = {
		is_current_phase_active = yes
	}

	effect = {
		scope:activity = {
			if = {
				limit = {
					exists = scope:activity.special_guest:the_pretender
					NOT = {
						scope:activity.special_guest:the_pretender = {
							location = scope:host.location
						}
					}
				}
				scope:activity.special_guest:the_pretender = {
					set_location = scope:host.location
				}
			}
		}
	}
}

council_marriage_pact_alliance = {
	icon = positive
	
	is_valid = {
		is_current_phase_active = yes
		any_attending_character = {
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			save_temporary_scope_as = first_temp
		}
		any_attending_character = {
			this != scope:first_temp
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			NOT = { is_allied_to = scope:first_temp }
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_marriage_pact_alliance_fired
			}
			multiply = 0.5
		}
	}

	effect = {
		set_variable = {
			name = council_marriage_pact_alliance_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				save_temporary_scope_as = first_temp
				scope:activity = {
					any_attending_character = {
						this != scope:first_temp
						is_physically_able_ai_adult = yes
						is_lowborn = no
						OR = {
							is_ruler = yes
							AND = {
								is_lowborn = no
								OR = {
									house = scope:host.house
									house = scope:activity.special_guest:the_pretender.house
								}
							}
						}
						location = scope:province
						NOT = { is_allied_to = scope:first_temp }
					}
				}
			}
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:first
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				NOT = { is_allied_to = scope:first }
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_marriage_pact_alliance
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				add_opinion = {
					modifier = allied_opinion
					target = scope:second
					opinion = 30
				}
				create_alliance = {
					target = scope:second
					allied_through_owner = scope:first
					allied_through_target = scope:second
				}
			}
			
			scope:second = {
				add_opinion = {
					modifier = allied_opinion
					target = scope:first
					opinion = 30
				}
			}
		}
	}
}

council_theological_debate = {
	icon = public
	
	is_valid = {
		is_current_phase_active = yes
		any_attending_character = {
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			save_temporary_scope_as = first_temp
		}
		any_attending_character = {
			this != scope:first_temp
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_theological_debate_fired
			}
			multiply = 0.5
		}
	}

	effect = {
		set_variable = {
			name = council_theological_debate_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				save_temporary_scope_as = first_temp
				scope:activity = {
					any_attending_character = {
						this != scope:first_temp
						is_physically_able_ai_adult = yes
						is_lowborn = no
						OR = {
							is_ruler = yes
							AND = {
								is_lowborn = no
								OR = {
									house = scope:host.house
									house = scope:activity.special_guest:the_pretender.house
								}
							}
						}
						location = scope:province
					}
				}
			}
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:first
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_theological_debate
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				add_piety = minor_piety_gain
				add_opinion = {
					modifier = resentful_opinion
					target = scope:second
					opinion = -10
				}
			}
			
			scope:second = {
				add_piety = minor_piety_loss
				add_opinion = {
					modifier = resentful_opinion
					target = scope:first
					opinion = -10
				}
			}
		}
	}
}

council_prestige_clash = {
	icon = public
	
	is_valid = {
		is_current_phase_active = yes
		any_attending_character = {
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			save_temporary_scope_as = first_temp
		}
		any_attending_character = {
			this != scope:first_temp
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_prestige_clash_fired
			}
			multiply = 0.5
		}
	}

	effect = {
		set_variable = {
			name = council_prestige_clash_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				save_temporary_scope_as = first_temp
				scope:activity = {
					any_attending_character = {
						this != scope:first_temp
						is_physically_able_ai_adult = yes
						is_lowborn = no
						OR = {
							is_ruler = yes
							AND = {
								is_lowborn = no
								OR = {
									house = scope:host.house
									house = scope:activity.special_guest:the_pretender.house
								}
							}
						}
						location = scope:province
					}
				}
			}
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:first
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_prestige_clash
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				add_prestige = minor_prestige_gain
				add_opinion = {
					modifier = rival_opinion
					target = scope:second
					opinion = -15
				}
			}
			
			scope:second = {
				add_prestige = minor_prestige_loss
				add_opinion = {
					modifier = rival_opinion
					target = scope:first
					opinion = -15
				}
			}
		}
	}
}

council_purchase_hook = {
	icon = public
	
	is_valid = {
		is_current_phase_active = yes
		any_attending_character = {
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
			gold >= minor_gold_value
			save_temporary_scope_as = first_temp
		}
		any_attending_character = {
			this != scope:first_temp
			is_physically_able_ai_adult = yes
			is_lowborn = no
			OR = {
				is_ruler = yes
				AND = {
					is_lowborn = no
					OR = {
						house = scope:host.house
						house = scope:activity.special_guest:the_pretender.house
					}
				}
			}
			location = scope:province
		}
	}

	weight = {
		value = 1
		if = {
			limit = {
				has_variable = council_purchase_hook_fired
			}
			multiply = 0.5
		}
	}

	effect = {
		set_variable = {
			name = council_purchase_hook_fired
			value = yes
		}
		
		random_attending_character = {
			limit = {
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
				gold >= minor_gold_value
				save_temporary_scope_as = first_temp
				scope:activity = {
					any_attending_character = {
						this != scope:first_temp
						is_physically_able_ai_adult = yes
						is_lowborn = no
						OR = {
							is_ruler = yes
							AND = {
								is_lowborn = no
								OR = {
									house = scope:host.house
									house = scope:activity.special_guest:the_pretender.house
								}
							}
						}
						location = scope:province
					}
				}
			}
			save_scope_as = first
		}
		random_attending_character = {
			limit = {
				this != scope:first
				is_physically_able_ai_adult = yes
				is_lowborn = no
				OR = {
					is_ruler = yes
					AND = {
						is_lowborn = no
						OR = {
							house = scope:host.house
							house = scope:activity.special_guest:the_pretender.house
						}
					}
				}
				location = scope:province
			}
			save_scope_as = second
		}

		add_activity_log_entry = {
			key = council_purchase_hook
			tags = { pulse_action }
			character = scope:first
			target = scope:second
			
			scope:first = {
				if = {
					limit = {
						gold >= scope:second.medium_gold_value
					}
					pay_short_term_gold = {
						target = scope:second
						gold = scope:second.medium_gold_value
					}
				}
				else = {
					pay_short_term_gold = {
						target = scope:second
						gold = scope:second.minor_gold_value
					}
				}
				add_hook = {
					target = scope:second
					type = favor_hook
				}
			}
			
			scope:second = {
				add_opinion = {
					modifier = grateful_opinion
					target = scope:first
					opinion = 15
				}
			}
		}
	}
}