Advertisement
t_a_w

Sensible law decisions for AI

Oct 22nd, 2015
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.71 KB | None | 0 0
  1. # common/laws/demesne_laws.txt
  2. laws = {
  3. centralization_0 = {
  4. group = centralization
  5. default = yes
  6. allow = {
  7. OR = {
  8. has_law = centralization_1
  9. AND = {
  10. NOT = {
  11. has_law = centralization_0
  12. }
  13. NOT = {
  14. has_law = centralization_1
  15. }
  16. NOT = {
  17. has_law = centralization_2
  18. }
  19. NOT = {
  20. has_law = centralization_3
  21. }
  22. NOT = {
  23. has_law = centralization_4
  24. }
  25. }
  26. }
  27. }
  28. potential = {
  29. higher_tier_than = count
  30. is_nomadic = no
  31. }
  32. revoke_allowed = {
  33. always = no
  34. }
  35. ai_will_do = {
  36. factor = 1
  37. modifier = {
  38. factor = 0.8
  39. }
  40. modifier = {
  41. factor = 0
  42. NOT = {
  43. OR = {
  44. AND = {
  45. has_law = centralization_1
  46. over_vassal_limit = -1
  47. over_max_demesne_size = -1
  48. }
  49. AND = {
  50. has_law = centralization_2
  51. over_vassal_limit = -6
  52. over_max_demesne_size = -2
  53. }
  54. AND = {
  55. has_law = centralization_3
  56. over_vassal_limit = -11
  57. over_max_demesne_size = -3
  58. }
  59. AND = {
  60. has_law = centralization_4
  61. over_vassal_limit = -16
  62. over_max_demesne_size = -4
  63. }
  64. }
  65. }
  66. }
  67. }
  68. ai_will_revoke = {
  69. factor = 0
  70. }
  71. effect = {
  72. hidden_tooltip = {
  73. revoke_law = centralization_0
  74. revoke_law = centralization_1
  75. revoke_law = centralization_2
  76. revoke_law = centralization_3
  77. revoke_law = centralization_4
  78. }
  79. }
  80. vassal_limit = 10
  81. }
  82. centralization_1 = {
  83. group = centralization
  84. allow = {
  85. OR = {
  86. has_law = centralization_0
  87. has_law = centralization_2
  88. }
  89. OR = {
  90. OR = {
  91. has_law = tribal_organization_1
  92. has_law = tribal_organization_2
  93. has_law = tribal_organization_3
  94. has_law = tribal_organization_4
  95. }
  96. holder_scope = {
  97. is_tribal = no
  98. }
  99. }
  100. }
  101. potential = {
  102. higher_tier_than = count
  103. is_nomadic = no
  104. }
  105. revoke_allowed = {
  106. always = no
  107. }
  108. ai_will_do = {
  109. factor = 1
  110. modifier = {
  111. factor = 0.9
  112. }
  113. modifier = {
  114. factor = 0
  115. NOT = {
  116. OR = {
  117. AND = {
  118. has_law = centralization_0
  119. over_vassal_limit = -1
  120. over_max_demesne_size = 1
  121. }
  122. AND = {
  123. has_law = centralization_2
  124. over_vassal_limit = 1
  125. over_max_demesne_size = -1
  126. }
  127. AND = {
  128. has_law = centralization_3
  129. over_vassal_limit = 6
  130. over_max_demesne_size = -2
  131. }
  132. AND = {
  133. has_law = centralization_4
  134. over_vassal_limit = 11
  135. over_max_demesne_size = -3
  136. }
  137. }
  138. }
  139. }
  140. }
  141. ai_will_revoke = {
  142. factor = 0
  143. }
  144. effect = {
  145. hidden_tooltip = {
  146. revoke_law = centralization_0
  147. revoke_law = centralization_1
  148. revoke_law = centralization_2
  149. revoke_law = centralization_3
  150. revoke_law = centralization_4
  151. }
  152. }
  153. vassal_limit = 5
  154. demesne_size = 1
  155. }
  156. centralization_2 = {
  157. group = centralization
  158. allow = {
  159. OR = {
  160. has_law = centralization_1
  161. has_law = centralization_3
  162. }
  163. OR = {
  164. OR = {
  165. has_law = tribal_organization_2
  166. has_law = tribal_organization_3
  167. has_law = tribal_organization_4
  168. }
  169. holder_scope = {
  170. is_tribal = no
  171. }
  172. }
  173. }
  174. potential = {
  175. higher_tier_than = count
  176. is_nomadic = no
  177. }
  178. revoke_allowed = {
  179. always = no
  180. }
  181. ai_will_do = {
  182. factor = 1
  183. modifier = {
  184. factor = 0
  185. NOT = {
  186. OR = {
  187. AND = {
  188. has_law = centralization_0
  189. over_vassal_limit = -6
  190. over_max_demesne_size = 2
  191. }
  192. AND = {
  193. has_law = centralization_1
  194. over_vassal_limit = -1
  195. over_max_demesne_size = 1
  196. }
  197. AND = {
  198. has_law = centralization_3
  199. over_vassal_limit = 1
  200. over_max_demesne_size = -1
  201. }
  202. AND = {
  203. has_law = centralization_4
  204. over_vassal_limit = 6
  205. over_max_demesne_size = -2
  206. }
  207. }
  208. }
  209. }
  210. }
  211. ai_will_revoke = {
  212. factor = 0
  213. }
  214. effect = {
  215. hidden_tooltip = {
  216. revoke_law = centralization_0
  217. revoke_law = centralization_1
  218. revoke_law = centralization_2
  219. revoke_law = centralization_3
  220. revoke_law = centralization_4
  221. }
  222. }
  223. vassal_limit = 0
  224. demesne_size = 2
  225. }
  226. centralization_3 = {
  227. group = centralization
  228. allow = {
  229. OR = {
  230. has_law = centralization_2
  231. has_law = centralization_4
  232. }
  233. OR = {
  234. OR = {
  235. has_law = tribal_organization_3
  236. has_law = tribal_organization_4
  237. }
  238. holder_scope = {
  239. is_tribal = no
  240. }
  241. }
  242. }
  243. potential = {
  244. higher_tier_than = count
  245. is_nomadic = no
  246. }
  247. revoke_allowed = {
  248. always = no
  249. }
  250. ai_will_do = {
  251. factor = 1
  252. modifier = {
  253. factor = 0.9
  254. }
  255. modifier = {
  256. factor = 0
  257. NOT = {
  258. OR = {
  259. AND = {
  260. has_law = centralization_0
  261. over_vassal_limit = -11
  262. over_max_demesne_size = 3
  263. }
  264. AND = {
  265. has_law = centralization_1
  266. over_vassal_limit = -6
  267. over_max_demesne_size = 2
  268. }
  269. AND = {
  270. has_law = centralization_2
  271. over_vassal_limit = -1
  272. over_max_demesne_size = 1
  273. }
  274. AND = {
  275. has_law = centralization_4
  276. over_vassal_limit = 1
  277. over_max_demesne_size = -1
  278. }
  279. }
  280. }
  281. }
  282. }
  283. ai_will_revoke = {
  284. factor = 0
  285. }
  286. effect = {
  287. hidden_tooltip = {
  288. revoke_law = centralization_0
  289. revoke_law = centralization_1
  290. revoke_law = centralization_2
  291. revoke_law = centralization_3
  292. revoke_law = centralization_4
  293. }
  294. }
  295. vassal_limit = -5
  296. demesne_size = 3
  297. }
  298. centralization_4 = {
  299. group = centralization
  300. allow = {
  301. has_law = centralization_3
  302. OR = {
  303. OR = {
  304. has_law = tribal_organization_4
  305. }
  306. holder_scope = {
  307. is_tribal = no
  308. }
  309. }
  310. }
  311. potential = {
  312. higher_tier_than = count
  313. is_nomadic = no
  314. }
  315. revoke_allowed = {
  316. always = no
  317. }
  318. ai_will_do = {
  319. factor = 1
  320. modifier = {
  321. factor = 0.8
  322. }
  323. modifier = {
  324. factor = 0
  325. NOT = {
  326. OR = {
  327. AND = {
  328. has_law = centralization_0
  329. over_vassal_limit = -16
  330. over_max_demesne_size = 4
  331. }
  332. AND = {
  333. has_law = centralization_1
  334. over_vassal_limit = -11
  335. over_max_demesne_size = 3
  336. }
  337. AND = {
  338. has_law = centralization_2
  339. over_vassal_limit = -6
  340. over_max_demesne_size = 2
  341. }
  342. AND = {
  343. has_law = centralization_3
  344. over_vassal_limit = -1
  345. over_max_demesne_size = 1
  346. }
  347. }
  348. }
  349. }
  350. }
  351. ai_will_revoke = {
  352. factor = 0
  353. }
  354. effect = {
  355. hidden_tooltip = {
  356. revoke_law = centralization_0
  357. revoke_law = centralization_1
  358. revoke_law = centralization_2
  359. revoke_law = centralization_3
  360. revoke_law = centralization_4
  361. }
  362. }
  363. vassal_limit = -10
  364. demesne_size = 4
  365. }
  366. tribal_organization_0 = {
  367. group = tribal_organization
  368. default = yes
  369. unreformed_tribal_opinion = 5
  370. allow = {
  371. OR = {
  372. has_law = tribal_organization_1
  373. AND = {
  374. NOT = {
  375. has_law = tribal_organization_0
  376. }
  377. NOT = {
  378. has_law = tribal_organization_1
  379. }
  380. NOT = {
  381. has_law = tribal_organization_2
  382. }
  383. NOT = {
  384. has_law = tribal_organization_3
  385. }
  386. NOT = {
  387. has_law = tribal_organization_4
  388. }
  389. }
  390. }
  391. }
  392. potential = {
  393. holder_scope = {
  394. is_tribal = yes
  395. higher_tier_than = count
  396. }
  397. }
  398. revoke_allowed = {
  399. always = no
  400. }
  401. ai_will_do = {
  402. factor = 1
  403. modifier = {
  404. factor = 0
  405. has_law = tribal_organization_1
  406. holder_scope = {
  407. NOT = {
  408. any_vassal = {
  409. is_tribal = yes
  410. dislike_tribal_organization = yes
  411. NOT = {
  412. opinion = {
  413. who = liege
  414. value = 0
  415. }
  416. }
  417. }
  418. }
  419. }
  420. }
  421. modifier = {
  422. factor = 0.5
  423. has_law = tribal_organization_1
  424. dislike_tribal_organization = no
  425. }
  426. }
  427. ai_will_revoke = {
  428. factor = 0
  429. }
  430. effect = {
  431. hidden_tooltip = {
  432. revoke_law = tribal_organization_0
  433. revoke_law = tribal_organization_1
  434. revoke_law = tribal_organization_2
  435. revoke_law = tribal_organization_3
  436. revoke_law = tribal_organization_4
  437. revoke_law = tribal_contract_0
  438. revoke_law = tribal_contract_1
  439. revoke_law = tribal_contract_2
  440. revoke_law = tribal_contract_3
  441. revoke_law = tribal_tax_0
  442. revoke_law = tribal_tax_1
  443. revoke_law = tribal_tax_2
  444. revoke_law = tribal_tax_3
  445. if = {
  446. limit = {
  447. OR = {
  448. has_law = centralization_1
  449. has_law = centralization_2
  450. has_law = centralization_3
  451. has_law = centralization_4
  452. }
  453. }
  454. add_law = centralization_0
  455. }
  456. }
  457. set_allow_title_revokation = no
  458. set_allow_free_infidel_revokation = no
  459. if = {
  460. limit = {
  461. OR = {
  462. has_law = tribal_organization_1
  463. }
  464. }
  465. custom_tooltip = {
  466. text = disables_centralization_1
  467. }
  468. }
  469. if = {
  470. limit = {
  471. OR = {
  472. has_law = tribal_organization_2
  473. }
  474. }
  475. custom_tooltip = {
  476. text = disables_centralization_2
  477. }
  478. }
  479. if = {
  480. limit = {
  481. OR = {
  482. has_law = tribal_organization_3
  483. }
  484. }
  485. custom_tooltip = {
  486. text = disables_centralization_3
  487. }
  488. custom_tooltip = {
  489. text = disables_tribal_levy_laws
  490. }
  491. custom_tooltip = {
  492. text = disables_tribal_tax_laws
  493. }
  494. }
  495. if = {
  496. limit = {
  497. OR = {
  498. has_law = tribal_organization_4
  499. }
  500. }
  501. custom_tooltip = {
  502. text = disables_centralization_4
  503. }
  504. }
  505. set_tribal_vassal_levy_control = no
  506. set_tribal_vassal_tax_income = no
  507. if = {
  508. limit = {
  509. OR = {
  510. has_law = tribal_organization_4
  511. }
  512. }
  513. custom_tooltip = {
  514. text = disallows_change_government
  515. }
  516. }
  517. }
  518. }
  519. tribal_organization_1 = {
  520. group = tribal_organization
  521. unreformed_tribal_opinion = -5
  522. allow = {
  523. OR = {
  524. has_law = tribal_organization_0
  525. has_law = tribal_organization_2
  526. }
  527. }
  528. potential = {
  529. holder_scope = {
  530. is_tribal = yes
  531. higher_tier_than = count
  532. }
  533. }
  534. revoke_allowed = {
  535. always = no
  536. }
  537. ai_will_do = {
  538. factor = 1
  539. modifier = {
  540. factor = 0.5
  541. has_law = tribal_organization_0
  542. holder_scope = {
  543. any_vassal = {
  544. is_tribal = yes
  545. dislike_tribal_organization = yes
  546. NOT = {
  547. opinion = {
  548. who = liege
  549. value = 10
  550. }
  551. }
  552. }
  553. }
  554. }
  555. modifier = {
  556. factor = 0
  557. has_law = tribal_organization_2
  558. holder_scope = {
  559. NOT = {
  560. any_vassal = {
  561. is_tribal = yes
  562. dislike_tribal_organization = yes
  563. NOT = {
  564. opinion = {
  565. who = liege
  566. value = 0
  567. }
  568. }
  569. }
  570. }
  571. }
  572. }
  573. modifier = {
  574. factor = 2
  575. has_law = tribal_organization_0
  576. dislike_tribal_organization = no
  577. }
  578. modifier = {
  579. factor = 0.5
  580. has_law = tribal_organization_2
  581. dislike_tribal_organization = no
  582. }
  583. }
  584. ai_will_revoke = {
  585. factor = 0
  586. }
  587. pass_effect = {
  588. hidden_tooltip = {
  589. if = {
  590. limit = {
  591. has_law = tribal_organization_0
  592. }
  593. holder_scope = {
  594. any_vassal = {
  595. limit = {
  596. is_tribal = yes
  597. dislike_tribal_organization = yes
  598. }
  599. opinion = {
  600. who = ROOT
  601. modifier = opinion_increased_tribal_organization
  602. months = 60
  603. }
  604. }
  605. }
  606. }
  607. }
  608. }
  609. effect = {
  610. hidden_tooltip = {
  611. revoke_law = tribal_organization_0
  612. revoke_law = tribal_organization_1
  613. revoke_law = tribal_organization_2
  614. revoke_law = tribal_organization_3
  615. revoke_law = tribal_organization_4
  616. revoke_law = tribal_contract_0
  617. revoke_law = tribal_contract_1
  618. revoke_law = tribal_contract_2
  619. revoke_law = tribal_contract_3
  620. revoke_law = tribal_tax_0
  621. revoke_law = tribal_tax_1
  622. revoke_law = tribal_tax_2
  623. revoke_law = tribal_tax_3
  624. if = {
  625. limit = {
  626. OR = {
  627. has_law = centralization_2
  628. has_law = centralization_3
  629. has_law = centralization_4
  630. }
  631. }
  632. add_law = centralization_1
  633. }
  634. }
  635. set_allow_title_revokation = yes
  636. if = {
  637. limit = {
  638. OR = {
  639. has_law = tribal_organization_0
  640. }
  641. }
  642. custom_tooltip = {
  643. text = enables_centralization_1
  644. }
  645. }
  646. if = {
  647. limit = {
  648. OR = {
  649. has_law = tribal_organization_2
  650. }
  651. }
  652. custom_tooltip = {
  653. text = disables_centralization_2
  654. }
  655. }
  656. if = {
  657. limit = {
  658. OR = {
  659. has_law = tribal_organization_3
  660. }
  661. }
  662. custom_tooltip = {
  663. text = disables_centralization_3
  664. }
  665. custom_tooltip = {
  666. text = disables_tribal_levy_laws
  667. }
  668. custom_tooltip = {
  669. text = disables_tribal_tax_laws
  670. }
  671. }
  672. if = {
  673. limit = {
  674. OR = {
  675. has_law = tribal_organization_4
  676. }
  677. }
  678. custom_tooltip = {
  679. text = disables_centralization_4
  680. }
  681. }
  682. set_allow_free_infidel_revokation = no
  683. set_tribal_vassal_levy_control = no
  684. set_tribal_vassal_tax_income = no
  685. if = {
  686. limit = {
  687. OR = {
  688. has_law = tribal_organization_4
  689. }
  690. }
  691. custom_tooltip = {
  692. text = disallows_change_government
  693. }
  694. }
  695. }
  696. }
  697. tribal_organization_2 = {
  698. group = tribal_organization
  699. unreformed_tribal_opinion = -10
  700. allow = {
  701. OR = {
  702. has_law = tribal_organization_1
  703. has_law = tribal_organization_3
  704. }
  705. }
  706. potential = {
  707. holder_scope = {
  708. is_tribal = yes
  709. higher_tier_than = count
  710. }
  711. }
  712. revoke_allowed = {
  713. always = no
  714. }
  715. ai_will_do = {
  716. factor = 1
  717. modifier = {
  718. factor = 0.5
  719. has_law = tribal_organization_1
  720. holder_scope = {
  721. any_vassal = {
  722. is_tribal = yes
  723. dislike_tribal_organization = yes
  724. NOT = {
  725. opinion = {
  726. who = liege
  727. value = 5
  728. }
  729. }
  730. }
  731. }
  732. }
  733. modifier = {
  734. factor = 0
  735. has_law = tribal_organization_3
  736. holder_scope = {
  737. NOT = {
  738. any_vassal = {
  739. is_tribal = yes
  740. dislike_tribal_organization = yes
  741. NOT = {
  742. opinion = {
  743. who = liege
  744. value = 0
  745. }
  746. }
  747. }
  748. }
  749. }
  750. }
  751. modifier = {
  752. factor = 2
  753. has_law = tribal_organization_1
  754. dislike_tribal_organization = no
  755. }
  756. modifier = {
  757. factor = 0.5
  758. has_law = tribal_organization_3
  759. dislike_tribal_organization = no
  760. }
  761. }
  762. ai_will_revoke = {
  763. factor = 0
  764. }
  765. pass_effect = {
  766. hidden_tooltip = {
  767. if = {
  768. limit = {
  769. has_law = tribal_organization_1
  770. }
  771. holder_scope = {
  772. any_vassal = {
  773. limit = {
  774. is_tribal = yes
  775. dislike_tribal_organization = yes
  776. }
  777. opinion = {
  778. who = ROOT
  779. modifier = opinion_increased_tribal_organization
  780. months = 60
  781. }
  782. }
  783. }
  784. }
  785. }
  786. }
  787. effect = {
  788. hidden_tooltip = {
  789. revoke_law = tribal_organization_0
  790. revoke_law = tribal_organization_1
  791. revoke_law = tribal_organization_2
  792. revoke_law = tribal_organization_3
  793. revoke_law = tribal_organization_4
  794. revoke_law = tribal_contract_0
  795. revoke_law = tribal_contract_1
  796. revoke_law = tribal_contract_2
  797. revoke_law = tribal_contract_3
  798. revoke_law = tribal_tax_0
  799. revoke_law = tribal_tax_1
  800. revoke_law = tribal_tax_2
  801. revoke_law = tribal_tax_3
  802. if = {
  803. limit = {
  804. OR = {
  805. has_law = centralization_3
  806. has_law = centralization_4
  807. }
  808. }
  809. add_law = centralization_2
  810. }
  811. }
  812. set_allow_title_revokation = yes
  813. set_allow_free_infidel_revokation = yes
  814. if = {
  815. limit = {
  816. OR = {
  817. has_law = tribal_organization_0
  818. has_law = tribal_organization_1
  819. }
  820. }
  821. custom_tooltip = {
  822. text = enables_centralization_2
  823. }
  824. }
  825. if = {
  826. limit = {
  827. OR = {
  828. has_law = tribal_organization_3
  829. }
  830. }
  831. custom_tooltip = {
  832. text = disables_centralization_3
  833. }
  834. custom_tooltip = {
  835. text = disables_tribal_levy_laws
  836. }
  837. custom_tooltip = {
  838. text = disables_tribal_tax_laws
  839. }
  840. }
  841. if = {
  842. limit = {
  843. OR = {
  844. has_law = tribal_organization_4
  845. }
  846. }
  847. custom_tooltip = {
  848. text = disables_centralization_4
  849. }
  850. }
  851. set_tribal_vassal_levy_control = no
  852. set_tribal_vassal_tax_income = no
  853. if = {
  854. limit = {
  855. OR = {
  856. has_law = tribal_organization_4
  857. }
  858. }
  859. custom_tooltip = {
  860. text = disallows_change_government
  861. }
  862. }
  863. }
  864. }
  865. tribal_organization_3 = {
  866. group = tribal_organization
  867. unreformed_tribal_opinion = -20
  868. allow = {
  869. OR = {
  870. has_law = tribal_organization_2
  871. has_law = tribal_organization_4
  872. }
  873. }
  874. potential = {
  875. holder_scope = {
  876. is_tribal = yes
  877. higher_tier_than = count
  878. }
  879. }
  880. revoke_allowed = {
  881. always = no
  882. }
  883. ai_will_do = {
  884. factor = 1
  885. modifier = {
  886. factor = 0.5
  887. has_law = tribal_organization_2
  888. holder_scope = {
  889. any_vassal = {
  890. is_tribal = yes
  891. dislike_tribal_organization = yes
  892. NOT = {
  893. opinion = {
  894. who = liege
  895. value = 10
  896. }
  897. }
  898. }
  899. }
  900. }
  901. modifier = {
  902. factor = 0
  903. has_law = tribal_organization_4
  904. holder_scope = {
  905. NOT = {
  906. any_vassal = {
  907. is_tribal = yes
  908. dislike_tribal_organization = yes
  909. NOT = {
  910. opinion = {
  911. who = liege
  912. value = 0
  913. }
  914. }
  915. }
  916. }
  917. }
  918. }
  919. modifier = {
  920. factor = 2
  921. has_law = tribal_organization_2
  922. dislike_tribal_organization = no
  923. }
  924. modifier = {
  925. factor = 0.5
  926. has_law = tribal_organization_4
  927. dislike_tribal_organization = no
  928. }
  929. }
  930. ai_will_revoke = {
  931. factor = 0
  932. }
  933. pass_effect = {
  934. hidden_tooltip = {
  935. if = {
  936. limit = {
  937. has_law = tribal_organization_2
  938. }
  939. holder_scope = {
  940. any_vassal = {
  941. limit = {
  942. is_tribal = yes
  943. dislike_tribal_organization = yes
  944. }
  945. opinion = {
  946. who = ROOT
  947. modifier = opinion_increased_tribal_organization
  948. months = 60
  949. }
  950. }
  951. }
  952. }
  953. }
  954. }
  955. effect = {
  956. hidden_tooltip = {
  957. revoke_law = tribal_organization_0
  958. revoke_law = tribal_organization_1
  959. revoke_law = tribal_organization_2
  960. revoke_law = tribal_organization_3
  961. revoke_law = tribal_organization_4
  962. if = {
  963. limit = {
  964. OR = {
  965. has_law = centralization_4
  966. }
  967. }
  968. add_law = centralization_3
  969. }
  970. }
  971. set_allow_title_revokation = yes
  972. set_allow_free_infidel_revokation = yes
  973. set_tribal_vassal_levy_control = yes
  974. set_tribal_vassal_tax_income = yes
  975. if = {
  976. limit = {
  977. OR = {
  978. has_law = tribal_organization_0
  979. has_law = tribal_organization_1
  980. has_law = tribal_organization_2
  981. }
  982. }
  983. custom_tooltip = {
  984. text = enables_tribal_levy_laws
  985. }
  986. custom_tooltip = {
  987. text = enables_tribal_tax_laws
  988. }
  989. hidden_tooltip = {
  990. add_law = tribal_contract_0
  991. add_law = tribal_tax_0
  992. }
  993. custom_tooltip = {
  994. text = enables_centralization_3
  995. }
  996. }
  997. if = {
  998. limit = {
  999. OR = {
  1000. has_law = tribal_organization_4
  1001. }
  1002. }
  1003. custom_tooltip = {
  1004. text = disables_centralization_4
  1005. }
  1006. }
  1007. if = {
  1008. limit = {
  1009. OR = {
  1010. has_law = tribal_organization_4
  1011. }
  1012. }
  1013. custom_tooltip = {
  1014. text = disallows_change_government
  1015. }
  1016. }
  1017. }
  1018. }
  1019. tribal_organization_4 = {
  1020. group = tribal_organization
  1021. unreformed_tribal_opinion = -30
  1022. allow = {
  1023. has_law = tribal_organization_3
  1024. }
  1025. potential = {
  1026. holder_scope = {
  1027. is_tribal = yes
  1028. higher_tier_than = count
  1029. }
  1030. }
  1031. revoke_allowed = {
  1032. always = no
  1033. }
  1034. ai_will_do = {
  1035. factor = 1
  1036. modifier = {
  1037. factor = 0.5
  1038. has_law = tribal_organization_3
  1039. holder_scope = {
  1040. any_vassal = {
  1041. is_tribal = yes
  1042. dislike_tribal_organization = yes
  1043. NOT = {
  1044. opinion = {
  1045. who = liege
  1046. value = 10
  1047. }
  1048. }
  1049. }
  1050. }
  1051. }
  1052. modifier = {
  1053. factor = 2
  1054. has_law = tribal_organization_3
  1055. dislike_tribal_organization = no
  1056. }
  1057. }
  1058. ai_will_revoke = {
  1059. factor = 0
  1060. }
  1061. pass_effect = {
  1062. hidden_tooltip = {
  1063. if = {
  1064. limit = {
  1065. has_law = tribal_organization_3
  1066. }
  1067. holder_scope = {
  1068. any_vassal = {
  1069. limit = {
  1070. is_tribal = yes
  1071. dislike_tribal_organization = yes
  1072. }
  1073. opinion = {
  1074. who = ROOT
  1075. modifier = opinion_increased_tribal_organization
  1076. months = 60
  1077. }
  1078. }
  1079. }
  1080. }
  1081. }
  1082. }
  1083. effect = {
  1084. hidden_tooltip = {
  1085. revoke_law = tribal_organization_0
  1086. revoke_law = tribal_organization_1
  1087. revoke_law = tribal_organization_2
  1088. revoke_law = tribal_organization_3
  1089. revoke_law = tribal_organization_4
  1090. }
  1091. set_allow_title_revokation = yes
  1092. set_allow_free_infidel_revokation = yes
  1093. set_tribal_vassal_levy_control = yes
  1094. set_tribal_vassal_tax_income = yes
  1095. if = {
  1096. limit = {
  1097. OR = {
  1098. has_law = tribal_organization_0
  1099. has_law = tribal_organization_1
  1100. has_law = tribal_organization_2
  1101. has_law = tribal_organization_3
  1102. }
  1103. }
  1104. custom_tooltip = {
  1105. text = enables_centralization_4
  1106. }
  1107. }
  1108. if = {
  1109. limit = {
  1110. OR = {
  1111. has_law = tribal_organization_0
  1112. has_law = tribal_organization_1
  1113. has_law = tribal_organization_2
  1114. }
  1115. }
  1116. custom_tooltip = {
  1117. text = enables_tribal_levy_laws
  1118. }
  1119. custom_tooltip = {
  1120. text = enables_tribal_tax_laws
  1121. }
  1122. hidden_tooltip = {
  1123. add_law = tribal_contract_0
  1124. add_law = tribal_tax_0
  1125. }
  1126. }
  1127. if = {
  1128. limit = {
  1129. OR = {
  1130. has_law = tribal_organization_0
  1131. has_law = tribal_organization_1
  1132. has_law = tribal_organization_2
  1133. has_law = tribal_organization_3
  1134. }
  1135. }
  1136. custom_tooltip = {
  1137. text = allows_change_government
  1138. }
  1139. }
  1140. }
  1141. }
  1142. vice_royalty_0 = {
  1143. group = vice_royalty
  1144. default = yes
  1145. potential = {
  1146. higher_tier_than = king
  1147. holder_scope = {
  1148. independent = yes
  1149. is_feudal = yes
  1150. }
  1151. has_dlc = Charlemagne
  1152. }
  1153. revoke_allowed = {
  1154. always = no
  1155. }
  1156. ai_will_do = {
  1157. factor = 0
  1158. }
  1159. ai_will_revoke = {
  1160. factor = 0
  1161. }
  1162. effect = {
  1163. hidden_tooltip = {
  1164. revoke_law = vice_royalty_0
  1165. revoke_law = vice_royalty_1
  1166. revoke_law = vice_royalty_2
  1167. }
  1168. set_allow_vice_royalties = no
  1169. }
  1170. }
  1171. vice_royalty_1 = {
  1172. group = vice_royalty
  1173. potential = {
  1174. higher_tier_than = king
  1175. holder_scope = {
  1176. independent = yes
  1177. is_feudal = yes
  1178. }
  1179. has_dlc = Charlemagne
  1180. }
  1181. revoke_allowed = {
  1182. always = no
  1183. }
  1184. ai_will_do = {
  1185. factor = 2
  1186. modifier = {
  1187. factor = 0
  1188. has_law = vice_royalty_2
  1189. }
  1190. modifier = {
  1191. factor = 0
  1192. AND = {
  1193. has_law = vice_royalty_0
  1194. over_vassal_limit = -5
  1195. }
  1196. }
  1197. }
  1198. ai_will_revoke = {
  1199. factor = 0
  1200. }
  1201. effect = {
  1202. hidden_tooltip = {
  1203. revoke_law = vice_royalty_0
  1204. revoke_law = vice_royalty_1
  1205. revoke_law = vice_royalty_2
  1206. }
  1207. set_allow_vice_royalties = king
  1208. }
  1209. vassal_limit = -5
  1210. }
  1211. vice_royalty_2 = {
  1212. group = vice_royalty
  1213. potential = {
  1214. higher_tier_than = king
  1215. holder_scope = {
  1216. independent = yes
  1217. is_feudal = yes
  1218. }
  1219. has_dlc = Charlemagne
  1220. }
  1221. revoke_allowed = {
  1222. always = no
  1223. }
  1224. ai_will_do = {
  1225. factor = 3
  1226. modifier = {
  1227. factor = 0
  1228. AND = {
  1229. has_law = vice_royalty_0
  1230. over_vassal_limit = -10
  1231. }
  1232. }
  1233. modifier = {
  1234. factor = 0
  1235. AND = {
  1236. has_law = vice_royalty_1
  1237. over_vassal_limit = -5
  1238. }
  1239. }
  1240. }
  1241. ai_will_revoke = {
  1242. factor = 0
  1243. }
  1244. effect = {
  1245. hidden_tooltip = {
  1246. revoke_law = vice_royalty_0
  1247. revoke_law = vice_royalty_1
  1248. revoke_law = vice_royalty_2
  1249. }
  1250. set_allow_vice_royalties = duke
  1251. }
  1252. vassal_limit = -10
  1253. }
  1254. feudal_administration = {
  1255. group = administration
  1256. potential = {
  1257. higher_tier_than = king
  1258. holder_scope = {
  1259. independent = yes
  1260. is_feudal = yes
  1261. }
  1262. }
  1263. revoke_allowed = {
  1264. always = no
  1265. }
  1266. ai_will_do = {
  1267. factor = 0
  1268. }
  1269. ai_will_revoke = {
  1270. factor = 0
  1271. }
  1272. effect = {
  1273. hidden_tooltip = {
  1274. revoke_law = imperial_administration
  1275. }
  1276. if = {
  1277. limit = {
  1278. NOT = {
  1279. has_dlc = Charlemagne
  1280. }
  1281. }
  1282. set_allow_free_duchy_revokation = no
  1283. }
  1284. if = {
  1285. limit = {
  1286. has_dlc = Charlemagne
  1287. }
  1288. set_allow_free_vice_royalty_revokation = no
  1289. }
  1290. }
  1291. }
  1292. imperial_administration = {
  1293. group = administration
  1294. allow = {
  1295. has_law = crown_authority_4
  1296. }
  1297. potential = {
  1298. higher_tier_than = king
  1299. holder_scope = {
  1300. independent = yes
  1301. is_feudal = yes
  1302. }
  1303. }
  1304. revoke_allowed = {
  1305. always = no
  1306. }
  1307. ai_will_do = {
  1308. factor = 10
  1309. }
  1310. ai_will_revoke = {
  1311. factor = 0
  1312. }
  1313. effect = {
  1314. hidden_tooltip = {
  1315. revoke_law = feudal_administration
  1316. }
  1317. if = {
  1318. limit = {
  1319. NOT = {
  1320. has_dlc = Charlemagne
  1321. }
  1322. }
  1323. set_allow_free_duchy_revokation = yes
  1324. }
  1325. if = {
  1326. limit = {
  1327. has_dlc = Charlemagne
  1328. }
  1329. add_law = vice_royalty_2
  1330. set_allow_free_vice_royalty_revokation = yes
  1331. }
  1332. }
  1333. vassal_limit = 25
  1334. feudal_opinion = -10
  1335. }
  1336. feudal_contract_0 = {
  1337. group = feudal_contract
  1338. feudal_opinion = 10
  1339. potential = {
  1340. OR = {
  1341. NOT = {
  1342. tier = baron
  1343. }
  1344. holder_scope = {
  1345. is_patrician = yes
  1346. }
  1347. }
  1348. NOT = {
  1349. holder_scope = {
  1350. religion_group = muslim
  1351. }
  1352. }
  1353. }
  1354. revoke_allowed = {
  1355. always = no
  1356. }
  1357. ai_will_do = {
  1358. factor = 0
  1359. }
  1360. ai_will_revoke = {
  1361. factor = 0
  1362. }
  1363. effect = {
  1364. hidden_tooltip = {
  1365. revoke_law = feudal_contract_0
  1366. revoke_law = feudal_contract_1
  1367. revoke_law = feudal_contract_2
  1368. revoke_law = feudal_contract_3
  1369. }
  1370. }
  1371. castle_vassal_max_levy = -0.4
  1372. }
  1373. feudal_contract_1 = {
  1374. group = feudal_contract
  1375. feudal_opinion = 5
  1376. potential = {
  1377. OR = {
  1378. NOT = {
  1379. tier = baron
  1380. }
  1381. holder_scope = {
  1382. is_patrician = yes
  1383. }
  1384. }
  1385. NOT = {
  1386. holder_scope = {
  1387. religion_group = muslim
  1388. }
  1389. }
  1390. }
  1391. revoke_allowed = {
  1392. always = no
  1393. }
  1394. ai_will_do = {
  1395. factor = 1
  1396. modifier = {
  1397. factor = 0
  1398. has_law = feudal_contract_2
  1399. }
  1400. modifier = {
  1401. factor = 0
  1402. has_law = feudal_contract_3
  1403. }
  1404. }
  1405. ai_will_revoke = {
  1406. factor = 0
  1407. }
  1408. effect = {
  1409. hidden_tooltip = {
  1410. revoke_law = feudal_contract_0
  1411. revoke_law = feudal_contract_1
  1412. revoke_law = feudal_contract_2
  1413. revoke_law = feudal_contract_3
  1414. }
  1415. }
  1416. castle_vassal_max_levy = -0.3
  1417. }
  1418. feudal_contract_2 = {
  1419. group = feudal_contract
  1420. feudal_opinion = 0
  1421. default = yes
  1422. potential = {
  1423. OR = {
  1424. NOT = {
  1425. tier = baron
  1426. }
  1427. holder_scope = {
  1428. is_patrician = yes
  1429. }
  1430. }
  1431. NOT = {
  1432. holder_scope = {
  1433. religion_group = muslim
  1434. }
  1435. }
  1436. }
  1437. revoke_allowed = {
  1438. always = no
  1439. }
  1440. ai_will_do = {
  1441. factor = 1
  1442. modifier = {
  1443. factor = 0
  1444. has_law = feudal_contract_3
  1445. }
  1446. }
  1447. ai_will_revoke = {
  1448. factor = 0
  1449. }
  1450. effect = {
  1451. hidden_tooltip = {
  1452. revoke_law = feudal_contract_0
  1453. revoke_law = feudal_contract_1
  1454. revoke_law = feudal_contract_2
  1455. revoke_law = feudal_contract_3
  1456. }
  1457. }
  1458. castle_vassal_max_levy = -0.2
  1459. }
  1460. feudal_contract_3 = {
  1461. group = feudal_contract
  1462. feudal_opinion = -5
  1463. potential = {
  1464. OR = {
  1465. NOT = {
  1466. tier = baron
  1467. }
  1468. holder_scope = {
  1469. is_patrician = yes
  1470. }
  1471. }
  1472. NOT = {
  1473. holder_scope = {
  1474. religion_group = muslim
  1475. }
  1476. }
  1477. }
  1478. revoke_allowed = {
  1479. always = no
  1480. }
  1481. ai_will_do = {
  1482. factor = 1
  1483. }
  1484. ai_will_revoke = {
  1485. factor = 0
  1486. }
  1487. effect = {
  1488. revoke_law = feudal_contract_0
  1489. revoke_law = feudal_contract_1
  1490. revoke_law = feudal_contract_2
  1491. }
  1492. }
  1493. feudal_tax_0 = {
  1494. group = feudal_tax
  1495. feudal_opinion = 0
  1496. default = yes
  1497. potential = {
  1498. OR = {
  1499. NOT = {
  1500. tier = baron
  1501. }
  1502. holder_scope = {
  1503. is_patrician = yes
  1504. }
  1505. }
  1506. NOT = {
  1507. holder_scope = {
  1508. religion_group = muslim
  1509. }
  1510. }
  1511. }
  1512. revoke_allowed = {
  1513. always = no
  1514. }
  1515. ai_will_do = {
  1516. factor = 0
  1517. }
  1518. ai_will_revoke = {
  1519. factor = 0
  1520. }
  1521. effect = {
  1522. hidden_tooltip = {
  1523. revoke_law = feudal_tax_0
  1524. revoke_law = feudal_tax_1
  1525. revoke_law = feudal_tax_2
  1526. revoke_law = feudal_tax_3
  1527. }
  1528. }
  1529. castle_vassal_tax_modifier = 0.0
  1530. }
  1531. feudal_tax_1 = {
  1532. group = feudal_tax
  1533. feudal_opinion = -10
  1534. potential = {
  1535. OR = {
  1536. NOT = {
  1537. tier = baron
  1538. }
  1539. holder_scope = {
  1540. is_patrician = yes
  1541. }
  1542. }
  1543. NOT = {
  1544. holder_scope = {
  1545. religion_group = muslim
  1546. }
  1547. }
  1548. }
  1549. revoke_allowed = {
  1550. always = no
  1551. }
  1552. ai_will_do = {
  1553. factor = 1
  1554. modifier = {
  1555. factor = 0
  1556. has_law = feudal_tax_2
  1557. }
  1558. modifier = {
  1559. factor = 0
  1560. has_law = feudal_tax_3
  1561. }
  1562. }
  1563. ai_will_revoke = {
  1564. factor = 0
  1565. }
  1566. effect = {
  1567. hidden_tooltip = {
  1568. revoke_law = feudal_tax_0
  1569. revoke_law = feudal_tax_1
  1570. revoke_law = feudal_tax_2
  1571. revoke_law = feudal_tax_3
  1572. }
  1573. }
  1574. castle_vassal_tax_modifier = 0.1
  1575. }
  1576. feudal_tax_2 = {
  1577. group = feudal_tax
  1578. feudal_opinion = -20
  1579. potential = {
  1580. OR = {
  1581. NOT = {
  1582. tier = baron
  1583. }
  1584. holder_scope = {
  1585. is_patrician = yes
  1586. }
  1587. }
  1588. NOT = {
  1589. holder_scope = {
  1590. religion_group = muslim
  1591. }
  1592. }
  1593. }
  1594. revoke_allowed = {
  1595. always = no
  1596. }
  1597. ai_will_do = {
  1598. factor = 1
  1599. modifier = {
  1600. factor = 0
  1601. has_law = feudal_tax_3
  1602. }
  1603. }
  1604. ai_will_revoke = {
  1605. factor = 0
  1606. }
  1607. effect = {
  1608. hidden_tooltip = {
  1609. revoke_law = feudal_tax_0
  1610. revoke_law = feudal_tax_1
  1611. revoke_law = feudal_tax_2
  1612. revoke_law = feudal_tax_3
  1613. }
  1614. }
  1615. castle_vassal_tax_modifier = 0.2
  1616. }
  1617. feudal_tax_3 = {
  1618. group = feudal_tax
  1619. feudal_opinion = -30
  1620. potential = {
  1621. OR = {
  1622. NOT = {
  1623. tier = baron
  1624. }
  1625. holder_scope = {
  1626. is_patrician = yes
  1627. }
  1628. }
  1629. NOT = {
  1630. holder_scope = {
  1631. religion_group = muslim
  1632. }
  1633. }
  1634. }
  1635. revoke_allowed = {
  1636. always = no
  1637. }
  1638. ai_will_do = {
  1639. factor = 1
  1640. }
  1641. ai_will_revoke = {
  1642. factor = 0
  1643. }
  1644. effect = {
  1645. hidden_tooltip = {
  1646. revoke_law = feudal_tax_0
  1647. revoke_law = feudal_tax_1
  1648. revoke_law = feudal_tax_2
  1649. revoke_law = feudal_tax_3
  1650. }
  1651. }
  1652. castle_vassal_tax_modifier = 0.3
  1653. }
  1654. iqta_contract_0 = {
  1655. group = iqta_contract
  1656. feudal_opinion = 10
  1657. potential = {
  1658. OR = {
  1659. NOT = {
  1660. tier = baron
  1661. }
  1662. holder_scope = {
  1663. is_patrician = yes
  1664. }
  1665. }
  1666. holder_scope = {
  1667. religion_group = muslim
  1668. }
  1669. }
  1670. revoke_allowed = {
  1671. always = no
  1672. }
  1673. ai_will_do = {
  1674. factor = 0
  1675. }
  1676. ai_will_revoke = {
  1677. factor = 0
  1678. }
  1679. effect = {
  1680. hidden_tooltip = {
  1681. revoke_law = iqta_contract_0
  1682. revoke_law = iqta_contract_1
  1683. revoke_law = iqta_contract_2
  1684. revoke_law = iqta_contract_3
  1685. }
  1686. }
  1687. castle_vassal_max_levy = -0.4
  1688. }
  1689. iqta_contract_1 = {
  1690. group = iqta_contract
  1691. feudal_opinion = 5
  1692. potential = {
  1693. OR = {
  1694. NOT = {
  1695. tier = baron
  1696. }
  1697. holder_scope = {
  1698. is_patrician = yes
  1699. }
  1700. }
  1701. holder_scope = {
  1702. religion_group = muslim
  1703. }
  1704. }
  1705. revoke_allowed = {
  1706. always = no
  1707. }
  1708. ai_will_do = {
  1709. factor = 1
  1710. modifier = {
  1711. factor = 0
  1712. has_law = iqta_contract_2
  1713. }
  1714. modifier = {
  1715. factor = 0
  1716. has_law = iqta_contract_3
  1717. }
  1718. }
  1719. ai_will_revoke = {
  1720. factor = 0
  1721. }
  1722. effect = {
  1723. hidden_tooltip = {
  1724. revoke_law = iqta_contract_0
  1725. revoke_law = iqta_contract_1
  1726. revoke_law = iqta_contract_2
  1727. revoke_law = iqta_contract_3
  1728. }
  1729. }
  1730. castle_vassal_max_levy = -0.3
  1731. }
  1732. iqta_contract_2 = {
  1733. group = iqta_contract
  1734. feudal_opinion = 0
  1735. default = yes
  1736. potential = {
  1737. OR = {
  1738. NOT = {
  1739. tier = baron
  1740. }
  1741. holder_scope = {
  1742. is_patrician = yes
  1743. }
  1744. }
  1745. holder_scope = {
  1746. religion_group = muslim
  1747. }
  1748. }
  1749. revoke_allowed = {
  1750. always = no
  1751. }
  1752. ai_will_do = {
  1753. factor = 1
  1754. modifier = {
  1755. factor = 0
  1756. has_law = iqta_contract_3
  1757. }
  1758. }
  1759. ai_will_revoke = {
  1760. factor = 0
  1761. }
  1762. effect = {
  1763. hidden_tooltip = {
  1764. revoke_law = iqta_contract_0
  1765. revoke_law = iqta_contract_1
  1766. revoke_law = iqta_contract_2
  1767. revoke_law = iqta_contract_3
  1768. }
  1769. }
  1770. castle_vassal_max_levy = -0.2
  1771. }
  1772. iqta_contract_3 = {
  1773. group = iqta_contract
  1774. feudal_opinion = -5
  1775. potential = {
  1776. OR = {
  1777. NOT = {
  1778. tier = baron
  1779. }
  1780. holder_scope = {
  1781. is_patrician = yes
  1782. }
  1783. }
  1784. holder_scope = {
  1785. religion_group = muslim
  1786. }
  1787. }
  1788. revoke_allowed = {
  1789. always = no
  1790. }
  1791. ai_will_do = {
  1792. factor = 1
  1793. }
  1794. ai_will_revoke = {
  1795. factor = 0
  1796. }
  1797. effect = {
  1798. revoke_law = iqta_contract_0
  1799. revoke_law = iqta_contract_1
  1800. revoke_law = iqta_contract_2
  1801. }
  1802. }
  1803. iqta_tax_0 = {
  1804. group = iqta_tax
  1805. feudal_opinion = 10
  1806. potential = {
  1807. OR = {
  1808. NOT = {
  1809. tier = baron
  1810. }
  1811. holder_scope = {
  1812. is_patrician = yes
  1813. }
  1814. }
  1815. holder_scope = {
  1816. religion_group = muslim
  1817. }
  1818. }
  1819. revoke_allowed = {
  1820. always = no
  1821. }
  1822. ai_will_do = {
  1823. factor = 0
  1824. }
  1825. ai_will_revoke = {
  1826. factor = 0
  1827. }
  1828. effect = {
  1829. hidden_tooltip = {
  1830. revoke_law = iqta_tax_0
  1831. revoke_law = iqta_tax_1
  1832. revoke_law = iqta_tax_2
  1833. revoke_law = iqta_tax_3
  1834. }
  1835. }
  1836. castle_vassal_tax_modifier = 0.0
  1837. }
  1838. iqta_tax_1 = {
  1839. group = iqta_tax
  1840. default = yes
  1841. feudal_opinion = 0
  1842. potential = {
  1843. OR = {
  1844. NOT = {
  1845. tier = baron
  1846. }
  1847. holder_scope = {
  1848. is_patrician = yes
  1849. }
  1850. }
  1851. holder_scope = {
  1852. religion_group = muslim
  1853. }
  1854. }
  1855. revoke_allowed = {
  1856. always = no
  1857. }
  1858. ai_will_do = {
  1859. factor = 1
  1860. modifier = {
  1861. factor = 0
  1862. has_law = iqta_tax_2
  1863. }
  1864. modifier = {
  1865. factor = 0
  1866. has_law = iqta_tax_3
  1867. }
  1868. }
  1869. ai_will_revoke = {
  1870. factor = 0
  1871. }
  1872. effect = {
  1873. hidden_tooltip = {
  1874. revoke_law = iqta_tax_0
  1875. revoke_law = iqta_tax_1
  1876. revoke_law = iqta_tax_2
  1877. revoke_law = iqta_tax_3
  1878. }
  1879. }
  1880. castle_vassal_tax_modifier = 0.1
  1881. }
  1882. iqta_tax_2 = {
  1883. group = iqta_tax
  1884. feudal_opinion = -10
  1885. potential = {
  1886. OR = {
  1887. NOT = {
  1888. tier = baron
  1889. }
  1890. holder_scope = {
  1891. is_patrician = yes
  1892. }
  1893. }
  1894. holder_scope = {
  1895. religion_group = muslim
  1896. }
  1897. }
  1898. revoke_allowed = {
  1899. always = no
  1900. }
  1901. ai_will_do = {
  1902. factor = 1
  1903. modifier = {
  1904. factor = 0
  1905. has_law = iqta_tax_3
  1906. }
  1907. }
  1908. ai_will_revoke = {
  1909. factor = 0
  1910. }
  1911. effect = {
  1912. hidden_tooltip = {
  1913. revoke_law = iqta_tax_0
  1914. revoke_law = iqta_tax_1
  1915. revoke_law = iqta_tax_2
  1916. revoke_law = iqta_tax_3
  1917. }
  1918. }
  1919. castle_vassal_tax_modifier = 0.2
  1920. }
  1921. iqta_tax_3 = {
  1922. group = iqta_tax
  1923. feudal_opinion = -20
  1924. potential = {
  1925. OR = {
  1926. NOT = {
  1927. tier = baron
  1928. }
  1929. holder_scope = {
  1930. is_patrician = yes
  1931. }
  1932. }
  1933. holder_scope = {
  1934. religion_group = muslim
  1935. }
  1936. }
  1937. revoke_allowed = {
  1938. always = no
  1939. }
  1940. ai_will_do = {
  1941. factor = 1
  1942. }
  1943. ai_will_revoke = {
  1944. factor = 0
  1945. }
  1946. effect = {
  1947. hidden_tooltip = {
  1948. revoke_law = iqta_tax_0
  1949. revoke_law = iqta_tax_1
  1950. revoke_law = iqta_tax_2
  1951. revoke_law = iqta_tax_3
  1952. }
  1953. }
  1954. castle_vassal_tax_modifier = 0.3
  1955. }
  1956. city_contract_0 = {
  1957. group = city_contract
  1958. city_opinion = 10
  1959. potential = {
  1960. OR = {
  1961. NOT = {
  1962. tier = baron
  1963. }
  1964. holder_scope = {
  1965. is_patrician = yes
  1966. }
  1967. }
  1968. }
  1969. revoke_allowed = {
  1970. always = no
  1971. }
  1972. ai_will_do = {
  1973. factor = 0
  1974. }
  1975. ai_will_revoke = {
  1976. factor = 0
  1977. }
  1978. effect = {
  1979. hidden_tooltip = {
  1980. revoke_law = city_contract_0
  1981. revoke_law = city_contract_1
  1982. revoke_law = city_contract_2
  1983. revoke_law = city_contract_3
  1984. }
  1985. }
  1986. city_vassal_max_levy = -0.5
  1987. }
  1988. city_contract_1 = {
  1989. group = city_contract
  1990. city_opinion = 0
  1991. default = yes
  1992. potential = {
  1993. OR = {
  1994. NOT = {
  1995. tier = baron
  1996. }
  1997. holder_scope = {
  1998. is_patrician = yes
  1999. }
  2000. }
  2001. }
  2002. revoke_allowed = {
  2003. always = no
  2004. }
  2005. ai_will_do = {
  2006. factor = 1
  2007. modifier = {
  2008. factor = 0
  2009. has_law = city_contract_2
  2010. }
  2011. modifier = {
  2012. factor = 0
  2013. has_law = city_contract_3
  2014. }
  2015. }
  2016. ai_will_revoke = {
  2017. factor = 0
  2018. }
  2019. effect = {
  2020. hidden_tooltip = {
  2021. revoke_law = city_contract_0
  2022. revoke_law = city_contract_1
  2023. revoke_law = city_contract_2
  2024. revoke_law = city_contract_3
  2025. }
  2026. }
  2027. city_vassal_max_levy = -0.35
  2028. }
  2029. city_contract_2 = {
  2030. group = city_contract
  2031. city_opinion = -10
  2032. potential = {
  2033. OR = {
  2034. NOT = {
  2035. tier = baron
  2036. }
  2037. holder_scope = {
  2038. is_patrician = yes
  2039. }
  2040. }
  2041. }
  2042. revoke_allowed = {
  2043. always = no
  2044. }
  2045. ai_will_do = {
  2046. factor = 1
  2047. modifier = {
  2048. factor = 0
  2049. has_law = city_contract_3
  2050. }
  2051. }
  2052. ai_will_revoke = {
  2053. factor = 0
  2054. }
  2055. effect = {
  2056. hidden_tooltip = {
  2057. revoke_law = city_contract_0
  2058. revoke_law = city_contract_1
  2059. revoke_law = city_contract_2
  2060. revoke_law = city_contract_3
  2061. }
  2062. }
  2063. city_vassal_max_levy = -0.2
  2064. }
  2065. city_contract_3 = {
  2066. group = city_contract
  2067. city_opinion = -20
  2068. potential = {
  2069. OR = {
  2070. NOT = {
  2071. tier = baron
  2072. }
  2073. holder_scope = {
  2074. is_patrician = yes
  2075. }
  2076. }
  2077. }
  2078. revoke_allowed = {
  2079. always = no
  2080. }
  2081. ai_will_do = {
  2082. factor = 1
  2083. }
  2084. ai_will_revoke = {
  2085. factor = 0
  2086. }
  2087. effect = {
  2088. hidden_tooltip = {
  2089. revoke_law = city_contract_0
  2090. revoke_law = city_contract_1
  2091. revoke_law = city_contract_2
  2092. revoke_law = city_contract_3
  2093. }
  2094. }
  2095. city_vassal_max_levy = -0.05
  2096. }
  2097. city_tax_0 = {
  2098. group = city_tax
  2099. city_opinion = 10
  2100. potential = {
  2101. OR = {
  2102. NOT = {
  2103. tier = baron
  2104. }
  2105. holder_scope = {
  2106. is_patrician = yes
  2107. }
  2108. }
  2109. }
  2110. revoke_allowed = {
  2111. always = no
  2112. }
  2113. ai_will_do = {
  2114. factor = 0
  2115. }
  2116. ai_will_revoke = {
  2117. factor = 0
  2118. }
  2119. effect = {
  2120. hidden_tooltip = {
  2121. revoke_law = city_tax_0
  2122. revoke_law = city_tax_1
  2123. revoke_law = city_tax_2
  2124. revoke_law = city_tax_3
  2125. }
  2126. }
  2127. city_vassal_tax_modifier = 0.15
  2128. }
  2129. city_tax_1 = {
  2130. group = city_tax
  2131. city_opinion = 0
  2132. default = yes
  2133. potential = {
  2134. OR = {
  2135. NOT = {
  2136. tier = baron
  2137. }
  2138. holder_scope = {
  2139. is_patrician = yes
  2140. }
  2141. }
  2142. }
  2143. revoke_allowed = {
  2144. always = no
  2145. }
  2146. ai_will_do = {
  2147. factor = 1
  2148. modifier = {
  2149. factor = 0
  2150. has_law = city_tax_2
  2151. }
  2152. modifier = {
  2153. factor = 0
  2154. has_law = city_tax_3
  2155. }
  2156. }
  2157. ai_will_revoke = {
  2158. factor = 0
  2159. }
  2160. effect = {
  2161. hidden_tooltip = {
  2162. revoke_law = city_tax_0
  2163. revoke_law = city_tax_1
  2164. revoke_law = city_tax_2
  2165. revoke_law = city_tax_3
  2166. }
  2167. }
  2168. city_vassal_tax_modifier = 0.25
  2169. }
  2170. city_tax_2 = {
  2171. group = city_tax
  2172. city_opinion = -10
  2173. potential = {
  2174. OR = {
  2175. NOT = {
  2176. tier = baron
  2177. }
  2178. holder_scope = {
  2179. is_patrician = yes
  2180. }
  2181. }
  2182. }
  2183. revoke_allowed = {
  2184. always = no
  2185. }
  2186. ai_will_do = {
  2187. factor = 1
  2188. modifier = {
  2189. factor = 0
  2190. has_law = city_tax_3
  2191. }
  2192. }
  2193. ai_will_revoke = {
  2194. factor = 0
  2195. }
  2196. effect = {
  2197. hidden_tooltip = {
  2198. revoke_law = city_tax_0
  2199. revoke_law = city_tax_1
  2200. revoke_law = city_tax_2
  2201. revoke_law = city_tax_3
  2202. }
  2203. }
  2204. city_vassal_tax_modifier = 0.35
  2205. }
  2206. city_tax_3 = {
  2207. group = city_tax
  2208. city_opinion = -20
  2209. potential = {
  2210. OR = {
  2211. NOT = {
  2212. tier = baron
  2213. }
  2214. holder_scope = {
  2215. is_patrician = yes
  2216. }
  2217. }
  2218. }
  2219. revoke_allowed = {
  2220. always = no
  2221. }
  2222. ai_will_do = {
  2223. factor = 1
  2224. }
  2225. ai_will_revoke = {
  2226. factor = 0
  2227. }
  2228. effect = {
  2229. hidden_tooltip = {
  2230. revoke_law = city_tax_0
  2231. revoke_law = city_tax_1
  2232. revoke_law = city_tax_2
  2233. revoke_law = city_tax_3
  2234. }
  2235. }
  2236. city_vassal_tax_modifier = 0.45
  2237. }
  2238. temple_contract_0 = {
  2239. group = temple_contract
  2240. temple_opinion = 10
  2241. potential = {
  2242. OR = {
  2243. NOT = {
  2244. tier = baron
  2245. }
  2246. holder_scope = {
  2247. is_patrician = yes
  2248. }
  2249. }
  2250. }
  2251. revoke_allowed = {
  2252. always = no
  2253. }
  2254. ai_will_do = {
  2255. factor = 0
  2256. }
  2257. ai_will_revoke = {
  2258. factor = 0
  2259. }
  2260. effect = {
  2261. hidden_tooltip = {
  2262. revoke_law = temple_contract_0
  2263. revoke_law = temple_contract_1
  2264. revoke_law = temple_contract_2
  2265. revoke_law = temple_contract_3
  2266. }
  2267. }
  2268. temple_vassal_max_levy = -0.5
  2269. }
  2270. temple_contract_1 = {
  2271. group = temple_contract
  2272. temple_opinion = 0
  2273. default = yes
  2274. potential = {
  2275. OR = {
  2276. NOT = {
  2277. tier = baron
  2278. }
  2279. holder_scope = {
  2280. is_patrician = yes
  2281. }
  2282. }
  2283. }
  2284. revoke_allowed = {
  2285. always = no
  2286. }
  2287. ai_will_do = {
  2288. factor = 1
  2289. modifier = {
  2290. factor = 0
  2291. has_law = temple_contract_2
  2292. }
  2293. modifier = {
  2294. factor = 0
  2295. has_law = temple_contract_3
  2296. }
  2297. }
  2298. ai_will_revoke = {
  2299. factor = 0
  2300. }
  2301. effect = {
  2302. hidden_tooltip = {
  2303. revoke_law = temple_contract_0
  2304. revoke_law = temple_contract_1
  2305. revoke_law = temple_contract_2
  2306. revoke_law = temple_contract_3
  2307. }
  2308. }
  2309. temple_vassal_max_levy = -0.4
  2310. }
  2311. temple_contract_2 = {
  2312. group = temple_contract
  2313. temple_opinion = -10
  2314. potential = {
  2315. OR = {
  2316. NOT = {
  2317. tier = baron
  2318. }
  2319. holder_scope = {
  2320. is_patrician = yes
  2321. }
  2322. }
  2323. }
  2324. revoke_allowed = {
  2325. always = no
  2326. }
  2327. ai_will_do = {
  2328. factor = 1
  2329. modifier = {
  2330. factor = 0
  2331. has_law = temple_contract_3
  2332. }
  2333. }
  2334. ai_will_revoke = {
  2335. factor = 0
  2336. }
  2337. effect = {
  2338. hidden_tooltip = {
  2339. revoke_law = temple_contract_0
  2340. revoke_law = temple_contract_1
  2341. revoke_law = temple_contract_2
  2342. revoke_law = temple_contract_3
  2343. }
  2344. }
  2345. temple_vassal_max_levy = -0.3
  2346. }
  2347. temple_contract_3 = {
  2348. group = temple_contract
  2349. temple_opinion = -20
  2350. potential = {
  2351. OR = {
  2352. NOT = {
  2353. tier = baron
  2354. }
  2355. holder_scope = {
  2356. is_patrician = yes
  2357. }
  2358. }
  2359. }
  2360. revoke_allowed = {
  2361. always = no
  2362. }
  2363. ai_will_do = {
  2364. factor = 1
  2365. }
  2366. ai_will_revoke = {
  2367. factor = 0
  2368. }
  2369. effect = {
  2370. hidden_tooltip = {
  2371. revoke_law = temple_contract_0
  2372. revoke_law = temple_contract_1
  2373. revoke_law = temple_contract_2
  2374. revoke_law = temple_contract_3
  2375. }
  2376. }
  2377. temple_vassal_max_levy = -0.2
  2378. }
  2379. temple_tax_0 = {
  2380. group = temple_tax
  2381. temple_opinion = 20
  2382. potential = {
  2383. OR = {
  2384. NOT = {
  2385. tier = baron
  2386. }
  2387. holder_scope = {
  2388. is_patrician = yes
  2389. }
  2390. }
  2391. }
  2392. revoke_allowed = {
  2393. always = no
  2394. }
  2395. ai_will_do = {
  2396. factor = 0
  2397. }
  2398. ai_will_revoke = {
  2399. factor = 0
  2400. }
  2401. effect = {
  2402. hidden_tooltip = {
  2403. revoke_law = temple_tax_0
  2404. revoke_law = temple_tax_1
  2405. revoke_law = temple_tax_2
  2406. revoke_law = temple_tax_3
  2407. }
  2408. }
  2409. temple_vassal_tax_modifier = 0.0
  2410. }
  2411. temple_tax_1 = {
  2412. group = temple_tax
  2413. temple_opinion = 0
  2414. default = yes
  2415. potential = {
  2416. OR = {
  2417. NOT = {
  2418. tier = baron
  2419. }
  2420. holder_scope = {
  2421. is_patrician = yes
  2422. }
  2423. }
  2424. }
  2425. revoke_allowed = {
  2426. always = no
  2427. }
  2428. ai_will_do = {
  2429. factor = 1
  2430. modifier = {
  2431. factor = 0
  2432. has_law = temple_tax_2
  2433. }
  2434. modifier = {
  2435. factor = 0
  2436. has_law = temple_tax_3
  2437. }
  2438. }
  2439. ai_will_revoke = {
  2440. factor = 0
  2441. }
  2442. effect = {
  2443. hidden_tooltip = {
  2444. revoke_law = temple_tax_0
  2445. revoke_law = temple_tax_1
  2446. revoke_law = temple_tax_2
  2447. revoke_law = temple_tax_3
  2448. }
  2449. }
  2450. temple_vassal_tax_modifier = 0.35
  2451. }
  2452. temple_tax_2 = {
  2453. group = temple_tax
  2454. temple_opinion = -10
  2455. potential = {
  2456. OR = {
  2457. NOT = {
  2458. tier = baron
  2459. }
  2460. holder_scope = {
  2461. is_patrician = yes
  2462. }
  2463. }
  2464. }
  2465. revoke_allowed = {
  2466. always = no
  2467. }
  2468. ai_will_do = {
  2469. factor = 1
  2470. modifier = {
  2471. factor = 0
  2472. has_law = temple_tax_3
  2473. }
  2474. }
  2475. ai_will_revoke = {
  2476. factor = 0
  2477. }
  2478. effect = {
  2479. hidden_tooltip = {
  2480. revoke_law = temple_tax_0
  2481. revoke_law = temple_tax_1
  2482. revoke_law = temple_tax_2
  2483. revoke_law = temple_tax_3
  2484. }
  2485. }
  2486. temple_vassal_tax_modifier = 0.45
  2487. }
  2488. temple_tax_3 = {
  2489. group = temple_tax
  2490. temple_opinion = -20
  2491. potential = {
  2492. OR = {
  2493. NOT = {
  2494. tier = baron
  2495. }
  2496. holder_scope = {
  2497. is_patrician = yes
  2498. }
  2499. }
  2500. }
  2501. revoke_allowed = {
  2502. always = no
  2503. }
  2504. ai_will_do = {
  2505. factor = 1
  2506. }
  2507. ai_will_revoke = {
  2508. factor = 0
  2509. }
  2510. effect = {
  2511. hidden_tooltip = {
  2512. revoke_law = temple_tax_0
  2513. revoke_law = temple_tax_1
  2514. revoke_law = temple_tax_2
  2515. revoke_law = temple_tax_3
  2516. }
  2517. }
  2518. temple_vassal_tax_modifier = 0.55
  2519. }
  2520. tribal_contract_0 = {
  2521. group = tribal_contract
  2522. tribal_opinion = 0
  2523. potential = {
  2524. OR = {
  2525. NOT = {
  2526. tier = baron
  2527. }
  2528. holder_scope = {
  2529. is_patrician = yes
  2530. }
  2531. }
  2532. OR = {
  2533. holder_scope = {
  2534. is_tribal = no
  2535. }
  2536. OR = {
  2537. has_law = tribal_organization_3
  2538. has_law = tribal_organization_4
  2539. }
  2540. }
  2541. }
  2542. revoke_allowed = {
  2543. always = no
  2544. }
  2545. ai_will_do = {
  2546. factor = 0
  2547. }
  2548. ai_will_revoke = {
  2549. factor = 0
  2550. }
  2551. effect = {
  2552. hidden_tooltip = {
  2553. revoke_law = tribal_contract_0
  2554. revoke_law = tribal_contract_1
  2555. revoke_law = tribal_contract_2
  2556. revoke_law = tribal_contract_3
  2557. }
  2558. }
  2559. tribal_vassal_max_levy = -0.5
  2560. }
  2561. tribal_contract_1 = {
  2562. group = tribal_contract
  2563. tribal_opinion = -10
  2564. default = yes
  2565. potential = {
  2566. OR = {
  2567. NOT = {
  2568. tier = baron
  2569. }
  2570. holder_scope = {
  2571. is_patrician = yes
  2572. }
  2573. }
  2574. OR = {
  2575. holder_scope = {
  2576. is_tribal = no
  2577. }
  2578. OR = {
  2579. has_law = tribal_organization_3
  2580. has_law = tribal_organization_4
  2581. }
  2582. }
  2583. }
  2584. revoke_allowed = {
  2585. always = no
  2586. }
  2587. ai_will_do = {
  2588. factor = 1
  2589. }
  2590. ai_will_revoke = {
  2591. factor = 0
  2592. }
  2593. effect = {
  2594. hidden_tooltip = {
  2595. revoke_law = tribal_contract_0
  2596. revoke_law = tribal_contract_1
  2597. revoke_law = tribal_contract_2
  2598. revoke_law = tribal_contract_3
  2599. }
  2600. }
  2601. tribal_vassal_max_levy = -0.4
  2602. }
  2603. tribal_contract_2 = {
  2604. group = tribal_contract
  2605. tribal_opinion = -20
  2606. potential = {
  2607. OR = {
  2608. NOT = {
  2609. tier = baron
  2610. }
  2611. holder_scope = {
  2612. is_patrician = yes
  2613. }
  2614. }
  2615. OR = {
  2616. holder_scope = {
  2617. is_tribal = no
  2618. }
  2619. OR = {
  2620. has_law = tribal_organization_3
  2621. has_law = tribal_organization_4
  2622. }
  2623. }
  2624. }
  2625. revoke_allowed = {
  2626. always = no
  2627. }
  2628. ai_will_do = {
  2629. factor = 0
  2630. }
  2631. ai_will_revoke = {
  2632. factor = 0
  2633. }
  2634. effect = {
  2635. hidden_tooltip = {
  2636. revoke_law = tribal_contract_0
  2637. revoke_law = tribal_contract_1
  2638. revoke_law = tribal_contract_2
  2639. revoke_law = tribal_contract_3
  2640. }
  2641. }
  2642. tribal_vassal_max_levy = -0.3
  2643. }
  2644. tribal_contract_3 = {
  2645. group = tribal_contract
  2646. tribal_opinion = -30
  2647. potential = {
  2648. OR = {
  2649. NOT = {
  2650. tier = baron
  2651. }
  2652. holder_scope = {
  2653. is_patrician = yes
  2654. }
  2655. }
  2656. OR = {
  2657. holder_scope = {
  2658. is_tribal = no
  2659. }
  2660. OR = {
  2661. has_law = tribal_organization_3
  2662. has_law = tribal_organization_4
  2663. }
  2664. }
  2665. }
  2666. revoke_allowed = {
  2667. always = no
  2668. }
  2669. ai_will_do = {
  2670. factor = 0
  2671. }
  2672. ai_will_revoke = {
  2673. factor = 0
  2674. }
  2675. effect = {
  2676. hidden_tooltip = {
  2677. revoke_law = tribal_contract_1
  2678. revoke_law = tribal_contract_2
  2679. revoke_law = tribal_contract_3
  2680. revoke_law = tribal_contract_4
  2681. }
  2682. }
  2683. tribal_vassal_max_levy = -0.2
  2684. }
  2685. tribal_tax_0 = {
  2686. group = tribal_tax
  2687. tribal_opinion = 0
  2688. default = yes
  2689. potential = {
  2690. OR = {
  2691. NOT = {
  2692. tier = baron
  2693. }
  2694. holder_scope = {
  2695. is_patrician = yes
  2696. }
  2697. }
  2698. OR = {
  2699. holder_scope = {
  2700. is_tribal = no
  2701. }
  2702. OR = {
  2703. has_law = tribal_organization_3
  2704. has_law = tribal_organization_4
  2705. }
  2706. }
  2707. }
  2708. revoke_allowed = {
  2709. always = no
  2710. }
  2711. ai_will_do = {
  2712. factor = 1
  2713. }
  2714. ai_will_revoke = {
  2715. factor = 0
  2716. }
  2717. effect = {
  2718. hidden_tooltip = {
  2719. revoke_law = tribal_tax_0
  2720. revoke_law = tribal_tax_1
  2721. revoke_law = tribal_tax_2
  2722. revoke_law = tribal_tax_3
  2723. }
  2724. }
  2725. tribal_vassal_tax_modifier = 0
  2726. }
  2727. tribal_tax_1 = {
  2728. group = tribal_tax
  2729. tribal_opinion = -10
  2730. potential = {
  2731. OR = {
  2732. NOT = {
  2733. tier = baron
  2734. }
  2735. holder_scope = {
  2736. is_patrician = yes
  2737. }
  2738. }
  2739. OR = {
  2740. holder_scope = {
  2741. is_tribal = no
  2742. }
  2743. OR = {
  2744. has_law = tribal_organization_3
  2745. has_law = tribal_organization_4
  2746. }
  2747. }
  2748. }
  2749. revoke_allowed = {
  2750. always = no
  2751. }
  2752. ai_will_do = {
  2753. factor = 0
  2754. }
  2755. ai_will_revoke = {
  2756. factor = 0
  2757. }
  2758. effect = {
  2759. hidden_tooltip = {
  2760. revoke_law = tribal_tax_0
  2761. revoke_law = tribal_tax_1
  2762. revoke_law = tribal_tax_2
  2763. revoke_law = tribal_tax_3
  2764. }
  2765. }
  2766. tribal_vassal_tax_modifier = 0.1
  2767. }
  2768. tribal_tax_2 = {
  2769. group = tribal_tax
  2770. tribal_opinion = -20
  2771. potential = {
  2772. OR = {
  2773. NOT = {
  2774. tier = baron
  2775. }
  2776. holder_scope = {
  2777. is_patrician = yes
  2778. }
  2779. }
  2780. OR = {
  2781. holder_scope = {
  2782. is_tribal = no
  2783. }
  2784. OR = {
  2785. has_law = tribal_organization_3
  2786. has_law = tribal_organization_4
  2787. }
  2788. }
  2789. }
  2790. revoke_allowed = {
  2791. always = no
  2792. }
  2793. ai_will_do = {
  2794. factor = 0
  2795. }
  2796. ai_will_revoke = {
  2797. factor = 0
  2798. }
  2799. effect = {
  2800. hidden_tooltip = {
  2801. revoke_law = tribal_tax_0
  2802. revoke_law = tribal_tax_1
  2803. revoke_law = tribal_tax_2
  2804. revoke_law = tribal_tax_3
  2805. }
  2806. }
  2807. tribal_vassal_tax_modifier = 0.2
  2808. }
  2809. tribal_tax_3 = {
  2810. group = tribal_tax
  2811. tribal_opinion = -30
  2812. potential = {
  2813. OR = {
  2814. NOT = {
  2815. tier = baron
  2816. }
  2817. holder_scope = {
  2818. is_patrician = yes
  2819. }
  2820. }
  2821. OR = {
  2822. holder_scope = {
  2823. is_tribal = no
  2824. }
  2825. OR = {
  2826. has_law = tribal_organization_3
  2827. has_law = tribal_organization_4
  2828. }
  2829. }
  2830. }
  2831. revoke_allowed = {
  2832. always = no
  2833. }
  2834. ai_will_do = {
  2835. factor = 0
  2836. }
  2837. ai_will_revoke = {
  2838. factor = 0
  2839. }
  2840. effect = {
  2841. hidden_tooltip = {
  2842. revoke_law = tribal_tax_0
  2843. revoke_law = tribal_tax_1
  2844. revoke_law = tribal_tax_2
  2845. revoke_law = tribal_tax_3
  2846. }
  2847. }
  2848. tribal_vassal_tax_modifier = 0.3
  2849. }
  2850. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement