
Country InteractionChanged this version
Request Elector Status
We will request the status of an Elector in the Holy Roman Empire.
CountyCountry Rankaccept
MonarchyGovernment Typeaccept, potential
TheocracyGovernment Typepotential
Holy Roman EmpireInternational Organizationaccept, allow, potential
Archbishop-ElectorSpecial Statusallow, effect, potential
Prince-ElectorSpecial Statusallow, effect, potential
Excluded from ElectorshipModifier TypepotentialDefinitionin_game/common/country_interactions/hre.txt:202
203type = diplomacy
204category = CATEGORY_HRE_ACTIONS
205ai_limit_per_check = 1
206potential = {
207scope:actor = {
210OR = {
}
215OR = {
216AND = {
217num_countries_with_special_status(special_status:elector) < "max_countries_with_special_status(special_status:elector)"
218NOT = {
}
}
225AND = {
226num_countries_with_special_status(special_status:archbishop_elector) < "max_countries_with_special_status(special_status:archbishop_elector)"
227NOT = {
228country_has_special_status = {
230country = scope:actor
}
}
}
}
}
}
}
239allow = {
241OR = {
242AND = {
243num_countries_with_special_status(special_status:elector) < "max_countries_with_special_status(special_status:elector)"
}
249AND = {
250num_countries_with_special_status(special_status:archbishop_elector) < "max_countries_with_special_status(special_status:archbishop_elector)"
251special_status_can_be_bestowed = {
253country = scope:actor
}
}
}
}
}
260select_trigger = {
261looking_for_a = country
262target_flag = recipient
263name = "choose_country" Choose the Country:
264column = {
265data = name
}
270enabled = {
}
}
274effect = {
276if = {
277limit = {
}
283international_organization_add_special_status = {
285country = scope:actor
}
}
288if = {
289limit = {
290special_status_can_be_bestowed = {
292country = scope:actor
}
}
295international_organization_add_special_status = {
297country = scope:actor
}
}
}
301scope:actor = {
302add_opinion = {
302target = scope:recipient
302modifier = opinion_granted_electorship
}
}
}
305ai_will_do = {
306add = {
307desc = "TARGET_ACCEPTANCE"
308value = "scope:actor.country_interaction_acceptance(country_interaction:request_elector_status|scope:recipient)"
309subtract = 50
}
}
313accept = {
314add = {
315desc = "EMPIRE_NEED_ELECTORS" The Empire needs Electors
316value = 10
}
318if = {
319limit = {
319scope:recipient.antagonism(scope:actor) > 0
}
320subtract = {
321desc = "DIPLOREASON_ANTAGONISM" Antagonism
322value = "scope:actor.antagonism(scope:recipient)"
}
}
325if = {
327if = {
328limit = {
329scope:actor = {
329total_population_in_international_organization = {
329value < 100
}
}
}
331subtract = {
332desc = "HRE_TINY_NATION" Tiny Nation in the Empire (Total Population below 100 Thousand)
333value = 100
}
}
336else_if = {
337limit = {
338scope:actor = {
338total_population_in_international_organization = {
338value < 250
}
}
}
340subtract = {
341desc = "HRE_SMALL_NATION" Small Nation in the Empire (Total Population below 250 Thousand)
342value = 50
}
}
345if = {
347subtract = {
348desc = "rank_duchy" Duchy
349value = 75
}
}
352add = {
353desc = "DIPLOREASON_DYNASTIC_POWER_IN_HRE" Dynastic Power in the Holy Roman Empire
354value = "scope:actor.dynastic_power(international_organization:hre)"
355multiply = 1.5
}
}
358if = {
359limit = {
360scope:actor = {
361OR = {
362has_ruler = yes
363has_heir = yes
}
365ruler_or_heir_if_regent ?= {
366has_dynasty = yes
367dynasty ?= scope:recipient.ruler.dynasty
}
}
}
371add = {
372desc = "opinion_same_dynasty" Same Dynasty
373value = 50
}
}
376if = {
377limit = {
378scope:actor.country_economical_base > 0
379scope:recipient.country_economical_base > 0
}
381if = {
382limit = {
382scope:actor.country_economical_base < scope:recipient.country_economical_base
}
383subtract = {}
}
403else = {
404add = {
405desc = "RELATIVE_ECONOMICAL_BASE"
406value = scope:recipient.country_economical_base
407divide = scope:actor.country_economical_base
408multiply = 100
409min = -50
410max = 50
}
}
}
414if = {
416add = {
417desc = "game_concept_alliance" Alliance
418value = 20
}
}
421if = {
422limit = {
423scope:recipient = {
424is_rival_of = scope:actor
}
}
427add = {
428desc = "game_concept_rival" Rival
429value = -1000
}
}
432if = {
433limit = {
434scope:recipient = {
435NOT = {
435is_rival_of = scope:actor
}
436NOT = {
436is_enemy_of = scope:actor
}
437OR = {
438any_rival = {
439OR = {
440is_rival_of = scope:actor
441is_enemy_of = scope:actor
}
}
444any_enemy = {
445OR = {
446is_rival_of = scope:actor
447is_enemy_of = scope:actor
}
}
}
}
}
453add = {
454desc = "DIPLOREASON_THE_ENEMY_OF_MY_ENEMY" Is the Enemy of their Enemies
455value = 100
}
}
458if = {
459limit = {
460scope:recipient = {
461is_enemy_of = scope:actor
}
}
464add = {
465desc = "game_concept_rival_enemy" Enemy
466value = -100
}
}
469add = {
470desc = "DIPLOMATIC_REPUTATION" Diplomatic Reputation
471value = {
472value = scope:actor.modifier:diplomatic_reputation
473multiply = 3
}
}
476add = {
477desc = "THEIR_OPINION_TOOLTIP" Their opinion of us
478value = "scope:recipient.opinion(scope:actor)"
479if = {
480limit = {
480scope:recipient.opinion(scope:actor) > 0
}
481divide = 4
}
}
484if = {
485limit = {
485scope:actor.culture.language = scope:recipient.culture.language
}
486add = {
487desc = "UPKEEP_SAME_LANGUAGE" Same Language
488value = 25
}
}
491add = {
492desc = "game_concept_trust" Trust
493scope:recipient = {
494value = "trust(scope:actor)"
495divide = 5
}
}
}