Advertisement
Sergiovan

Untitled

Feb 5th, 2015
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.38 KB | None | 0 0
  1. namespace = improved_colonial
  2.  
  3. #Pass control on finished
  4. province_event = {
  5. id = improved_colonial.1
  6. title = "improved_colonial.1.t"
  7. desc = "improved_colonial.1.d"
  8. picture = POPE_PREACHING_eventPicture
  9.  
  10. trigger = {
  11. OR = {
  12. continent = north_america
  13. continent = south_america
  14. }
  15. is_colony = no
  16. has_province_flag = improved_colonial_give_away
  17. any_neighbor_province = {
  18. has_province_flag = improved_colonial_give_province
  19. owner = {
  20. is_colonial_nation = yes
  21. colonial_parent = {
  22. OR = {
  23. ROOT = {
  24. owned_by = PREV
  25. }
  26. any_country = {
  27. is_colonial_nation = yes
  28. is_colonial_nation_of = PREV
  29. ROOT = {
  30. owned_by = PREV
  31. }
  32. }
  33. }
  34. }
  35. }
  36. }
  37. }
  38.  
  39.  
  40. mean_time_to_happen = {
  41. days = 1
  42. }
  43. hidden = yes
  44.  
  45. option = {
  46. name = "improved_colonial.1.a"
  47.  
  48. random_neighbor_province = {
  49. limit = {
  50. has_province_flag = improved_colonial_give_province
  51. owner = {
  52. is_colonial_nation = yes
  53. colonial_parent = {
  54. OR = {
  55. ROOT = {
  56. owned_by = PREV
  57. }
  58. any_country = {
  59. is_colonial_nation = yes
  60. is_colonial_nation_of = PREV
  61. ROOT = {
  62. owned_by = PREV
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69.  
  70. clr_province_flag = improved_colonial_give_province
  71. owner = {
  72. save_event_target_as = colnat
  73. }
  74. }
  75.  
  76. owner = {
  77. save_event_target_as = daddy
  78. }
  79.  
  80. clr_province_flag = improved_colonial_give_away
  81. event_target:colnat = {
  82. ROOT = {
  83. cede_province = PREV
  84. add_core = PREV
  85. }
  86. }
  87. event_target:daddy = {
  88. ROOT = {
  89. remove_core = PREV
  90. }
  91. }
  92. add_local_autonomy = -100
  93. add_local_autonomy = 50
  94. }
  95. }
  96.  
  97. #Remove flag if impossible to pass control
  98. province_event = {
  99. id = improved_colonial.2
  100. title = "improved_colonial.1.t"
  101. desc = "improved_colonial.1.d"
  102. picture = POPE_PREACHING_eventPicture
  103.  
  104. trigger = {
  105. OR = {
  106. continent = north_america
  107. continent = south_america
  108. }
  109. is_overseas = yes
  110. is_colony = no
  111. has_province_flag = improved_colonial_give_away
  112. all_neighbor_province = {
  113. NOT = {
  114. has_province_flag = improved_colonial_give_province
  115. }
  116. }
  117. }
  118.  
  119. mean_time_to_happen = {
  120. days = 1
  121. }
  122. hidden = yes
  123.  
  124. option = {
  125. name = "improved_colonial.1.a"
  126. clr_province_flag = improved_colonial_give_away
  127. }
  128. }
  129.  
  130. #Remove is mine if stuff goes wrong
  131. province_event = {
  132. id = improved_colonial.3
  133. title = "improved_colonial.2.t"
  134. desc = "improved_colonial.2.d"
  135. picture = POPE_PREACHING_eventPicture
  136.  
  137. mean_time_to_happen = {
  138. days = 1
  139. }
  140. hidden = yes
  141.  
  142. trigger = {
  143. has_province_flag = improved_colonial_give_province
  144. all_neighbor_province = {
  145. NOT = {
  146. has_province_flag = improved_colonial_give_away
  147. }
  148. }
  149. }
  150. }
  151.  
  152. option = {
  153. name = "improved_colonial.1.a"
  154. clr_province_flag = improved_colonial_give_province
  155. }
  156.  
  157. }
  158.  
  159. #On colony made
  160. province_event = {
  161. id = improved_colonial.4
  162. title = "improved_colonial.2.t"
  163. desc = "improved_colonial.2.d"
  164. picture = POPE_PREACHING_eventPicture
  165.  
  166. trigger = {
  167. OR = {
  168. continent = north_america
  169. continent = south_america
  170. }
  171. NOT = {
  172. has_province_flag = improved_colonial_give_away
  173. }
  174. is_overseas = yes
  175. is_colony = yes
  176. any_neighbor_province = {
  177. owner = {
  178. is_colonial_nation = yes
  179. colonial_parent = {
  180. ROOT = {
  181. owned_by = PREV
  182. }
  183. }
  184. }
  185. }
  186. }
  187.  
  188. mean_time_to_happen = {
  189. days = 1
  190. }
  191. hidden = yes
  192.  
  193. option = {
  194. name = "improved_colonial.2.a"
  195.  
  196. random_neighbor_province = {
  197. limit = {
  198. owner = {
  199. is_colonial_nation = yes
  200. colonial_parent = {
  201. ROOT = {
  202. owned_by = PREV
  203. }
  204. }
  205. }
  206. }
  207. add_local_autonomy = -100
  208. set_province_flag = improved_colonial_give_province
  209. }
  210.  
  211. set_province_flag = improved_colonial_give_away
  212.  
  213. }
  214. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement