Guest User

bur

a guest
Apr 5th, 2016
1,541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. # Ruler of Burgundy Dies
  2. country_event = {
  3. id = flavor_bur.1
  4. title = "flavor_bur.EVTNAME1"
  5. desc = "flavor_bur.EVTDESC1"
  6. picture = DEATH_OF_HEIR_eventPicture
  7.  
  8. major = yes
  9.  
  10. trigger = {
  11. tag = BUR
  12. ai = yes
  13. was_player = no
  14. NOT = { has_country_flag = burgundian_succession_crisis }
  15. is_at_war = yes
  16. is_subject = no
  17. is_emperor = no
  18. government = monarchy
  19. has_regency = no
  20. is_female = no
  21. NOT = { is_year = 1500 }
  22. capital_scope = {
  23. continent = europe
  24. }
  25. FRA = {
  26. exists = yes
  27. is_subject = no
  28. num_of_cities = 8
  29. is_neighbor_of = BUR
  30. }
  31. OR = {
  32. emperor = {
  33. exists = yes
  34. NOT = { war_with = FRA }
  35. }
  36. emperor = {
  37. exists = no
  38. }
  39. }
  40. }
  41.  
  42. mean_time_to_happen = {
  43. months = 500
  44. modifier = {
  45. factor = 1.1
  46. luck = yes
  47. }
  48. modifier = {
  49. factor = 0.75
  50. has_heir = no
  51. }
  52. modifier = {
  53. factor = 0.75
  54. is_monarch_leader = yes
  55. }
  56. modifier = {
  57. factor = 0.75
  58. is_heir_leader = yes
  59. }
  60. modifier = {
  61. factor = 0.85
  62. NOT = { war_score = 0 }
  63. }
  64. modifier = {
  65. factor = 0.75
  66. NOT = { war_score = -25 }
  67. }
  68. modifier = {
  69. factor = 0.75
  70. NOT = { war_score = -50 }
  71. }
  72. modifier = {
  73. factor = 0.5
  74. NOT = { war_score = -75 }
  75. }
  76. }
  77.  
  78. immediate = {
  79. hidden_effect = {
  80. set_country_flag = burgundian_succession_crisis
  81. add_ruler_modifier = {
  82. name = burgundian_succession_crisis
  83. }
  84.  
  85. #GO THROUGH AND CHECK FOR ELIGIBLE RECIPIENTS. France can only get second part by being emperor.
  86. #Emperor?
  87. if = {
  88. limit = {
  89. emperor = {
  90. exists = yes
  91. num_of_cities = 4
  92. }
  93. }
  94. set_country_flag = bur_emperor_eligible
  95. }
  96. #Any HRE monarchy married to BUR? SPA/CAS? Emperor can trigger this one, too.
  97. if = {
  98. limit = {
  99. any_country = {
  100. marriage_with = ROOT
  101. num_of_cities = 4
  102. NOT = {
  103. tag = FRA
  104. }
  105. OR = {
  106. is_part_of_hre = yes
  107. tag = SPA
  108. AND = {
  109. tag = CAS
  110. SPA = {
  111. exists = no
  112. }
  113. }
  114. }
  115. }
  116. }
  117. set_country_flag = bur_marriage_eligible
  118. }
  119. if = {
  120. limit = {
  121. SPA = {
  122. exists = yes
  123. num_of_cities = 6
  124. }
  125. }
  126. set_country_flag = bur_spain_eligible
  127. set_country_flag = bur_spain_spa
  128. }
  129. if = {
  130. limit = {
  131. SPA = {
  132. exists = no
  133. }
  134. CAS = {
  135. num_of_cities = 6
  136. }
  137. }
  138. set_country_flag = bur_spain_eligible
  139. set_country_flag = bur_spain_cas
  140. }
  141. #DONE CHECKING FOR ELIGIBILITY
  142.  
  143. #ROLL FOR WHO GETS THE SECOND PART
  144. #Every possibility
  145. if = {
  146. limit = {
  147. has_country_flag = bur_emperor_eligible
  148. has_country_flag = bur_marriage_eligible
  149. has_country_flag = bur_spain_eligible
  150. }
  151. random_list = {
  152. 70 = {
  153. set_country_flag = bur_marriage_inherits
  154. }
  155. 10 = {
  156. set_country_flag = bur_emperor_inherits
  157. }
  158. 20 = {
  159. set_country_flag = bur_spain_inherits
  160. }
  161. }
  162. }
  163. #No emperor
  164. if = {
  165. limit = {
  166. NOT = { has_country_flag = bur_emperor_eligible }
  167. has_country_flag = bur_marriage_eligible
  168. has_country_flag = bur_spain_eligible
  169. }
  170. random_list = {
  171. 65 = {
  172. set_country_flag = bur_marriage_inherits
  173. }
  174. 35 = {
  175. set_country_flag = bur_spain_inherits
  176. }
  177. }
  178. }
  179. #No marriage
  180. if = {
  181. limit = {
  182. has_country_flag = bur_emperor_eligible
  183. NOT = { has_country_flag = bur_marriage_eligible }
  184. has_country_flag = bur_spain_eligible
  185. }
  186. random_list = {
  187. 70 = {
  188. set_country_flag = bur_emperor_inherits
  189. }
  190. 30 = {
  191. set_country_flag = bur_spain_inherits
  192. }
  193. }
  194. }
  195. #No Spain
  196. if = {
  197. limit = {
  198. has_country_flag = bur_emperor_eligible
  199. has_country_flag = bur_marriage_eligible
  200. NOT = { has_country_flag = bur_spain_eligible }
  201. }
  202. random_list = {
  203. 70 = {
  204. set_country_flag = bur_marriage_inherits
  205. }
  206. 30 = {
  207. set_country_flag = bur_emperor_inherits
  208. }
  209. }
  210. }
  211. #No emperor or marriage
  212. if = {
  213. limit = {
  214. NOT = { has_country_flag = bur_emperor_eligible }
  215. NOT = { has_country_flag = bur_marriage_eligible }
  216. has_country_flag = bur_spain_eligible
  217. }
  218. set_country_flag = bur_spain_inherits
  219. }
  220. #No emperor or Spain
  221. if = {
  222. limit = {
  223. NOT = { has_country_flag = bur_emperor_eligible }
  224. has_country_flag = bur_marriage_eligible
  225. NOT = { has_country_flag = bur_spain_eligible }
  226. }
  227. set_country_flag = bur_marriage_inherits
  228. }
  229. #No marriage or Spain
  230. if = {
  231. limit = {
  232. has_country_flag = bur_emperor_eligible
  233. NOT = { has_country_flag = bur_marriage_eligible }
  234. NOT = { has_country_flag = bur_spain_eligible }
  235. }
  236. set_country_flag = bur_emperor_inherits
  237. }
  238. #No possible inheritor
  239. if = {
  240. limit = {
  241. NOT = { has_country_flag = bur_emperor_eligible }
  242. NOT = { has_country_flag = bur_marriage_eligible }
  243. NOT = { has_country_flag = bur_spain_eligible }
  244. }
  245. set_country_flag = bur_retains_independence
  246. }
  247. #DONE CHOOSING INHERITANCE RECEPIENT
  248. #CHOOSE WHICH MARRIAGE INHERITS
  249. if = {
  250. limit = {
  251. has_country_flag = bur_marriage_inherits
  252. }
  253. if = {
  254. limit = {
  255. emperor = {
  256. marriage_with = ROOT
  257. }
  258. emperor = {
  259. num_of_cities = 8
  260. }
  261. }
  262. emperor = {
  263. set_country_flag = bur_marriage_successor
  264. }
  265. }
  266. if = {
  267. limit = {
  268. NOT = {
  269. any_country = {
  270. has_country_flag = bur_marriage_successor
  271. }
  272. }
  273. }
  274. random_country = {
  275. limit = {
  276. marriage_with = ROOT
  277. OR = {
  278. is_part_of_hre = yes
  279. AND = {
  280. tag = CAS
  281. SPA = {
  282. exists = no
  283. }
  284. }
  285. tag = SPA
  286. }
  287. num_of_cities = 4
  288. NOT = { tag = FRA }
  289. }
  290. set_country_flag = bur_marriage_successor
  291. }
  292. }
  293. if = {
  294. limit = {
  295. NOT = {
  296. any_country = {
  297. OR = {
  298. is_part_of_hre = yes
  299. AND = {
  300. tag = CAS
  301. SPA = {
  302. exists = no
  303. }
  304. }
  305. tag = SPA
  306. }
  307. marriage_with = ROOT
  308. num_of_cities = 4
  309. NOT = {
  310. tag = FRA
  311. }
  312. }
  313. }
  314. }
  315. clr_country_flag = bur_marriage_inherits
  316. set_country_flag = bur_retains_independence
  317. }
  318. }
  319. #DONE CHOOSING MARRIAGE INHERITOR
  320. }
  321. }
  322.  
  323. option = {
  324. name = "flavor_bur.EVTOPTA1"
  325. if = {
  326. limit = {
  327. has_heir = yes
  328. has_female_heir = no
  329. }
  330. kill_heir = yes
  331. }
  332. tooltip = {
  333. kill_ruler = yes
  334. }
  335. hidden_effect = {
  336. define_ruler = {
  337. regency = yes
  338. }
  339. }
  340. FRA = {
  341. country_event = { id = flavor_bur.3 }
  342. }
  343. }
  344. }
Advertisement
Add Comment
Please, Sign In to add comment