
Country Interaction
Request County Privileges
We will request privileges from the Emperor in the Holy Roman Empire, allowing us to either receive the ability to enact Margraviate or Landgraviate.
MonarchyGovernment TypepotentialDefinitionin_game/common/country_interactions/hre.txt:1268
1269type = diplomacy
1270category = CATEGORY_HRE_ACTIONS
1271ai_limit_per_check = 1
1272potential = {
1273scope:actor = {
1274NOT = {
1274has_reform = government_reform:margraviate
}
1275NOT = {
1275has_reform = government_reform:landgraviate
}
1277num_open_reform_slots > 0
}
}
1280allow = {
}
1288select_trigger = {
1289looking_for_a = country
1290target_flag = recipient
1291name = "choose_country" Choose the Country:
1292column = {
1293data = name
}
1298enabled = {
}
}
1301select_trigger = {
1302looking_for_a = government_reform
1303interaction_source_list = {
1304government_reform:margraviate = {
1305add_to_list = source
}
1307government_reform:landgraviate = {
1308add_to_list = source
}
}
1311cache_interaction_source_list = yes
1312target_flag = target
1313name = "choose_government_reform" Choose the Government Reform:
1314column = {
1315data = name
}
1317visible = {
}
1319enabled = {
1320is_allowed_for = scope:actor
}
}
1323effect = {
1324scope:actor = {
1327country = scope:recipient
}
1330add_opinion = {
1331target = scope:recipient
1332modifier = opinion_granted_country_privileges
}
1334if = {
1335limit = {
1335exists = scope:target
}
1336add_reform = scope:target
}
}
}
1340ai_will_do = {
1341scope:actor = {
1341add = ai_spam_protection
}
1343add = {
1344desc = "USEFULNESS_OF_GOVERNMENT_REFORM"
1345value = "scope:target.modifier_utility(scope:actor)"
}
1348add = {
1349desc = "[gold|e]"
1350value = scope:actor.gold
}
1356add = {
1357desc = "TARGET_ACCEPTANCE"
1358value = "scope:actor.country_interaction_acceptance(country_interaction:request_county_privileges|scope:recipient)"
}
}
1361accept = {
1362subtract = {
1363desc = "VOTE_BASE_VALUE" Base Value
1364value = 100
}
1366add = {
1367desc = "THEIR_OPINION_TOOLTIP" Their opinion of us
1368value = "scope:recipient.opinion(scope:actor)"
1369if = {
1370limit = {
1371scope:recipient = {
1372opinion(scope:actor) > 0
}
}
1375divide = 4
}
1377else = {
1378divide = 2
}
}
1381add = {
1382desc = "DIPLOMATIC_REPUTATION" Diplomatic Reputation
1383value = {
1384value = scope:actor.modifier:diplomatic_reputation
1385multiply = 3
}
}
1388if = {
1394add = {
1395desc = "HAS_ALLIANCE" Alliance
1396value = 25
}
}
1399if = {
1400limit = {
1401scope:recipient = {
1401is_rival_of = scope:actor
}
}
1403add = {
1404desc = "game_concept_rival" Rival
1405value = -1000
}
}
1408if = {
1409limit = {
1410scope:recipient = {
1410is_enemy_of = scope:actor
}
}
1412add = {
1413desc = "game_concept_rival_enemy" Enemy
1414value = -100
}
}
1417add = {
1418desc = "game_concept_trust" Trust
1419scope:recipient = {
1420value = "trust(scope:actor)"
1421divide = 5
}
}
1424if = {
1425limit = {
1426scope:recipient = {
1427at_war = yes
}
}
1430add = {
1431desc = "IS_AT_WAR" Is at War
1432value = -1000
}
}
}