Advertisement
Guest User

Untitled

a guest
May 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.53 KB | None | 0 0
  1. ###########################
  2. # Nuclear Bomb Events
  3. ###########################
  4.  
  5. add_namespace = nuke_dropped
  6.  
  7. # Hidden event to set flag on nuke dropped
  8. news_event = {
  9. id = nuke_dropped.0
  10. picture = GFX_news_event_nuke
  11.  
  12. major = yes
  13.  
  14. is_triggered_only = yes
  15.  
  16. hidden = yes
  17.  
  18. fire_only_once = yes
  19.  
  20. immediate = {
  21. if = {
  22. limit = {
  23. tag = ITA
  24. has_government = fascism
  25. FROM = { state = 378 }
  26. }
  27. set_country_flag = duce_nukedem_flag
  28. }
  29. news_event = { id = nuke_dropped.1 days = 1 }
  30. }
  31.  
  32. option = {
  33. name = dummy_nuke_option
  34. }
  35. }
  36.  
  37. # Nuclear Attack PLACEHOLDER
  38. news_event = {
  39. id = nuke_dropped.1
  40. title = nuke_dropped.1.t
  41. desc = nuke_dropped.1.d
  42. picture = GFX_news_event_nuke
  43.  
  44. major = yes
  45.  
  46. is_triggered_only = yes
  47.  
  48. trigger = {
  49. NOT = {
  50. FROM = {
  51. state = 529
  52. }
  53. FROM = {
  54. state = 528
  55. }
  56. FROM = {
  57. state = 64
  58. }
  59. FROM = {
  60. state = 126
  61. }
  62. FROM = {
  63. state = 531
  64. }
  65. FROM = {
  66. state = 282
  67. }
  68. FROM = {
  69. state = 361
  70. }
  71. FROM = {
  72. state = 2
  73. }
  74. FROM = {
  75. state = 16
  76. }
  77. FROM = {
  78. state = 219
  79. }
  80. FROM = {
  81. state = 37
  82. }
  83. FROM = {
  84. state = 141
  85. }
  86. }
  87. }
  88.  
  89. option = {
  90. name = nuke_dropped.1.a
  91. trigger = {
  92. NOT = { FROM = { FROM = { is_owned_by = ROOT } } }
  93. }
  94. }
  95.  
  96. option = {
  97. name = nuke_dropped.1.b
  98. trigger = {
  99. FROM = { FROM = { is_owned_by = ROOT } }
  100. }
  101. }
  102. }
  103.  
  104. # Nuclear Attack on Hiroshima
  105. news_event = {
  106. id = nuke_dropped.2
  107. title = nuke_dropped.2.t
  108. desc = nuke_dropped.2.d
  109. picture = GFX_news_event_nuke
  110.  
  111. is_triggered_only = yes
  112.  
  113. fire_only_once = yes
  114.  
  115. trigger = {
  116. FROM = { state = 529 }
  117. }
  118.  
  119. option = {
  120. name = nuke_dropped.2.a
  121. trigger = {
  122. NOT = { owns_state = FROM }
  123. }
  124. }
  125.  
  126. option = {
  127. name = nuke_dropped.2.b
  128. trigger = {
  129. owns_state = FROM
  130. }
  131. }
  132. }
  133.  
  134. # Nuclear Attack on Nagasaki
  135. news_event = {
  136. id = nuke_dropped.3
  137. title = nuke_dropped.3.t
  138. desc = nuke_dropped.3.d
  139. picture = GFX_news_event_nuke
  140.  
  141. is_triggered_only = yes
  142.  
  143. fire_only_once = yes
  144.  
  145. trigger = {
  146. FROM = { state = 528 }
  147. }
  148.  
  149. option = {
  150. name = nuke_dropped.3.a
  151. trigger = {
  152. NOT = { owns_state = FROM }
  153. }
  154. }
  155.  
  156. option = {
  157. name = nuke_dropped.3.b
  158. trigger = {
  159. owns_state = FROM
  160. }
  161. }
  162. }
  163.  
  164. # Nuclear Attack on Berlin
  165. news_event = {
  166. id = nuke_dropped.4
  167. title = nuke_dropped.4.t
  168. desc = nuke_dropped.4.d
  169. picture = GFX_news_event_nuke
  170.  
  171. is_triggered_only = yes
  172.  
  173. fire_only_once = yes
  174.  
  175. trigger = {
  176. FROM = {
  177. state = 64
  178. is_owned_by = GER
  179. }
  180. }
  181.  
  182. option = {
  183. name = nuke_dropped.4.a
  184. trigger = {
  185. NOT = { owns_state = FROM }
  186. }
  187. }
  188.  
  189. option = {
  190. name = nuke_dropped.4.b
  191. trigger = {
  192. owns_state = FROM
  193. }
  194. }
  195. }
  196.  
  197. # Nuclear Attack on London
  198. news_event = {
  199. id = nuke_dropped.5
  200. title = nuke_dropped.5.t
  201. desc = nuke_dropped.5.d
  202. picture = GFX_news_event_nuke
  203.  
  204. is_triggered_only = yes
  205.  
  206. fire_only_once = yes
  207.  
  208. trigger = {
  209. FROM = { state = 126 }
  210. }
  211.  
  212. option = {
  213. name = nuke_dropped.5.a
  214. trigger = {
  215. NOT = { owns_state = FROM }
  216. }
  217. }
  218.  
  219. option = {
  220. name = nuke_dropped.5.b
  221. trigger = {
  222. owns_state = FROM
  223. }
  224. }
  225. }
  226.  
  227. # Nuclear Attack on Kyoto (Kansai)
  228. news_event = {
  229. id = nuke_dropped.6
  230. title = nuke_dropped.6.t
  231. desc = nuke_dropped.6.d
  232. picture = GFX_news_event_nuke
  233.  
  234. is_triggered_only = yes
  235.  
  236. fire_only_once = yes
  237.  
  238. trigger = {
  239. FROM = { state = 531 }
  240. }
  241.  
  242. option = {
  243. name = nuke_dropped.6.a
  244. trigger = {
  245. NOT = { owns_state = FROM }
  246. }
  247. }
  248.  
  249. option = {
  250. name = nuke_dropped.6.b
  251. trigger = {
  252. owns_state = FROM
  253. }
  254. }
  255. }
  256.  
  257. # Nuclear Attack on Tokyo
  258. news_event = {
  259. id = nuke_dropped.7
  260. title = nuke_dropped.7.t
  261. desc = nuke_dropped.7.d
  262. picture = GFX_news_event_nuke
  263.  
  264. is_triggered_only = yes
  265.  
  266. fire_only_once = yes
  267.  
  268. trigger = {
  269. FROM = { state = 282 }
  270. }
  271.  
  272. option = {
  273. name = nuke_dropped.7.a
  274. trigger = {
  275. NOT = { owns_state = FROM }
  276. }
  277. }
  278.  
  279. option = {
  280. name = nuke_dropped.7.b
  281. trigger = {
  282. owns_state = FROM
  283. }
  284. }
  285. }
  286.  
  287. # Nuclear Attack on Washington D.C.
  288. news_event = {
  289. id = nuke_dropped.8
  290. title = nuke_dropped.8.t
  291. desc = nuke_dropped.8.d
  292. picture = GFX_news_event_nuke
  293.  
  294. is_triggered_only = yes
  295.  
  296. fire_only_once = yes
  297.  
  298. trigger = {
  299. FROM = { state = 361 }
  300. }
  301.  
  302. option = {
  303. name = nuke_dropped.8.a
  304. trigger = {
  305. NOT = { owns_state = FROM }
  306. }
  307. }
  308.  
  309. option = {
  310. name = nuke_dropped.8.b
  311. trigger = {
  312. owns_state = FROM
  313. }
  314. }
  315. }
  316.  
  317. # Nuclear Attack on Rome
  318. news_event = {
  319. id = nuke_dropped.9
  320. title = nuke_dropped.9.t
  321. desc = nuke_dropped.9.d
  322. picture = GFX_news_event_nuke
  323.  
  324. is_triggered_only = yes
  325.  
  326. fire_only_once = yes
  327.  
  328. trigger = {
  329. FROM = { state = 2 }
  330. }
  331.  
  332. option = {
  333. name = nuke_dropped.9.a
  334. trigger = {
  335. NOT = { owns_state = FROM }
  336. }
  337. }
  338.  
  339. option = {
  340. name = nuke_dropped.9.b
  341. trigger = {
  342. owns_state = FROM
  343. }
  344. }
  345. }
  346.  
  347. # Nuclear Attack on Paris
  348. news_event = {
  349. id = nuke_dropped.10
  350. title = nuke_dropped.10.t
  351. desc = nuke_dropped.10.d
  352. picture = GFX_news_event_nuke
  353.  
  354. is_triggered_only = yes
  355.  
  356. fire_only_once = yes
  357.  
  358. trigger = {
  359. FROM = { state = 16 }
  360. }
  361.  
  362. option = {
  363. name = nuke_dropped.10.a
  364. trigger = {
  365. NOT = { owns_state = FROM }
  366. }
  367. }
  368.  
  369. option = {
  370. name = nuke_dropped.10.b
  371. trigger = {
  372. owns_state = FROM
  373. }
  374. }
  375. }
  376.  
  377. # Nuclear Attack on Moscow
  378. news_event = {
  379. id = nuke_dropped.11
  380. title = nuke_dropped.11.t
  381. desc = nuke_dropped.11.d
  382. picture = GFX_news_event_nuke
  383.  
  384. is_triggered_only = yes
  385.  
  386. fire_only_once = yes
  387.  
  388. trigger = {
  389. FROM = { state = 219 }
  390. }
  391.  
  392. option = {
  393. name = nuke_dropped.11.a
  394. trigger = {
  395. NOT = { owns_state = FROM }
  396. }
  397. }
  398.  
  399. option = {
  400. name = nuke_dropped.11.b
  401. trigger = {
  402. owns_state = FROM
  403. }
  404. }
  405. }
  406.  
  407. # Nuclear Attack on Copenhagen
  408. news_event = {
  409. id = nuke_dropped.12
  410. title = nuke_dropped.12.t
  411. desc = nuke_dropped.12.d
  412. picture = GFX_news_event_nuke
  413.  
  414. is_triggered_only = yes
  415.  
  416. fire_only_once = yes
  417.  
  418. trigger = {
  419. FROM = { state = 37 }
  420. }
  421.  
  422. option = {
  423. name = nuke_dropped.12.a
  424. trigger = {
  425. OR = {
  426. AND = {
  427. tag = SWE
  428. NOT = { has_war_with = DEN }
  429. }
  430. AND = {
  431. NOT = { owns_state = FROM }
  432. NOT = { tag = SWE }
  433. NOT = { has_war_with = DEN }
  434. }
  435. }
  436. }
  437. }
  438.  
  439. option = {
  440. name = nuke_dropped.12.b
  441. trigger = {
  442. owns_state = FROM
  443. }
  444. }
  445.  
  446. option = {
  447. name = nuke_dropped.12.c
  448. trigger = {
  449. NOT = { owns_state = FROM }
  450. tag = SWE
  451. has_war_with = DEN
  452. }
  453. }
  454. }
  455.  
  456. # Nuclear Attack on Stockholm
  457. news_event = {
  458. id = nuke_dropped.13
  459. title = nuke_dropped.13.t
  460. desc = nuke_dropped.13.d
  461. picture = GFX_news_event_nuke
  462.  
  463. is_triggered_only = yes
  464.  
  465. fire_only_once = yes
  466.  
  467. trigger = {
  468. FROM = { state = 141 }
  469. }
  470.  
  471. option = {
  472. name = nuke_dropped.13.a
  473. trigger = {
  474. NOT = { owns_state = FROM }
  475. }
  476. }
  477.  
  478. option = {
  479. name = nuke_dropped.13.b
  480. trigger = {
  481. owns_state = FROM
  482. }
  483. }
  484. }
  485.  
  486. news_event = {
  487. id = nuke_dropped.50
  488. picture = GFX_news_event_nuke
  489.  
  490. major = yes
  491.  
  492. is_triggered_only = yes
  493.  
  494. hidden = yes
  495.  
  496.  
  497. immediate = {
  498.  
  499. if = {
  500. limit = {
  501. always = yes
  502. }
  503. every_enemy_country = {
  504. limit = { owns_state = FROM }
  505. }
  506. FROM = {
  507. remove_building = { type = infrastructure level = 5 }
  508. remove_building = { type = air_base level = 5 }
  509. remove_building = { type = arms_factory level = 5 }
  510. remove_building = { type = industrial_complex level = 5 }
  511. }
  512. }
  513. if = {
  514. limit = {
  515. always = yes
  516. }
  517. FROM = {
  518. if = {
  519. limit = {
  520. has_state_category = enclave
  521. }
  522. set_state_category = wasteland
  523. }
  524. if = {
  525. limit = {
  526. has_state_category = pastoral
  527. }
  528. set_state_category = wasteland
  529. }
  530. if = {
  531. limit = {
  532. has_state_category = tiny_island
  533. }
  534. set_state_category = wasteland
  535. }
  536. if = {
  537. limit = {
  538. has_state_category = small_island
  539. }
  540. set_state_category = tiny_island
  541. }
  542. if = {
  543. limit = {
  544. has_state_category = rural
  545. }
  546. set_state_category = wasteland
  547. }
  548. if = {
  549. limit = {
  550. has_state_category = town
  551. }
  552. set_state_category = rural
  553. }
  554. if = {
  555. limit = {
  556. has_state_category = large_town
  557. }
  558. set_state_category = town
  559. }
  560. if = {
  561. limit = {
  562. has_state_category = city
  563. }
  564. set_state_category = town
  565. }
  566. if = {
  567. limit = {
  568. has_state_category = large_city
  569. }
  570. set_state_category = town
  571. }
  572. if = {
  573. limit = {
  574. has_state_category = metropolis
  575. }
  576. set_state_category = city
  577. }
  578. if = {
  579. limit = {
  580. has_state_category = megalopolis
  581. }
  582. set_state_category = city
  583. }
  584. }
  585. }
  586. if = {
  587. limit = {
  588. FROM = {
  589. state_population > 500
  590. NOT = { state_population > 12500 }
  591. }
  592. }
  593. FROM = {
  594. add_manpower = -3250
  595. }
  596. break = yes
  597. }
  598. if = {
  599. limit = {
  600. FROM = {
  601. state_population > 12500
  602. NOT = { state_population > 25000 }
  603. }
  604. }
  605. FROM = {
  606. add_manpower = -9375
  607. }
  608. break = yes
  609. }
  610. if = {
  611. limit = {
  612. FROM = {
  613. state_population > 25000
  614. NOT = { state_population > 50000 }
  615. }
  616. }
  617. FROM = {
  618. add_manpower = -18750
  619. }
  620. break = yes
  621. }
  622. if = {
  623. limit = {
  624. FROM = {
  625. state_population > 50000
  626. NOT = { state_population > 75000 }
  627. }
  628. }
  629. FROM = {
  630. add_manpower = -31250
  631. }
  632. break = yes
  633. }
  634. if = {
  635. limit = {
  636. FROM = {
  637. state_population > 75000
  638. NOT = { state_population > 100000 }
  639. }
  640. }
  641. FROM = {
  642. add_manpower = -43750
  643. }
  644. break = yes
  645. }
  646. if = {
  647. limit = {
  648. FROM = {
  649. state_population > 100000
  650. NOT = { state_population > 150000 }
  651. }
  652. }
  653. FROM = {
  654. add_manpower = -62500
  655. }
  656. break = yes
  657. }
  658. if = {
  659. limit = {
  660. FROM = {
  661. state_population > 150000
  662. NOT = { state_population > 200000 }
  663. }
  664. }
  665. FROM = {
  666. add_manpower = -87500
  667. }
  668. break = yes
  669. }
  670. if = {
  671. limit = {
  672. FROM = {
  673. state_population > 200000
  674. NOT = { state_population > 300000 }
  675. }
  676. }
  677. FROM = {
  678. add_manpower = -125000
  679. }
  680. break = yes
  681. }
  682. if = {
  683. limit = {
  684. FROM = {
  685. state_population > 300000
  686. NOT = { state_population > 400000 }
  687. }
  688. }
  689. FROM = {
  690. add_manpower = -175000
  691. }
  692. break = yes
  693. }
  694. if = {
  695. limit = {
  696. FROM = {
  697. state_population > 400000
  698. NOT = { state_population > 500000 }
  699. }
  700. }
  701. FROM = {
  702. add_manpower = -225000
  703. }
  704. break = yes
  705. }
  706. if = {
  707. limit = {
  708. FROM = {
  709. state_population > 500000
  710. NOT = { state_population > 600000 }
  711. }
  712. }
  713. FROM = {
  714. add_manpower = -275000
  715. }
  716. break = yes
  717. }
  718. if = {
  719. limit = {
  720. FROM = {
  721. state_population > 600000
  722. NOT = { state_population > 700000 }
  723. }
  724. }
  725. FROM = {
  726. add_manpower = -325000
  727. }
  728. break = yes
  729. }
  730. if = {
  731. limit = {
  732. FROM = {
  733. state_population > 700000
  734. NOT = { state_population > 800000 }
  735. }
  736. }
  737. FROM = {
  738. add_manpower = -375000
  739. }
  740. break = yes
  741. }
  742. if = {
  743. limit = {
  744. FROM = {
  745. state_population > 800000
  746. NOT = { state_population > 900000 }
  747. }
  748. }
  749. FROM = {
  750. add_manpower = -425000
  751. }
  752. break = yes
  753. }
  754. if = {
  755. limit = {
  756. FROM = {
  757. state_population > 900000
  758. NOT = { state_population > 1000000 }
  759. }
  760. }
  761. FROM = {
  762. add_manpower = -475000
  763. }
  764. break = yes
  765. }
  766. if = {
  767. limit = {
  768. FROM = {
  769. state_population > 1000000
  770. NOT = { state_population > 1250000 }
  771. }
  772. }
  773. FROM = {
  774. add_manpower = -562500
  775. }
  776. break = yes
  777. }
  778. if = {
  779. limit = {
  780. FROM = {
  781. state_population > 1250000
  782. NOT = { state_population > 1500000 }
  783. }
  784. }
  785. FROM = {
  786. add_manpower = -687500
  787. }
  788. break = yes
  789. }
  790. if = {
  791. limit = {
  792. FROM = {
  793. state_population > 1500000
  794. NOT = { state_population > 1750000 }
  795. }
  796. }
  797. FROM = {
  798. add_manpower = -812500
  799. }
  800. break = yes
  801. }
  802. if = {
  803. limit = {
  804. FROM = {
  805. state_population > 1750000
  806. NOT = { state_population > 2000000 }
  807. }
  808. }
  809. FROM = {
  810. add_manpower = -937500
  811. }
  812. break = yes
  813. }
  814. if = {
  815. limit = {
  816. FROM = {
  817. state_population > 2000000
  818. NOT = { state_population > 2500000 }
  819. }
  820. }
  821. FROM = {
  822. add_manpower = -1125000
  823. }
  824. break = yes
  825. }
  826. if = {
  827. limit = {
  828. FROM = {
  829. state_population > 2500000
  830. NOT = { state_population > 3000000 }
  831. }
  832. }
  833. FROM = {
  834. add_manpower = -1375000
  835. }
  836. break = yes
  837. }
  838. if = {
  839. limit = {
  840. FROM = {
  841. state_population > 3000000
  842. NOT = { state_population > 3500000 }
  843. }
  844. }
  845. FROM = {
  846. add_manpower = -1625000
  847. }
  848. break = yes
  849. }
  850. if = {
  851. limit = {
  852. FROM = {
  853. state_population > 3500000
  854. NOT = { state_population > 4000000 }
  855. }
  856. }
  857. FROM = {
  858. add_manpower = -1875000
  859. }
  860. break = yes
  861. }
  862. if = {
  863. limit = {
  864. FROM = {
  865. state_population > 4000000
  866. }
  867. }
  868. FROM = {
  869. add_manpower = -2100000
  870. }
  871. break = yes
  872.  
  873. option = {
  874. name = dummy_nuke_option
  875. }
  876. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement