Advertisement
Guest User

Untitled

a guest
Jun 5th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.26 KB | None | 0 0
  1. faction_true_cognatic_succession = {
  2. type = liege_titles
  3.  
  4. # Plotter scope
  5. potential = {
  6. is_ruler = yes
  7. independent = no
  8. is_landed = yes
  9. is_adult = yes
  10. NOT = { trait = incapable }
  11. liege = {
  12. is_feudal = yes
  13. OR = {
  14. primary_title = { is_tribal_type_title = no }
  15. NOT = { culture = ROOT }
  16. NOT = { religion = ROOT }
  17. }
  18. OR = {
  19. NOT = { religion_group = pagan_group }
  20. is_reformed_religion = yes
  21. }
  22. }
  23. primary_title = { higher_tier_than = BARON }
  24.  
  25. NOT = { in_faction = faction_succ_primogeniture }
  26. NOT = { in_faction = faction_succ_feudal_elective }
  27. NOT = { in_faction = faction_succ_gavelkind }
  28. NOT = { in_faction = faction_agnatic_succession }
  29.  
  30. OR = {
  31. # Is not affected by a Crown Law title
  32. NOT = {
  33. crownlaw_title = {
  34. always = yes
  35. }
  36. }
  37.  
  38. # The Crown Law title holder is my liege
  39. crownlaw_title = {
  40. holder_scope = {
  41. ROOT = {
  42. liege = {
  43. character = PREVPREV
  44. }
  45. }
  46. }
  47. }
  48.  
  49. # The Crown Law title allows vassal infighting
  50. crownlaw_title = {
  51. NOT = {
  52. OR = {
  53. has_law = centralization_2
  54. has_law = centralization_3
  55. has_law = centralization_4
  56. }
  57. }
  58. }
  59. }
  60. }
  61.  
  62. # Target scope
  63. allow = {
  64. OR = {
  65. is_primary_holder_title = yes
  66. higher_tier_than = DUKE
  67. }
  68. NOT = { has_law = true_cognatic_succession }
  69. OR = {
  70. has_law = agnatic_succession
  71. has_law = cognatic_succession
  72. }
  73. holder_scope = {
  74. NOT = {
  75. any_war = {
  76. war_title = ROOT
  77. using_cb = change_true_cognatic_succession_law
  78. }
  79. }
  80.  
  81. NOT = {
  82. reverse_has_opinion_modifier = {
  83. who = FROM
  84. modifier = opinion_coerced_into_leaving_faction
  85. }
  86. }
  87. }
  88. }
  89.  
  90. # AI creation weight
  91. chance = {
  92. factor = 1
  93.  
  94. modifier = {
  95. factor = 0
  96. FROM = { prisoner = yes }
  97. }
  98.  
  99. modifier = {
  100. factor = 0
  101. holder_scope = {
  102. any_spouse = { character = FROM }
  103. }
  104. }
  105.  
  106. modifier = {
  107. factor = 0
  108. current_heir = {
  109. character = FROM
  110. }
  111. }
  112.  
  113. modifier = {
  114. factor = 0
  115. NOT = { would_be_heir_under_law = { who = FROM law = true_cognatic_succession } }
  116. }
  117.  
  118. modifier = {
  119. factor = 0
  120. FROM = {
  121. OR = {
  122. AND = {
  123. NOT = { leads_faction = faction_true_cognatic_succession }
  124. opinion = { who = LIEGE value = 50 }
  125. }
  126. AND = {
  127. leads_faction = faction_true_cognatic_succession
  128. opinion = { who = LIEGE value = 75 }
  129. }
  130. }
  131. }
  132. }
  133.  
  134. modifier = {
  135. factor = 0
  136. FROM = { preparing_invasion = yes }
  137. }
  138.  
  139. modifier = {
  140. factor = 0.2
  141. FROM = { opinion = { who = LIEGE value = 25 } }
  142. }
  143.  
  144. modifier = {
  145. factor = 1.5
  146. NOT = { FROM = { opinion = { who = LIEGE value = 0 } } }
  147. }
  148. modifier = {
  149. factor = 2.0
  150. NOT = { FROM = { opinion = { who = LIEGE value = -50 } } }
  151. }
  152. modifier = {
  153. factor = 4.0
  154. NOT = { FROM = { opinion = { who = LIEGE value = -75 } } }
  155. }
  156. modifier = {
  157. factor = 0.01
  158. FROM = { trait = content }
  159. }
  160. modifier = {
  161. factor = 0.01
  162. FROM = { trait = imbecile }
  163. }
  164. modifier = {
  165. factor = 0.1
  166. FROM = { trait = inbred }
  167. }
  168. modifier = {
  169. factor = 0.1
  170. FROM = { trait = craven }
  171. }
  172. modifier = {
  173. factor = 0.2
  174. FROM = { trait = slow }
  175. }
  176. modifier = {
  177. factor = 0.5
  178. FROM = { trait = kind }
  179. }
  180. modifier = {
  181. factor = 0.5
  182. FROM = { trait = charitable }
  183. }
  184. modifier = {
  185. factor = 0.5
  186. FROM = { trait = honest }
  187. }
  188. modifier = {
  189. factor = 0.75
  190. FROM = { trait = humble }
  191. }
  192. modifier = {
  193. factor = 0.75
  194. FROM = { trait = just }
  195. }
  196. modifier = {
  197. factor = 1.5
  198. FROM = { trait = proud }
  199. }
  200. modifier = {
  201. factor = 1.5
  202. FROM = { trait = brave }
  203. }
  204. modifier = {
  205. factor = 1.5
  206. FROM = { trait = arbitrary }
  207. }
  208. modifier = {
  209. factor = 2.0
  210. FROM = { trait = envious }
  211. }
  212. modifier = {
  213. factor = 2.0
  214. FROM = { trait = greedy }
  215. }
  216. modifier = {
  217. factor = 2.0
  218. FROM = { trait = impaler }
  219. }
  220. modifier = {
  221. factor = 2.0
  222. FROM = { trait = deceitful }
  223. }
  224. modifier = {
  225. factor = 4.0
  226. FROM = { trait = ambitious }
  227. }
  228. modifier = {
  229. factor = 8.0
  230. FROM = { is_female = yes }
  231. }
  232. modifier = {
  233. factor = 0.5
  234. FROM = { is_female = no }
  235. }
  236. }
  237.  
  238. # AI membership weight: ROOT is the prospective member. FROM is the faction leader. FROMFROM is the target title or character.
  239. membership = {
  240. factor = 1
  241.  
  242. modifier = {
  243. factor = 0
  244. OR = {
  245. prisoner = yes
  246. trait = incapable
  247. is_adult = no
  248. is_landed = no
  249. preparing_invasion = yes
  250. }
  251. }
  252.  
  253. modifier = {
  254. factor = 0
  255. FROMFROM = {
  256. current_heir = {
  257. character = ROOT
  258. }
  259. }
  260. }
  261.  
  262. modifier = {
  263. factor = 0
  264. OR = {
  265. in_faction = faction_succ_feudal_elective
  266. in_faction = faction_succ_primogeniture
  267. in_faction = faction_succ_gavelkind
  268. }
  269. }
  270.  
  271. modifier = {
  272. factor = 0
  273. has_character_modifier = faction_succ_seniority_ultimatum_timer
  274. }
  275.  
  276.  
  277. modifier = {
  278. factor = 0
  279. has_opinion_modifier = {
  280. who = LIEGE
  281. modifier = opinion_coerced_into_leaving_faction
  282. }
  283. }
  284.  
  285. modifier = {
  286. factor = 0
  287. OR = {
  288. AND = {
  289. NOT = { in_faction = faction_true_cognatic_succession }
  290. opinion = { who = LIEGE value = 50 }
  291. }
  292. AND = {
  293. in_faction = faction_true_cognatic_succession
  294. opinion = { who = LIEGE value = 75 }
  295. }
  296. }
  297. NOT = {
  298. has_opinion_modifier = {
  299. who = FROM
  300. modifier = opinion_coerced_into_joining_faction
  301. }
  302. }
  303. }
  304.  
  305. # Try to exclude people who should rather support a claimant
  306. modifier = {
  307. factor = 0
  308. FROM = { # Remember: the faction leader is also the person who would inherit under this law
  309. OR = {
  310. NOT = { culture = ROOT }
  311. NOT = { religion = ROOT }
  312. }
  313. liege = {
  314. any_demesne_title = {
  315. OR = {
  316. is_primary_holder_title = yes
  317. higher_tier_than = DUKE
  318. }
  319. ROOT = {
  320. primary_title = {
  321. de_jure_liege_or_above = PREVPREV
  322. }
  323. }
  324. any_claimant = {
  325. culture = ROOT
  326. religion = ROOT
  327. }
  328. }
  329. }
  330. }
  331. NOT = {
  332. has_opinion_modifier = {
  333. who = FROM
  334. modifier = opinion_coerced_into_joining_faction
  335. }
  336. }
  337. }
  338. modifier = {
  339. factor = 10000
  340. has_opinion_modifier = {
  341. who = FROM
  342. modifier = opinion_coerced_into_joining_faction
  343. }
  344. }
  345.  
  346. modifier = {
  347. factor = 0.2
  348. opinion = { who = LIEGE value = 25 }
  349. }
  350.  
  351. modifier = {
  352. factor = 0.01
  353. trait = content
  354. }
  355. modifier = {
  356. factor = 0.01
  357. trait = imbecile
  358. }
  359. modifier = {
  360. factor = 0.1
  361. trait = inbred
  362. }
  363. modifier = {
  364. factor = 0.1
  365. trait = craven
  366. }
  367. modifier = {
  368. factor = 0.2
  369. trait = slow
  370. }
  371. modifier = {
  372. factor = 0.5
  373. trait = kind
  374. }
  375. modifier = {
  376. factor = 0.5
  377. trait = charitable
  378. }
  379. modifier = {
  380. factor = 0.5
  381. trait = honest
  382. }
  383. modifier = {
  384. factor = 0.75
  385. trait = humble
  386. }
  387. modifier = {
  388. factor = 0.75
  389. trait = just
  390. }
  391. modifier = {
  392. factor = 1.5
  393. trait = proud
  394. }
  395. modifier = {
  396. factor = 1.5
  397. trait = brave
  398. }
  399. modifier = {
  400. factor = 1.5
  401. trait = arbitrary
  402. }
  403. modifier = {
  404. factor = 2.0
  405. trait = envious
  406. }
  407. modifier = {
  408. factor = 2.0
  409. trait = greedy
  410. }
  411. modifier = {
  412. factor = 2.0
  413. trait = impaler
  414. }
  415. modifier = {
  416. factor = 2.0
  417. trait = deceitful
  418. }
  419. modifier = {
  420. factor = 4.0
  421. trait = ambitious
  422. }
  423. modifier = {
  424. factor = 8.0
  425. FROM = { is_female = yes }
  426. }
  427. modifier = {
  428. factor = 0.5
  429. FROM = { is_female = no }
  430. }
  431. modifier = {
  432. factor = 8
  433. would_be_heir_under_law = { who = FROM law = true_cognatic_succession }
  434. }
  435. }
  436.  
  437. success = {
  438. has_law = true_cognatic_succession
  439. }
  440.  
  441. abort = {
  442. always = no # Factions will abort if the Potential or Allow triggers are no longer valid
  443. }
  444.  
  445. abort_effect = {
  446. }
  447.  
  448. effect = {
  449. FROM = {
  450. any_faction_backer = {
  451. faction = faction_true_cognatic_succession
  452. reverse_opinion = {
  453. modifier = opinion_grateful
  454. who = FROM
  455. years = 5
  456. }
  457. }
  458. }
  459. }
  460. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement