
Country InteractionChanged this version
Ask for Election Support
We will ask them to vote for us when electing a new Emperor.
Holy Roman EmpireInternational Organizationallow, potential, select triggerDefinitionin_game/common/country_interactions/hre.txt:2337
2338type = diplomacy
2339category = CATEGORY_HRE_ACTIONS
2341diplomatic_cost = ask_to_vote_for_me_as_emperor_cost
2345ai_prerequisite = {
2347votes_for_resolution = {
2348resolution = resolution:hre_election
2349outcome = scope:actor
2350value > 1
}
}
}
2355potential = {
}
2359allow = {
}
2365cooldown = {
2366type = ask_to_vote_for_me_as_emperor
2367years = 2
}
2370select_trigger = {
2371looking_for_a = country
2372target_flag = recipient
2373interaction_source_list = {
2375every_country_with_special_status_of_type = {
2376type = elector
2377add_to_list = source
}
2379every_country_with_special_status_of_type = {
2380type = archbishop_elector
2381add_to_list = source
}
}
}
2385name = "choose_country" Choose the Country:
2386column = {
2387data = name
}
2392enabled = {
}
}
2395effect = {
2397set_vote = {
2398voter = scope:recipient
2399resolution = resolution:hre_election
2400vote = scope:actor
2401lock_reason = {
2402key = VOTE_LOCK_REASON_FAVOURS
}
}
}
2406hidden_effect = {
2407if = {
2408limit = {
2408scope:actor = {
2408is_ai = yes
}
}
2409scope:recipient = {
2410add_cooldown = {
2411type = ai_spam_protection_ask_to_vote_for_me_as_emperor
2412years = 5
}
}
}
}
}
2418reject_effect = {
2419hidden_effect = {
2420if = {
2421limit = {
2421scope:actor = {
2421is_ai = yes
}
}
2422scope:recipient = {
2423add_cooldown = {
2424type = ai_spam_protection_ask_to_vote_for_me_as_emperor
2425years = 5
}
}
}
}
}
2433diplo_chance = {
2434base = -75
2435rank = 10
2436different_religion = -25
2437opinion = 0.05
2438negative_opinion = -0.1
2439diplomatic_reputation = 3
2440relative_strength = 25
}
2443ai_will_do = {
2445add = {
2446if = {
2447limit = {
2449international_organization_has_leader = yes
2450leader_country = {
2451has_ruler = yes
}
}
}
2455add = {
2456value = international_organization:hre.leader_country.ruler.age_in_years
2457subtract = 45
}
}
}
2462add = {
2463if = {
2469value = 100
}
}
2473add = {
2474if = {
2475limit = {
2477NOT = {
2477scope:actor = international_organization:hre.leader_country
}
}
2479international_organization:hre.leader_country = {
2480scope:actor = {
2480value = this_opinion_of_prev
}
}
}
}
2485if = {
2486limit = {
2487exists = scope:recipient
2488scope:recipient = {
2488has_cooldown = ai_spam_protection_ask_to_vote_for_me_as_emperor
}
}
2491subtract = {
2492desc = "INERTIA"
2493value = 10000
}
}
}
2501accept = {
2502add = {
2503desc = "game_concept_trust" Trust
2504scope:recipient = {
2505value = "trust(scope:actor)"
2506divide = 5
}
}
2509if = {
2510limit = {
2511scope:recipient = {
2512is_rival_of = scope:actor
}
}
2515add = {
2516desc = "game_concept_rival" Rival
2517value = -100
}
}
2520if = {
2521limit = {
2522scope:recipient = {
2523is_at_war_with = scope:actor
}
}
2526add = {
2527desc = "IS_WAR_ENEMY" War
2528value = -1000
}
}
2531if = {
2537add = {
2538desc = "HAS_ALLIANCE" Alliance
2539value = 25
}
}
}