Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. form_the_hre_early = {
  2. only_independent = yes
  3. is_high_prio = yes
  4. ai_check_interval = 24
  5.  
  6. potential = {
  7. is_playable = yes
  8. conditional_tooltip = {
  9. trigger = {
  10. is_alternate_start = no
  11. }
  12. NOR = {
  13. has_global_flag = charlemagne_hre
  14. is_title_active = e_hre
  15. }
  16. }
  17. NOT = { has_global_flag = rome_restored }
  18. independent = yes
  19. OR = {
  20. religion = catholic
  21. religion = fraticelli
  22. }
  23. NOT = { has_landed_title = e_byzantium }
  24. NOT = {
  25. has_alternate_start_parameter = { key = religion_names value = random }
  26. }
  27. e_hre = {
  28. has_holder = no
  29. }
  30. }
  31. allow = {
  32. is_adult = yes
  33. prisoner = no
  34. NOT = { trait = incapable }
  35. prestige = 1000
  36. realm_size = 220
  37. conditional_tooltip = {
  38. trigger = {
  39. is_alternate_start = no
  40. }
  41. custom_tooltip = {
  42. text = form_the_hre_early_tooltip_1
  43. hidden_tooltip = {
  44. OR = {
  45. has_landed_title = k_italy
  46. has_landed_title = e_italy
  47. }
  48. }
  49. }
  50. custom_tooltip = {
  51. text = form_the_hre_early_tooltip_2
  52. hidden_tooltip = {
  53. any_demesne_title = {
  54. OR = {
  55. title = e_france
  56. title = e_germany
  57. title = e_britannia
  58. title = e_spain
  59. AND = {
  60. tier = KING
  61. NOT = { title = k_italy }
  62. OR = {
  63. empire = { title = e_france }
  64. empire = { title = e_germany }
  65. empire = { title = e_britannia }
  66. empire = { title = e_spain }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
  73. custom_tooltip = {
  74. text = form_the_hre_early_tooltip_3
  75. hidden_tooltip = {
  76. OR = {
  77. has_landed_title = e_italy
  78. e_italy = { has_holder = no }
  79. e_italy = { holder_scope = { NOT = { religion_group = christian } } }
  80. }
  81. OR = {
  82. has_landed_title = e_germany
  83. e_germany = { has_holder = no }
  84. e_germany = { holder_scope = { NOT = { religion_group = christian } } }
  85. }
  86. OR = {
  87. has_landed_title = e_france
  88. e_france = { has_holder = no }
  89. e_france = { holder_scope = { NOT = { religion_group = christian } } }
  90. }
  91. OR = {
  92. has_landed_title = e_spain
  93. e_spain = { has_holder = no }
  94. e_spain = { holder_scope = { NOT = { religion_group = christian } } }
  95. }
  96. OR = {
  97. has_landed_title = e_britannia
  98. e_britannia = { has_holder = no }
  99. e_britannia = { holder_scope = { NOT = { religion_group = christian } } }
  100. }
  101. }
  102. }
  103. }
  104. conditional_tooltip = {
  105. trigger = {
  106. ai = no
  107. }
  108. AND = {
  109. religion_head = {
  110. opinion = { who = ROOT value = 25 }
  111. }
  112. scaled_wealth = 2
  113. }
  114. }
  115. }
  116. effect = {
  117. set_global_flag = charlemagne_hre
  118. activate_title = { title = e_hre status = yes }
  119. if = {
  120. limit = {
  121. ai = no
  122. }
  123. scaled_wealth = -2
  124. }
  125. if = {
  126. limit = { has_nickname = no }
  127. give_nickname = nick_the_great
  128. }
  129. #Create Electors, depending on capital location:
  130. princely_elective_apply_elector_setup_effect = yes
  131. primary_title = {
  132. show_scope_change = no
  133. e_hre = {
  134. show_scope_change = no
  135. grant_title = ROOT
  136. copy_title_laws = PREV
  137. set_coa = PREV
  138. add_law = succ_hre_elective
  139. }
  140. }
  141. any_demesne_title = {
  142. limit = { tier = KING }
  143. de_jure_liege = e_hre
  144. }
  145. hidden_tooltip = {
  146. any_demesne_title = {
  147. if = {
  148. limit = { tier = EMPEROR }
  149. any_direct_de_jure_vassal_title = {
  150. de_jure_liege = e_hre
  151. }
  152. }
  153. }
  154. }
  155. any_demesne_title = {
  156. limit = {
  157. tier = EMPEROR
  158. NOT = { title = e_hre }
  159. }
  160. destroy_landed_title = THIS
  161. hidden_tooltip = { activate_title = { title = THIS status = no } }
  162. }
  163. any_demesne_title = {
  164. limit = { tier = KING }
  165. destroy_landed_title = THIS
  166. }
  167. # Give lands to the Pope
  168. if = {
  169. limit = {
  170. any_realm_title = {
  171. title = c_roma
  172. holder_scope = {
  173. OR = {
  174. ai = yes
  175. any_demesne_title = {
  176. tier = COUNT
  177. NOT = { title = c_roma }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. c_roma = {
  184. ROOT = {
  185. religion_head = {
  186. grant_title = PREVPREV
  187. }
  188. }
  189. }
  190. }
  191. if = {
  192. limit = {
  193. any_realm_title = {
  194. title = c_ravenna
  195. holder_scope = {
  196. OR = {
  197. ai = yes
  198. any_demesne_title = {
  199. tier = COUNT
  200. NOT = { title = c_ravenna }
  201. }
  202. }
  203. }
  204. }
  205. }
  206. c_ravenna = {
  207. ROOT = {
  208. religion_head = {
  209. grant_title = PREVPREV
  210. }
  211. }
  212. }
  213. }
  214. if = {
  215. limit = {
  216. any_realm_title = {
  217. title = c_ferrara
  218. holder_scope = {
  219. OR = {
  220. ai = yes
  221. any_demesne_title = {
  222. tier = COUNT
  223. NOT = { title = c_ferrara }
  224. }
  225. }
  226. }
  227. }
  228. }
  229. c_ferrara = {
  230. ROOT = {
  231. religion_head = {
  232. grant_title = PREVPREV
  233. }
  234. }
  235. }
  236. }
  237. if = {
  238. limit = {
  239. any_realm_title = {
  240. title = c_urbino
  241. holder_scope = {
  242. OR = {
  243. ai = yes
  244. any_demesne_title = {
  245. tier = COUNT
  246. NOT = { title = c_urbino }
  247. }
  248. }
  249. }
  250. }
  251. }
  252. c_urbino = {
  253. ROOT = {
  254. religion_head = {
  255. grant_title = PREVPREV
  256. }
  257. }
  258. }
  259. }
  260. if = {
  261. limit = {
  262. any_realm_title = {
  263. title = c_spoleto
  264. holder_scope = {
  265. OR = {
  266. ai = yes
  267. any_demesne_title = {
  268. tier = COUNT
  269. NOT = { title = c_spoleto }
  270. }
  271. }
  272. }
  273. }
  274. }
  275. c_spoleto = {
  276. ROOT = {
  277. religion_head = {
  278. grant_title = PREVPREV
  279. }
  280. }
  281. }
  282. }
  283. if = {
  284. limit = {
  285. any_realm_title = {
  286. title = c_perugia
  287. holder_scope = {
  288. OR = {
  289. ai = yes
  290. any_demesne_title = {
  291. tier = COUNT
  292. NOT = { title = c_perugia }
  293. }
  294. }
  295. }
  296. }
  297. }
  298. c_perugia = {
  299. ROOT = {
  300. religion_head = {
  301. grant_title = PREVPREV
  302. }
  303. }
  304. }
  305. }
  306. e_byzantium = {
  307. show_scope_change = no
  308. holder_scope = {
  309. show_scope_change = no
  310. opinion = {
  311. who = ROOT
  312. modifier = opinion_unhappy
  313. months = 1200
  314. }
  315. hidden_tooltip = {
  316. k_papal_state = {
  317. holder_scope = {
  318. reverse_opinion = {
  319. who = PREVPREV
  320. modifier = opinion_unhappy
  321. months = 1200
  322. }
  323. }
  324. }
  325. }
  326. }
  327. }
  328. if = {
  329. limit = {
  330. OR = {
  331. NOT = { has_character_flag = is_charlemagne }
  332. has_character_flag = charlemagne_coronation
  333. }
  334. }
  335. add_artifact = crown_hre
  336. hidden_tooltip = { narrative_event = { id = CM.510 } } # Spread the news
  337. }
  338. if = {
  339. limit = {
  340. has_character_flag = is_charlemagne
  341. NOT = { has_character_flag = charlemagne_coronation }
  342. }
  343. hidden_tooltip = { narrative_event = { id = CM.1500 } } # Charlemagne coronation
  344. }
  345. if = {
  346. limit = { ai = no }
  347. set_character_flag = achievement_holy_and_roman
  348. }
  349. chronicle = {
  350. entry = CHRONICLE_FOUNDED_HRE
  351. picture = GFX_evt_coronation
  352. }
  353. }
  354. revoke_allowed = {
  355. always = no
  356. }
  357. ai_will_do = {
  358. factor = 1
  359. }
  360. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement