Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. ####Coalition system by Flizzy####
  2.  
  3.  
  4. coal_set_up = {
  5. if = {
  6. limit = {
  7. has_government = collectivist
  8. }
  9. add_to_variable = { var = party_in_coal value = 1 }
  10. add_to_array = {
  11. array = coal_list
  12. value = 1
  13. }
  14. coal_calc_total = yes
  15. }
  16. else_if = {
  17. limit = {
  18. has_government = traditional_marxist
  19. }
  20. add_to_variable = { var = party_in_coal value = 1 }
  21. add_to_array = {
  22. array = coal_list
  23. value = 2
  24. }
  25. coal_calc_total = yes
  26. }
  27. else_if = {
  28. limit = {
  29. has_government = social_democrat
  30. }
  31. add_to_variable = { var = party_in_coal value = 1 }
  32. add_to_array = {
  33. array = coal_list
  34. value = 3
  35. }
  36. coal_calc_total = yes
  37. }
  38. else_if = {
  39. limit = {
  40. has_government = liberalism
  41. }
  42. add_to_variable = { var = party_in_coal value = 1 }
  43. add_to_array = {
  44. array = coal_list
  45. value = 4
  46. }
  47. coal_calc_total = yes
  48. }
  49. else_if = {
  50. limit = {
  51. has_government = conservatism
  52. }
  53. add_to_variable = { var = party_in_coal value = 1 }
  54. add_to_array = {
  55. array = coal_list
  56. value = 5
  57. }
  58. coal_calc_total = yes
  59. }
  60. else_if = {
  61. limit = {
  62. has_government = authoritarian_democrat
  63. }
  64. add_to_variable = { var = party_in_coal value = 1 }
  65. add_to_array = {
  66. array = coal_list
  67. value = 6
  68. }
  69. coal_calc_total = yes
  70. }
  71. else_if = {
  72. limit = {
  73. has_government = paternal_autocrat
  74. }
  75. add_to_variable = { var = party_in_coal value = 1 }
  76. add_to_array = {
  77. array = coal_list
  78. value = 7
  79. }
  80. coal_calc_total = yes
  81. }
  82. else_if = {
  83. limit = {
  84. has_government = totalitarian_nationalism
  85. }
  86. add_to_variable = { var = party_in_coal value = 1 }
  87. add_to_array = {
  88. array = coal_list
  89. value = 8
  90. }
  91. coal_calc_total = yes
  92. }
  93. }
  94. coal_add_collectivist = {
  95. if = {
  96. limit = {
  97. NOT = {
  98. is_in_array = {
  99. array = coal_list
  100. value = 1
  101. }
  102. }
  103. }
  104. add_to_array = {
  105. array = coal_list
  106. value = 1
  107. }
  108. add_to_variable = { var = party_in_coal value = 1 }
  109. coal_calc_total = yes
  110. }
  111. }
  112. coal_add_trad_marx = {
  113. if = {
  114. limit = {
  115. NOT = {
  116. is_in_array = {
  117. array = coal_list
  118. value = 2
  119. }
  120. }
  121. }
  122. add_to_array = {
  123. array = coal_list
  124. value = 2
  125. }
  126. add_to_variable = { var = party_in_coal value = 1 }
  127. coal_calc_total = yes
  128. }
  129. }
  130. coal_add_soc_dem = {
  131. if = {
  132. limit = {
  133. NOT = {
  134. is_in_array = {
  135. array = coal_list
  136. value = 3
  137. }
  138. }
  139. }
  140. add_to_array = {
  141. array = coal_list
  142. value = 3
  143. }
  144. add_to_variable = { var = party_in_coal value = 1 }
  145. coal_calc_total = yes
  146. }
  147. }
  148. coal_add_liberalism = {
  149. if = {
  150. limit = {
  151. NOT = {
  152. is_in_array = {
  153. array = coal_list
  154. value = 4
  155. }
  156. }
  157. }
  158. add_to_array = {
  159. array = coal_list
  160. value = 4
  161. }
  162. add_to_variable = { var = party_in_coal value = 1 }
  163. coal_calc_total = yes
  164. }
  165. }
  166. coal_add_conservatism = {
  167. if = {
  168. limit = {
  169. NOT = {
  170. is_in_array = {
  171. array = coal_list
  172. value = 5
  173. }
  174. }
  175. }
  176. add_to_variable = { var = party_in_coal value = 1 }
  177. add_to_array = {
  178. array = coal_list
  179. value = 5
  180. }
  181. coal_calc_total = yes
  182. }
  183. }
  184. coal_add_auth_dem = {
  185. if = {
  186. limit = {
  187. NOT = {
  188. is_in_array = {
  189. array = coal_list
  190. value = 6
  191. }
  192. }
  193. }
  194. add_to_variable = { var = party_in_coal value = 1 }
  195. add_to_array = {
  196. array = coal_list
  197. value = 6
  198. }
  199. coal_calc_total = yes
  200. }
  201. }
  202. coal_add_pat_aut = {
  203. if = {
  204. limit = {
  205. NOT = {
  206. is_in_array = {
  207. array = coal_list
  208. value = 7
  209. }
  210. }
  211. }
  212. add_to_array = {
  213. array = coal_list
  214. value = 7
  215. }
  216. add_to_variable = { var = party_in_coal value = 1 }
  217. coal_calc_total = yes
  218. }
  219. }
  220. coal_add_tot_nat = {
  221. if = {
  222. limit = {
  223. NOT = {
  224. is_in_array = {
  225. array = coal_list
  226. value = 8
  227. }
  228. }
  229. }
  230. add_to_array = {
  231. array = coal_list
  232. value = 8
  233. }
  234. add_to_variable = { var = party_in_coal value = 1 }
  235. coal_calc_total = yes
  236. }
  237. }
  238. coal_calc_total = {
  239. set_variable = {
  240. var = total_coal_pop
  241. value = 0
  242. }
  243. if = {
  244. limit = {
  245. is_in_array = {
  246. array = coal_list
  247. value = 1
  248. }
  249. }
  250. add_to_variable = {
  251. var = total_coal_pop
  252. value = party_popularity@collectivist
  253. }
  254. }
  255. if = {
  256. limit = {
  257. is_in_array = {
  258. array = coal_list
  259. value = 2
  260. }
  261. }
  262. add_to_variable = {
  263. var = total_coal_pop
  264. value = party_popularity@traditional_marxist
  265. }
  266. }
  267. if = {
  268. limit = {
  269. is_in_array = {
  270. array = coal_list
  271. value = 3
  272. }
  273. }
  274. add_to_variable = {
  275. var = total_coal_pop
  276. value = party_popularity@social_democrat
  277. }
  278. }
  279. if = {
  280. limit = {
  281. is_in_array = {
  282. array = coal_list
  283. value = 4
  284. }
  285. }
  286. add_to_variable = {
  287. var = total_coal_pop
  288. value = party_popularity@liberalism
  289. }
  290. }
  291. if = {
  292. limit = {
  293. is_in_array = {
  294. array = coal_list
  295. value = 5
  296. }
  297. }
  298. add_to_variable = {
  299. var = total_coal_pop
  300. value = party_popularity@conservatism
  301. }
  302. }
  303. if = {
  304. limit = {
  305. is_in_array = {
  306. array = coal_list
  307. value = 6
  308. }
  309. }
  310. add_to_variable = {
  311. var = total_coal_pop
  312. value = party_popularity@authoritarian_democrat
  313. }
  314. }
  315. if = {
  316. limit = {
  317. is_in_array = {
  318. array = coal_list
  319. value = 7
  320. }
  321. }
  322. add_to_variable = {
  323. var = total_coal_pop
  324. value = party_popularity@paternal_autocrat
  325. }
  326. }
  327. if = {
  328. limit = {
  329. is_in_array = {
  330. array = coal_list
  331. value = 8
  332. }
  333. }
  334. add_to_variable = {
  335. var = total_coal_pop
  336. value = party_popularity@totalitarian_nationalism
  337. }
  338. }
  339. multiply_variable = {
  340. var = total_coal_pop
  341. value = 100
  342. }
  343. round_variable = total_coal_pop
  344. }
  345. coal_rev_collectivist = {
  346. if = {
  347. limit = {
  348. is_in_array = {
  349. array = coal_list
  350. value = 1
  351. }
  352. }
  353. remove_from_array = {
  354. array = coal_list
  355. value = 1
  356. }
  357. coal_calc_total = yes
  358. }
  359. }
  360. coal_rev_trad_marx = {
  361. if = {
  362. limit = {
  363. is_in_array = {
  364. array = coal_list
  365. value = 2
  366. }
  367. }
  368. remove_from_array = {
  369. array = coal_list
  370. value = 2
  371. }
  372. coal_calc_total = yes
  373. }
  374. }
  375. coal_rev_soc_dem = {
  376. if = {
  377. limit = {
  378. is_in_array = {
  379. array = coal_list
  380. value = 3
  381. }
  382. }
  383. remove_from_array = {
  384. array = coal_list
  385. value = 3
  386. }
  387. coal_calc_total = yes
  388. }
  389. }
  390. coal_rev_liberalism = {
  391. if = {
  392. limit = {
  393. is_in_array = {
  394. array = coal_list
  395. value = 4
  396. }
  397. }
  398. remove_from_array = {
  399. array = coal_list
  400. value = 4
  401. }
  402. coal_calc_total = yes
  403. }
  404. }
  405. coal_rev_conservatism = {
  406. if = {
  407. limit = {
  408. is_in_array = {
  409. array = coal_list
  410. value = 5
  411. }
  412. }
  413. remove_from_array = {
  414. array = coal_list
  415. value = 5
  416. }
  417. coal_calc_total = yes
  418. }
  419. }
  420. coal_rev_auth_dem = {
  421. if = {
  422. limit = {
  423. is_in_array = {
  424. array = coal_list
  425. value = 6
  426. }
  427. }
  428. remove_from_array = {
  429. array = coal_list
  430. value = 6
  431. }
  432. coal_calc_total = yes
  433. }
  434. }
  435. coal_rev_pat_aut = {
  436. if = {
  437. limit = {
  438. is_in_array = {
  439. array = coal_list
  440. value = 7
  441. }
  442. }
  443. remove_from_array = {
  444. array = coal_list
  445. value = 7
  446. }
  447. coal_calc_total = yes
  448. }
  449. }
  450. coal_rev_tot_nat = {
  451. if = {
  452. limit = {
  453. is_in_array = {
  454. array = coal_list
  455. value = 8
  456. }
  457. }
  458. remove_from_array = {
  459. array = coal_list
  460. value = 8
  461. }
  462. coal_calc_total = yes
  463. }
  464. }
  465. coal_rev_all = {
  466. clear_array = coal_list
  467. coal_set_up = yes
  468. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement