Advertisement
Ramaraunt1

Untitled

Jan 22nd, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.48 KB | None | 0 0
  1. atmosprite = noone
  2. if planet_heat_measure[s,p] = 1
  3. {
  4. if planet_size_value[s,p] = 1
  5. {
  6. chance = 1 + irandom(7)
  7. if chance = 1
  8. {
  9. type=38 //burning ice planet
  10. }
  11. else if chance = 2
  12. {
  13. type=23 //bipolar planet
  14. }
  15. else if chance = 3
  16. {
  17. type=26 //carbon magma planet
  18. }
  19. else if chance = 4
  20. {
  21. type=56 //glowing metal world
  22. }
  23. else if chance = 6
  24. {
  25. type=25 //sillicate magma planet
  26. }
  27. else if chance = 7
  28. {
  29. type=65 //orange radioactive world
  30. }
  31. else if chance = 8
  32. {
  33. type=54 //graphite diamond world
  34. }
  35. }
  36. else if planet_size_value[s,p] = 2
  37. {
  38. chance = 1 + irandom(9)
  39. if chance = 1
  40. {
  41. type=38 //burning ice planet
  42. }
  43. else if chance = 2
  44. {
  45. type=23 //bipolar planet
  46. }
  47. else if chance = 3
  48. {
  49. type=26 //carbon magma planet
  50. }
  51. else if chance = 4
  52. {
  53. type=56 //glowing metal world
  54. }
  55. else if chance = 6
  56. {
  57. type=25 //sillicate magma planet
  58. }
  59. else if chance = 7
  60. {
  61. type=65 //orange radioactive world
  62. }
  63. else if chance = 8
  64. {
  65. type=27 //iron hazey planet
  66. }
  67. else if chance = 9
  68. {
  69. type=54 //graphite diamond world
  70. }
  71. else if chance = 10
  72. {
  73. type=52 //water plasma planet
  74. }
  75. }
  76. else if planet_size_value[s,p] = 3
  77. {
  78. chance = 1 + irandom(9)
  79. if chance = 1
  80. {
  81. type=38 //burning ice planet
  82. }
  83. else if chance = 2
  84. {
  85. type=23 //bipolar planet
  86. }
  87. else if chance = 3
  88. {
  89. type=26 //carbon magma planet
  90. }
  91. else if chance = 4
  92. {
  93. type=56 //glowing metal world
  94. }
  95. else if chance = 6
  96. {
  97. type=25 //sillicate magma planet
  98. }
  99. else if chance = 7
  100. {
  101. type=65 //orange radioactive world
  102. }
  103. else if chance = 8
  104. {
  105. type=27 //iron hazey planet
  106. }
  107. else if chance = 9
  108. {
  109. type=54 //graphite diamond world
  110. }
  111. else if chance = 10
  112. {
  113. type=52 //water plasma planet
  114. }
  115. }
  116. else if planet_size_value[s,p] = 4
  117. {
  118. chance = 1 + irandom(9)
  119. if chance = 1
  120. {
  121. type=38 //burning ice planet
  122. }
  123. else if chance = 2
  124. {
  125. type=23 //bipolar planet
  126. }
  127. else if chance = 3
  128. {
  129. type=26 //carbon magma planet
  130. }
  131. else if chance = 4
  132. {
  133. type=56 //glowing metal world
  134. }
  135. else if chance = 6
  136. {
  137. type=25 //sillicate magma planet
  138. }
  139. else if chance = 7
  140. {
  141. type=65 //orange radioactive world
  142. }
  143. else if chance = 8
  144. {
  145. type=27 //iron hazey planet
  146. }
  147. else if chance = 9
  148. {
  149. type=54 //graphite diamond world
  150. }
  151. else if chance = 10
  152. {
  153. type=52 //water plasma planet
  154. }
  155. }
  156. else if planet_size_value[s,p] = 5
  157. {
  158. chance = 1 + irandom(9)
  159. if chance = 1
  160. {
  161. type=38 //burning ice planet
  162. }
  163. else if chance = 2
  164. {
  165. type=23 //bipolar planet
  166. }
  167. else if chance = 3
  168. {
  169. type=26 //carbon magma planet
  170. }
  171. else if chance = 4
  172. {
  173. type=56 //glowing metal world
  174. }
  175. else if chance = 6
  176. {
  177. type=25 //sillicate magma planet
  178. }
  179. else if chance = 7
  180. {
  181. type=65 //orange radioactive world
  182. }
  183. else if chance = 8
  184. {
  185. type=27 //iron hazey planet
  186. }
  187. else if chance = 9
  188. {
  189. type=54 //graphite diamond world
  190. }
  191. else if chance = 10
  192. {
  193. type=52 //water plasma planet
  194. }
  195. }
  196. else if planet_size_value[s,p] = 6
  197. {
  198. chance = 1 + irandom(5)
  199. if chance = 1
  200. {
  201. type=1 //cobalt giant
  202. }
  203. else if chance = 2
  204. {
  205. type=8 //helium giant
  206. }
  207. else if chance = 3
  208. {
  209. type=2 //iron giant
  210. }
  211. else if chance = 4
  212. {
  213. type=6 //titanium giant
  214. }
  215. else if chance = 5
  216. {
  217. type=64 //copper giant
  218. }
  219. else if chance = 6
  220. {
  221. type=3 //zinc giant
  222. }
  223. }
  224. }
  225. else if planet_heat_measure[s,p] = 2
  226. {
  227. if planet_size_value[s,p] = 1
  228. {
  229. chance = 1 + irandom(8);
  230. if chance = 1
  231. {
  232. type=63 //cratered white world
  233. }
  234. else if chance = 2
  235. {
  236. type=62 //cratered black world
  237. }
  238. else if chance = 3
  239. {
  240. type=61 //cratered gray world
  241. }
  242. else if chance = 4
  243. {
  244. type=59 //cratered green world
  245. }
  246. else if chance = 5
  247. {
  248. type=58 //cratered red world
  249. }
  250. else if chance = 6
  251. {
  252. type=57 //cratered brown world
  253. }
  254. else if chance = 7
  255. {
  256. type=60 //cratered blue world
  257. }
  258. else if chance = 8
  259. {
  260. type=35 //sulfuric planet
  261. }
  262. else if chance = 9
  263. {
  264. type = 37 //water aquifer planet
  265. }
  266. }
  267. else if planet_size_value[s,p] = 2
  268. {
  269. chance = 1 + irandom(22);
  270. if chance = 1
  271. {
  272. type=63 //cratered white world
  273. }
  274. else if chance = 2
  275. {
  276. type=62 //cratered black world
  277. }
  278. else if chance = 3
  279. {
  280. type=61 //cratered gray world
  281. }
  282. else if chance = 4
  283. {
  284. type=59 //cratered green world
  285. }
  286. else if chance = 5
  287. {
  288. type=58 //cratered red world
  289. }
  290. else if chance = 6
  291. {
  292. type=57 //cratered brown world
  293. }
  294. else if chance = 7
  295. {
  296. type=60 //cratered blue world
  297. }
  298. else if chance = 8
  299. {
  300. type=35 //sulfuric planet
  301. }
  302. else if chance = 9
  303. {
  304. type=36 //sulfur orb planet
  305. atmosprite = c_yellow
  306. }
  307. else if chance = 10
  308. {
  309. type=28 //brown telluric planet
  310. }
  311. else if chance = 11
  312. {
  313. type=29 //red iron planet
  314. }
  315. else if chance = 12
  316. {
  317. type=37 //water aquifer planet
  318. }
  319. else if chance = 13
  320. {
  321. type=33 //black telluric planet
  322. }
  323. else if chance = 14
  324. {
  325. type=34 //white telluric planet
  326. }
  327. else if chance = 15
  328. {
  329. type=32 //gray telluric planet
  330. }
  331. else if chance = 16
  332. {
  333. type=31 //blue telluric planet
  334. }
  335. else if chance = 17
  336. {
  337. type=30 //green telluric planet
  338. }
  339. else if chance = 18
  340. {
  341. type=65 //ornage radioactive world
  342. }
  343. else if chance = 19
  344. {
  345. type=39 //habitable desert planet
  346. }
  347. else if chance = 20
  348. {
  349. type=45 //habitable mesa planet
  350. }
  351. else if chance = 21
  352. {
  353. type=48 //habitable steppe planet
  354. }
  355. else if chance = 22
  356. {
  357. type=46 //habitable tropical planet
  358. }
  359. else if chance = 23
  360. {
  361. type=47 //habitable swampy planet
  362. }
  363. }
  364. else if planet_size_value[s,p] = 3
  365. {
  366. chance = 1 + irandom(22);
  367. if chance = 1
  368. {
  369. type=63 //cratered white world
  370. }
  371. else if chance = 2
  372. {
  373. type=62 //cratered black world
  374. }
  375. else if chance = 3
  376. {
  377. type=61 //cratered gray world
  378. }
  379. else if chance = 4
  380. {
  381. type=59 //cratered green world
  382. }
  383. else if chance = 5
  384. {
  385. type=58 //cratered red world
  386. }
  387. else if chance = 6
  388. {
  389. type=57 //cratered brown world
  390. }
  391. else if chance = 7
  392. {
  393. type=60 //cratered blue world
  394. }
  395. else if chance = 8
  396. {
  397. type=35 //sulfuric planet
  398. }
  399. else if chance = 9
  400. {
  401. type=36 //sulfur orb planet
  402. atmosprite = c_yellow
  403. }
  404. else if chance = 10
  405. {
  406. type=28 //brown telluric planet
  407. }
  408. else if chance = 11
  409. {
  410. type=29 //red iron planet
  411. }
  412. else if chance = 12
  413. {
  414. type=37 //water aquifer planet
  415. }
  416. else if chance = 13
  417. {
  418. type=33 //black telluric planet
  419. }
  420. else if chance = 14
  421. {
  422. type=34 //white telluric planet
  423. }
  424. else if chance = 15
  425. {
  426. type=32 //gray telluric planet
  427. }
  428. else if chance = 16
  429. {
  430. type=31 //blue telluric planet
  431. }
  432. else if chance = 17
  433. {
  434. type=30 //green telluric planet
  435. }
  436. else if chance = 18
  437. {
  438. type=65 //ornage radioactive world
  439. }
  440. else if chance = 19
  441. {
  442. type=39 //habitable desert planet
  443. }
  444. else if chance = 20
  445. {
  446. type=45 //habitable mesa planet
  447. }
  448. else if chance = 21
  449. {
  450. type=48 //habitable steppe planet
  451. }
  452. else if chance = 22
  453. {
  454. type=46 //habitable tropical planet
  455. }
  456. else if chance = 23
  457. {
  458. type=47 //habitable swampy planet
  459. }
  460. }
  461. else if planet_size_value[s,p] = 4
  462. {
  463. chance = 1 + irandom(22);
  464. if chance = 1
  465. {
  466. type=63 //cratered white world
  467. }
  468. else if chance = 2
  469. {
  470. type=62 //cratered black world
  471. }
  472. else if chance = 3
  473. {
  474. type=61 //cratered gray world
  475. }
  476. else if chance = 4
  477. {
  478. type=59 //cratered green world
  479. }
  480. else if chance = 5
  481. {
  482. type=58 //cratered red world
  483. }
  484. else if chance = 6
  485. {
  486. type=57 //cratered brown world
  487. }
  488. else if chance = 7
  489. {
  490. type=60 //cratered blue world
  491. }
  492. else if chance = 8
  493. {
  494. type=35 //sulfuric planet
  495. }
  496. else if chance = 9
  497. {
  498. type=36 //sulfur orb planet
  499. atmosprite = c_yellow
  500. }
  501. else if chance = 10
  502. {
  503. type=28 //brown telluric planet
  504. }
  505. else if chance = 11
  506. {
  507. type=29 //red iron planet
  508. }
  509. else if chance = 12
  510. {
  511. type=37 //water aquifer planet
  512. }
  513. else if chance = 13
  514. {
  515. type=33 //black telluric planet
  516. }
  517. else if chance = 14
  518. {
  519. type=34 //white telluric planet
  520. }
  521. else if chance = 15
  522. {
  523. type=32 //gray telluric planet
  524. }
  525. else if chance = 16
  526. {
  527. type=31 //blue telluric planet
  528. }
  529. else if chance = 17
  530. {
  531. type=30 //green telluric planet
  532. }
  533. else if chance = 18
  534. {
  535. type=65 //ornage radioactive world
  536. }
  537. else if chance = 19
  538. {
  539. type=39 //habitable desert planet
  540. }
  541. else if chance = 20
  542. {
  543. type=45 //habitable mesa planet
  544. }
  545. else if chance = 21
  546. {
  547. type=48 //habitable steppe planet
  548. }
  549. else if chance = 22
  550. {
  551. type=46 //habitable tropical planet
  552. }
  553. else if chance = 23
  554. {
  555. type=47 //habitable swampy planet
  556. }
  557. }
  558. else if planet_size_value[s,p] = 5
  559. {
  560. chance = 1 + irandom(17);
  561. if chance = 1
  562. {
  563. type=63 //cratered white world
  564. }
  565. else if chance = 2
  566. {
  567. type=62 //cratered black world
  568. }
  569. else if chance = 3
  570. {
  571. type=61 //cratered gray world
  572. }
  573. else if chance = 4
  574. {
  575. type=59 //cratered green world
  576. }
  577. else if chance = 5
  578. {
  579. type=58 //cratered red world
  580. }
  581. else if chance = 6
  582. {
  583. type=57 //cratered brown world
  584. }
  585. else if chance = 7
  586. {
  587. type=60 //cratered blue world
  588. }
  589. else if chance = 8
  590. {
  591. type=35 //sulfuric planet
  592. }
  593. else if chance = 9
  594. {
  595. type=36 //sulfur orb planet
  596. atmosprite = c_yellow
  597. }
  598. else if chance = 10
  599. {
  600. type=28 //brown telluric planet
  601. }
  602. else if chance = 11
  603. {
  604. type=29 //red iron planet
  605. }
  606. else if chance = 12
  607. {
  608. type=37 //water aquifer planet
  609. }
  610. else if chance = 13
  611. {
  612. type=33 //black telluric planet
  613. }
  614. else if chance = 14
  615. {
  616. type=34 //white telluric planet
  617. }
  618. else if chance = 15
  619. {
  620. type=32 //gray telluric planet
  621. }
  622. else if chance = 16
  623. {
  624. type=31 //blue telluric planet
  625. }
  626. else if chance = 17
  627. {
  628. type=30 //green telluric planet
  629. }
  630. else if chance = 18
  631. {
  632. type=65 //ornage radioactive world
  633. }
  634.  
  635. }
  636. else if planet_size_value[s,p] = 6
  637. {
  638. chance = 1 + irandom(3)
  639. if chance = 1
  640. {
  641. type=11 //ammonia giant
  642. }
  643. else if chance = 2
  644. {
  645. type=10 //water giant
  646. }
  647. else if chance = 3
  648. {
  649. type=14 //carbon dioxide giant
  650. }
  651. else if chance = 4
  652. {
  653. type=13 //nitrogen dioxide giant
  654. }
  655. }
  656. }
  657. else if planet_heat_measure[s,p] = 3
  658. {
  659. if planet_size_value[s,p] = 1
  660. {
  661. chance = 1 + irandom(8);
  662. if chance = 1
  663. {
  664. type=63 //cratered white world
  665. }
  666. else if chance = 2
  667. {
  668. type=62 //cratered black world
  669. }
  670. else if chance = 3
  671. {
  672. type=61 //cratered gray world
  673. }
  674. else if chance = 4
  675. {
  676. type=59 //cratered green world
  677. }
  678. else if chance = 5
  679. {
  680. type=58 //cratered red world
  681. }
  682. else if chance = 6
  683. {
  684. type=57 //cratered brown world
  685. }
  686. else if chance = 7
  687. {
  688. type=60 //cratered blue world
  689. }
  690. else if chance = 8
  691. {
  692. type=35 //sulfuric planet
  693. }
  694. else if chance = 9
  695. {
  696. type = 37 //water aquifer planet
  697. }
  698. }
  699. else if planet_size_value[s,p] = 2
  700. {
  701. chance = 1 + irandom(21);
  702. if chance = 1
  703. {
  704. type=63 //cratered white world
  705. }
  706. else if chance = 2
  707. {
  708. type=62 //cratered black world
  709. }
  710. else if chance = 3
  711. {
  712. type=61 //cratered gray world
  713. }
  714. else if chance = 4
  715. {
  716. type=59 //cratered green world
  717. }
  718. else if chance = 5
  719. {
  720. type=58 //cratered red world
  721. }
  722. else if chance = 6
  723. {
  724. type=57 //cratered brown world
  725. }
  726. else if chance = 7
  727. {
  728. type=60 //cratered blue world
  729. }
  730. else if chance = 8
  731. {
  732. type=35 //sulfuric planet
  733. }
  734. else if chance = 9
  735. {
  736. type=36 //sulfur orb planet
  737. atmosprite = c_yellow
  738. }
  739. else if chance = 10
  740. {
  741. type=28 //brown telluric planet
  742. }
  743. else if chance = 11
  744. {
  745. type=29 //red iron planet
  746. }
  747. else if chance = 12
  748. {
  749. type=37 //water aquifer planet
  750. }
  751. else if chance = 13
  752. {
  753. type=33 //black telluric planet
  754. }
  755. else if chance = 14
  756. {
  757. type=34 //white telluric planet
  758. }
  759. else if chance = 15
  760. {
  761. type=32 //gray telluric planet
  762. }
  763. else if chance = 16
  764. {
  765. type=31 //blue telluric planet
  766. }
  767. else if chance = 17
  768. {
  769. type=30 //green telluric planet
  770. }
  771. else if chance = 18
  772. {
  773. type=65 //ornage radioactive world
  774. }
  775. else if chance = 19
  776. {
  777. type = 40 //habitable continental planet
  778. }
  779. else if chance = 20
  780. {
  781. type = 44 //habitable mountain planet
  782. }
  783. else if chance = 21
  784. {
  785. type = 41 //habitable ocean planet
  786. }
  787. else if chance = 22
  788. {
  789. type = 47 //habitable swampy planet
  790. }
  791. }
  792. else if planet_size_value[s,p] = 3
  793. {
  794. chance = 1 + irandom(21);
  795. if chance = 1
  796. {
  797. type=63 //cratered white world
  798. }
  799. else if chance = 2
  800. {
  801. type=62 //cratered black world
  802. }
  803. else if chance = 3
  804. {
  805. type=61 //cratered gray world
  806. }
  807. else if chance = 4
  808. {
  809. type=59 //cratered green world
  810. }
  811. else if chance = 5
  812. {
  813. type=58 //cratered red world
  814. }
  815. else if chance = 6
  816. {
  817. type=57 //cratered brown world
  818. }
  819. else if chance = 7
  820. {
  821. type=60 //cratered blue world
  822. }
  823. else if chance = 8
  824. {
  825. type=35 //sulfuric planet
  826. }
  827. else if chance = 9
  828. {
  829. type=36 //sulfur orb planet
  830. atmosprite = c_yellow
  831. }
  832. else if chance = 10
  833. {
  834. type=28 //brown telluric planet
  835. }
  836. else if chance = 11
  837. {
  838. type=29 //red iron planet
  839. }
  840. else if chance = 12
  841. {
  842. type=37 //water aquifer planet
  843. }
  844. else if chance = 13
  845. {
  846. type=33 //black telluric planet
  847. }
  848. else if chance = 14
  849. {
  850. type=34 //white telluric planet
  851. }
  852. else if chance = 15
  853. {
  854. type=32 //gray telluric planet
  855. }
  856. else if chance = 16
  857. {
  858. type=31 //blue telluric planet
  859. }
  860. else if chance = 17
  861. {
  862. type=30 //green telluric planet
  863. }
  864. else if chance = 18
  865. {
  866. type=65 //ornage radioactive world
  867. }
  868. else if chance = 19
  869. {
  870. type = 40 //habitable continental planet
  871. }
  872. else if chance = 20
  873. {
  874. type = 44 //habitable mountain planet
  875. }
  876. else if chance = 21
  877. {
  878. type = 41 //habitable ocean planet
  879. }
  880. else if chance = 22
  881. {
  882. type = 47 //habitable swampy planet
  883. }
  884. }
  885. else if planet_size_value[s,p] = 4
  886. {
  887. chance = 1 + irandom(21);
  888. if chance = 1
  889. {
  890. type=63 //cratered white world
  891. }
  892. else if chance = 2
  893. {
  894. type=62 //cratered black world
  895. }
  896. else if chance = 3
  897. {
  898. type=61 //cratered gray world
  899. }
  900. else if chance = 4
  901. {
  902. type=59 //cratered green world
  903. }
  904. else if chance = 5
  905. {
  906. type=58 //cratered red world
  907. }
  908. else if chance = 6
  909. {
  910. type=57 //cratered brown world
  911. }
  912. else if chance = 7
  913. {
  914. type=60 //cratered blue world
  915. }
  916. else if chance = 8
  917. {
  918. type=35 //sulfuric planet
  919. }
  920. else if chance = 9
  921. {
  922. type=36 //sulfur orb planet
  923. atmosprite = c_yellow
  924. }
  925. else if chance = 10
  926. {
  927. type=28 //brown telluric planet
  928. }
  929. else if chance = 11
  930. {
  931. type=29 //red iron planet
  932. }
  933. else if chance = 12
  934. {
  935. type=37 //water aquifer planet
  936. }
  937. else if chance = 13
  938. {
  939. type=33 //black telluric planet
  940. }
  941. else if chance = 14
  942. {
  943. type=34 //white telluric planet
  944. }
  945. else if chance = 15
  946. {
  947. type=32 //gray telluric planet
  948. }
  949. else if chance = 16
  950. {
  951. type=31 //blue telluric planet
  952. }
  953. else if chance = 17
  954. {
  955. type=30 //green telluric planet
  956. }
  957. else if chance = 18
  958. {
  959. type=65 //ornage radioactive world
  960. }
  961. else if chance = 19
  962. {
  963. type = 40 //habitable continental planet
  964. }
  965. else if chance = 20
  966. {
  967. type = 44 //habitable mountain planet
  968. }
  969. else if chance = 21
  970. {
  971. type = 41 //habitable ocean planet
  972. }
  973. else if chance = 22
  974. {
  975. type = 47 //habitable swampy planet
  976. }
  977. }
  978. else if planet_size_value[s,p] = 5
  979. {
  980. chance = 1 + irandom(17);
  981. if chance = 1
  982. {
  983. type=63 //cratered white world
  984. }
  985. else if chance = 2
  986. {
  987. type=62 //cratered black world
  988. }
  989. else if chance = 3
  990. {
  991. type=61 //cratered gray world
  992. }
  993. else if chance = 4
  994. {
  995. type=59 //cratered green world
  996. }
  997. else if chance = 5
  998. {
  999. type=58 //cratered red world
  1000. }
  1001. else if chance = 6
  1002. {
  1003. type=57 //cratered brown world
  1004. }
  1005. else if chance = 7
  1006. {
  1007. type=60 //cratered blue world
  1008. }
  1009. else if chance = 8
  1010. {
  1011. type=35 //sulfuric planet
  1012. }
  1013. else if chance = 9
  1014. {
  1015. type=36 //sulfur orb planet
  1016. atmosprite = c_yellow
  1017. }
  1018. else if chance = 10
  1019. {
  1020. type=28 //brown telluric planet
  1021. }
  1022. else if chance = 11
  1023. {
  1024. type=29 //red iron planet
  1025. }
  1026. else if chance = 12
  1027. {
  1028. type=37 //water aquifer planet
  1029. }
  1030. else if chance = 13
  1031. {
  1032. type=33 //black telluric planet
  1033. }
  1034. else if chance = 14
  1035. {
  1036. type=34 //white telluric planet
  1037. }
  1038. else if chance = 15
  1039. {
  1040. type=32 //gray telluric planet
  1041. }
  1042. else if chance = 16
  1043. {
  1044. type=31 //blue telluric planet
  1045. }
  1046. else if chance = 17
  1047. {
  1048. type=30 //green telluric planet
  1049. }
  1050. else if chance = 18
  1051. {
  1052. type=65 //ornage radioactive world
  1053. }
  1054.  
  1055. }
  1056. else if planet_size_value[s,p] = 6
  1057. {
  1058. chance = 1 + irandom(4)
  1059. if chance = 1
  1060. {
  1061. type=11 //ammonia giant
  1062. }
  1063. else if chance = 2
  1064. {
  1065. type=10 //water giant
  1066. }
  1067. else if chance = 3
  1068. {
  1069. type=14 //carbon dioxide giant
  1070. }
  1071. else if chance = 4
  1072. {
  1073. type=13 //nitrogen dioxide giant
  1074. }
  1075. else if chance = 5
  1076. {
  1077. type=12 //sulfur giant
  1078. }
  1079. }
  1080. }
  1081. else if planet_heat_measure[s,p] = 4
  1082. {
  1083. if planet_size_value[s,p] = 1
  1084. {
  1085. chance = 1 + irandom(8);
  1086. if chance = 1
  1087. {
  1088. type=63 //cratered white world
  1089. }
  1090. else if chance = 2
  1091. {
  1092. type=62 //cratered black world
  1093. }
  1094. else if chance = 3
  1095. {
  1096. type=61 //cratered gray world
  1097. }
  1098. else if chance = 4
  1099. {
  1100. type=59 //cratered green world
  1101. }
  1102. else if chance = 5
  1103. {
  1104. type=58 //cratered red world
  1105. }
  1106. else if chance = 6
  1107. {
  1108. type=57 //cratered brown world
  1109. }
  1110. else if chance = 7
  1111. {
  1112. type=60 //cratered blue world
  1113. }
  1114. else if chance = 8
  1115. {
  1116. type=35 //sulfuric planet
  1117. }
  1118. else if chance = 9
  1119. {
  1120. type = 37 //water aquifer planet
  1121. }
  1122. }
  1123. else if planet_size_value[s,p] = 2
  1124. {
  1125. chance = 1 + irandom(19);
  1126. if chance = 1
  1127. {
  1128. type=63 //cratered white world
  1129. }
  1130. else if chance = 2
  1131. {
  1132. type=62 //cratered black world
  1133. }
  1134. else if chance = 3
  1135. {
  1136. type=61 //cratered gray world
  1137. }
  1138. else if chance = 4
  1139. {
  1140. type=59 //cratered green world
  1141. }
  1142. else if chance = 5
  1143. {
  1144. type=58 //cratered red world
  1145. }
  1146. else if chance = 6
  1147. {
  1148. type=57 //cratered brown world
  1149. }
  1150. else if chance = 7
  1151. {
  1152. type=60 //cratered blue world
  1153. }
  1154. else if chance = 8
  1155. {
  1156. type=35 //sulfuric planet
  1157. }
  1158. else if chance = 9
  1159. {
  1160. type=36 //sulfur orb planet
  1161. atmosprite = c_yellow
  1162. }
  1163. else if chance = 10
  1164. {
  1165. type=28 //brown telluric planet
  1166. }
  1167. else if chance = 11
  1168. {
  1169. type=29 //red iron planet
  1170. }
  1171. else if chance = 12
  1172. {
  1173. type=37 //water aquifer planet
  1174. }
  1175. else if chance = 13
  1176. {
  1177. type=33 //black telluric planet
  1178. }
  1179. else if chance = 14
  1180. {
  1181. type=34 //white telluric planet
  1182. }
  1183. else if chance = 15
  1184. {
  1185. type=32 //gray telluric planet
  1186. }
  1187. else if chance = 16
  1188. {
  1189. type=31 //blue telluric planet
  1190. }
  1191. else if chance = 17
  1192. {
  1193. type=30 //green telluric planet
  1194. }
  1195. else if chance = 18
  1196. {
  1197. type=65 //ornage radioactive world
  1198. }
  1199. else if chance = 19
  1200. {
  1201. type=43 //chilly mountain planet
  1202. }
  1203. else if chance = 20
  1204. {
  1205. type=42 //habitable snowey planet
  1206. }
  1207. }
  1208. else if planet_size_value[s,p] = 3
  1209. {
  1210. chance = 1 + irandom(19);
  1211. if chance = 1
  1212. {
  1213. type=63 //cratered white world
  1214. }
  1215. else if chance = 2
  1216. {
  1217. type=62 //cratered black world
  1218. }
  1219. else if chance = 3
  1220. {
  1221. type=61 //cratered gray world
  1222. }
  1223. else if chance = 4
  1224. {
  1225. type=59 //cratered green world
  1226. }
  1227. else if chance = 5
  1228. {
  1229. type=58 //cratered red world
  1230. }
  1231. else if chance = 6
  1232. {
  1233. type=57 //cratered brown world
  1234. }
  1235. else if chance = 7
  1236. {
  1237. type=60 //cratered blue world
  1238. }
  1239. else if chance = 8
  1240. {
  1241. type=35 //sulfuric planet
  1242. }
  1243. else if chance = 9
  1244. {
  1245. type=36 //sulfur orb planet
  1246. atmosprite = c_yellow
  1247. }
  1248. else if chance = 10
  1249. {
  1250. type=28 //brown telluric planet
  1251. }
  1252. else if chance = 11
  1253. {
  1254. type=29 //red iron planet
  1255. }
  1256. else if chance = 12
  1257. {
  1258. type=37 //water aquifer planet
  1259. }
  1260. else if chance = 13
  1261. {
  1262. type=33 //black telluric planet
  1263. }
  1264. else if chance = 14
  1265. {
  1266. type=34 //white telluric planet
  1267. }
  1268. else if chance = 15
  1269. {
  1270. type=32 //gray telluric planet
  1271. }
  1272. else if chance = 16
  1273. {
  1274. type=31 //blue telluric planet
  1275. }
  1276. else if chance = 17
  1277. {
  1278. type=30 //green telluric planet
  1279. }
  1280. else if chance = 18
  1281. {
  1282. type=65 //ornage radioactive world
  1283. }
  1284. else if chance = 19
  1285. {
  1286. type=43 //chilly mountain planet
  1287. }
  1288. else if chance = 20
  1289. {
  1290. type=42 //habitable snowey planet
  1291. }
  1292. }
  1293. else if planet_size_value[s,p] = 4
  1294. {
  1295. chance = 1 + irandom(19);
  1296. if chance = 1
  1297. {
  1298. type=63 //cratered white world
  1299. }
  1300. else if chance = 2
  1301. {
  1302. type=62 //cratered black world
  1303. }
  1304. else if chance = 3
  1305. {
  1306. type=61 //cratered gray world
  1307. }
  1308. else if chance = 4
  1309. {
  1310. type=59 //cratered green world
  1311. }
  1312. else if chance = 5
  1313. {
  1314. type=58 //cratered red world
  1315. }
  1316. else if chance = 6
  1317. {
  1318. type=57 //cratered brown world
  1319. }
  1320. else if chance = 7
  1321. {
  1322. type=60 //cratered blue world
  1323. }
  1324. else if chance = 8
  1325. {
  1326. type=35 //sulfuric planet
  1327. }
  1328. else if chance = 9
  1329. {
  1330. type=36 //sulfur orb planet
  1331. atmosprite = c_yellow
  1332. }
  1333. else if chance = 10
  1334. {
  1335. type=28 //brown telluric planet
  1336. }
  1337. else if chance = 11
  1338. {
  1339. type=29 //red iron planet
  1340. }
  1341. else if chance = 12
  1342. {
  1343. type=37 //water aquifer planet
  1344. }
  1345. else if chance = 13
  1346. {
  1347. type=33 //black telluric planet
  1348. }
  1349. else if chance = 14
  1350. {
  1351. type=34 //white telluric planet
  1352. }
  1353. else if chance = 15
  1354. {
  1355. type=32 //gray telluric planet
  1356. }
  1357. else if chance = 16
  1358. {
  1359. type=31 //blue telluric planet
  1360. }
  1361. else if chance = 17
  1362. {
  1363. type=30 //green telluric planet
  1364. }
  1365. else if chance = 18
  1366. {
  1367. type=65 //ornage radioactive world
  1368. }
  1369. else if chance = 19
  1370. {
  1371. type=43 //chilly mountain planet
  1372. }
  1373. else if chance = 20
  1374. {
  1375. type=42 //habitable snowey planet
  1376. }
  1377. }
  1378. else if planet_size_value[s,p] = 5
  1379. {
  1380. chance = 1 + irandom(17);
  1381. if chance = 1
  1382. {
  1383. type=63 //cratered white world
  1384. }
  1385. else if chance = 2
  1386. {
  1387. type=62 //cratered black world
  1388. }
  1389. else if chance = 3
  1390. {
  1391. type=61 //cratered gray world
  1392. }
  1393. else if chance = 4
  1394. {
  1395. type=59 //cratered green world
  1396. }
  1397. else if chance = 5
  1398. {
  1399. type=58 //cratered red world
  1400. }
  1401. else if chance = 6
  1402. {
  1403. type=57 //cratered brown world
  1404. }
  1405. else if chance = 7
  1406. {
  1407. type=60 //cratered blue world
  1408. }
  1409. else if chance = 8
  1410. {
  1411. type=35 //sulfuric planet
  1412. }
  1413. else if chance = 9
  1414. {
  1415. type=36 //sulfur orb planet
  1416. atmosprite = c_yellow
  1417. }
  1418. else if chance = 10
  1419. {
  1420. type=28 //brown telluric planet
  1421. }
  1422. else if chance = 11
  1423. {
  1424. type=29 //red iron planet
  1425. }
  1426. else if chance = 12
  1427. {
  1428. type=37 //water aquifer planet
  1429. }
  1430. else if chance = 13
  1431. {
  1432. type=33 //black telluric planet
  1433. }
  1434. else if chance = 14
  1435. {
  1436. type=34 //white telluric planet
  1437. }
  1438. else if chance = 15
  1439. {
  1440. type=32 //gray telluric planet
  1441. }
  1442. else if chance = 16
  1443. {
  1444. type=31 //blue telluric planet
  1445. }
  1446. else if chance = 17
  1447. {
  1448. type=30 //green telluric planet
  1449. }
  1450. else if chance = 18
  1451. {
  1452. type=65 //ornage radioactive world
  1453. }
  1454. }
  1455. else if planet_size_value[s,p] = 6
  1456. {
  1457. chance = 1 + irandom(3)
  1458. if chance = 1
  1459. {
  1460. type=13 //nitrogen dioxide giant
  1461. }
  1462. if chance = 2
  1463. {
  1464. type=9 //methane giant
  1465. }
  1466. if chance = 3
  1467. {
  1468. type=14 //carbon dioxide giant
  1469. }
  1470. if chance = 4
  1471. {
  1472. type=12 //sulfur giant
  1473. }
  1474. }
  1475. }
  1476. else if planet_heat_measure[s,p] = 5 //chilly
  1477. {
  1478. if planet_size_value[s,p] = 1 //tiny
  1479. {
  1480. chance = 1 + irandom(12);
  1481. if chance = 1
  1482. {
  1483. type=63 //cratered white world
  1484. }
  1485. else if chance = 2
  1486. {
  1487. type=62 //cratered black world
  1488. }
  1489. else if chance = 3
  1490. {
  1491. type=61 //cratered gray world
  1492. }
  1493. else if chance = 4
  1494. {
  1495. type=59 //cratered green world
  1496. }
  1497. else if chance = 5
  1498. {
  1499. type=58 //cratered red world
  1500. }
  1501. else if chance = 6
  1502. {
  1503. type=57 //cratered brown world
  1504. }
  1505. else if chance = 7
  1506. {
  1507. type=60 //cratered blue world
  1508. }
  1509. else if chance = 8
  1510. {
  1511. type=35 //sulfuric planet
  1512. }
  1513. else if chance = 9
  1514. {
  1515. type = 37 //water aquifer planet
  1516. }
  1517. else if chance = 10
  1518. {
  1519. type = 67 //snow covered planet
  1520. }
  1521. else if chance = 11
  1522. {
  1523. type=49 //nitrogen ice planet
  1524. }
  1525. else if chance = 12
  1526. {
  1527. type=50 //water volcano planet
  1528. }
  1529. else if chance = 13
  1530. {
  1531. type=51 //ice covered ocean planet
  1532. }
  1533. }
  1534. else if planet_size_value[s,p] = 2 //small
  1535. {
  1536. chance = 1 + irandom(21);
  1537. if chance = 1
  1538. {
  1539. type=63 //cratered white world
  1540. }
  1541. else if chance = 2
  1542. {
  1543. type=62 //cratered black world
  1544. }
  1545. else if chance = 3
  1546. {
  1547. type=61 //cratered gray world
  1548. }
  1549. else if chance = 4
  1550. {
  1551. type=59 //cratered green world
  1552. }
  1553. else if chance = 5
  1554. {
  1555. type=58 //cratered red world
  1556. }
  1557. else if chance = 6
  1558. {
  1559. type=57 //cratered brown world
  1560. }
  1561. else if chance = 7
  1562. {
  1563. type=60 //cratered blue world
  1564. }
  1565. else if chance = 8
  1566. {
  1567. type=35 //sulfuric planet
  1568. }
  1569. else if chance = 9
  1570. {
  1571. type=36 //sulfur orb planet
  1572. atmosprite = c_yellow
  1573. }
  1574. else if chance = 10
  1575. {
  1576. type=28 //brown telluric planet
  1577. }
  1578. else if chance = 11
  1579. {
  1580. type=29 //red iron planet
  1581. }
  1582. else if chance = 12
  1583. {
  1584. type=37 //water aquifer planet
  1585. }
  1586. else if chance = 13
  1587. {
  1588. type=33 //black telluric planet
  1589. }
  1590. else if chance = 14
  1591. {
  1592. type=34 //white telluric planet
  1593. }
  1594. else if chance = 15
  1595. {
  1596. type=32 //gray telluric planet
  1597. }
  1598. else if chance = 16
  1599. {
  1600. type=31 //blue telluric planet
  1601. }
  1602. else if chance = 17
  1603. {
  1604. type=30 //green telluric planet
  1605. }
  1606. else if chance = 18
  1607. {
  1608. type=65 //ornage radioactive world
  1609. }
  1610. else if chance = 19
  1611. {
  1612. type = 67 //snow covered planet
  1613. }
  1614. else if chance = 20
  1615. {
  1616. type=49 //nitrogen ice planet
  1617. }
  1618. else if chance = 21
  1619. {
  1620. type=50 //water volcano planet
  1621. }
  1622. else if chance = 22
  1623. {
  1624. type=51 //ice covered ocean planet
  1625. }
  1626. }
  1627. else if planet_size_value[s,p] = 3 //medium
  1628. {
  1629. chance = 1 + irandom(21);
  1630. if chance = 1
  1631. {
  1632. type=63 //cratered white world
  1633. }
  1634. else if chance = 2
  1635. {
  1636. type=62 //cratered black world
  1637. }
  1638. else if chance = 3
  1639. {
  1640. type=61 //cratered gray world
  1641. }
  1642. else if chance = 4
  1643. {
  1644. type=59 //cratered green world
  1645. }
  1646. else if chance = 5
  1647. {
  1648. type=58 //cratered red world
  1649. }
  1650. else if chance = 6
  1651. {
  1652. type=57 //cratered brown world
  1653. }
  1654. else if chance = 7
  1655. {
  1656. type=60 //cratered blue world
  1657. }
  1658. else if chance = 8
  1659. {
  1660. type=35 //sulfuric planet
  1661. }
  1662. else if chance = 9
  1663. {
  1664. type=36 //sulfur orb planet
  1665. atmosprite = c_yellow
  1666. }
  1667. else if chance = 10
  1668. {
  1669. type=28 //brown telluric planet
  1670. }
  1671. else if chance = 11
  1672. {
  1673. type=29 //red iron planet
  1674. }
  1675. else if chance = 12
  1676. {
  1677. type=37 //water aquifer planet
  1678. }
  1679. else if chance = 13
  1680. {
  1681. type=33 //black telluric planet
  1682. }
  1683. else if chance = 14
  1684. {
  1685. type=34 //white telluric planet
  1686. }
  1687. else if chance = 15
  1688. {
  1689. type=32 //gray telluric planet
  1690. }
  1691. else if chance = 16
  1692. {
  1693. type=31 //blue telluric planet
  1694. }
  1695. else if chance = 17
  1696. {
  1697. type=30 //green telluric planet
  1698. }
  1699. else if chance = 18
  1700. {
  1701. type=65 //ornage radioactive world
  1702. }
  1703. else if chance = 19
  1704. {
  1705. type = 67 //snow covered planet
  1706. }
  1707. else if chance = 20
  1708. {
  1709. type=49 //nitrogen ice planet
  1710. }
  1711. else if chance = 21
  1712. {
  1713. type=50 //water volcano planet
  1714. }
  1715. else if chance = 22
  1716. {
  1717. type=51 //ice covered ocean planet
  1718. }
  1719. }
  1720. else if planet_size_value[s,p] = 4 //large
  1721. {
  1722. chance = 1 + irandom(21);
  1723. if chance = 1
  1724. {
  1725. type=63 //cratered white world
  1726. }
  1727. else if chance = 2
  1728. {
  1729. type=62 //cratered black world
  1730. }
  1731. else if chance = 3
  1732. {
  1733. type=61 //cratered gray world
  1734. }
  1735. else if chance = 4
  1736. {
  1737. type=59 //cratered green world
  1738. }
  1739. else if chance = 5
  1740. {
  1741. type=58 //cratered red world
  1742. }
  1743. else if chance = 6
  1744. {
  1745. type=57 //cratered brown world
  1746. }
  1747. else if chance = 7
  1748. {
  1749. type=60 //cratered blue world
  1750. }
  1751. else if chance = 8
  1752. {
  1753. type=35 //sulfuric planet
  1754. }
  1755. else if chance = 9
  1756. {
  1757. type=36 //sulfur orb planet
  1758. atmosprite = c_yellow
  1759. }
  1760. else if chance = 10
  1761. {
  1762. type=28 //brown telluric planet
  1763. }
  1764. else if chance = 11
  1765. {
  1766. type=29 //red iron planet
  1767. }
  1768. else if chance = 12
  1769. {
  1770. type=37 //water aquifer planet
  1771. }
  1772. else if chance = 13
  1773. {
  1774. type=33 //black telluric planet
  1775. }
  1776. else if chance = 14
  1777. {
  1778. type=34 //white telluric planet
  1779. }
  1780. else if chance = 15
  1781. {
  1782. type=32 //gray telluric planet
  1783. }
  1784. else if chance = 16
  1785. {
  1786. type=31 //blue telluric planet
  1787. }
  1788. else if chance = 17
  1789. {
  1790. type=30 //green telluric planet
  1791. }
  1792. else if chance = 18
  1793. {
  1794. type=65 //ornage radioactive world
  1795. }
  1796. else if chance = 19
  1797. {
  1798. type = 67 //snow covered planet
  1799. }
  1800. else if chance = 20
  1801. {
  1802. type=49 //nitrogen ice planet
  1803. }
  1804. else if chance = 21
  1805. {
  1806. type=50 //water volcano planet
  1807. }
  1808. else if chance = 22
  1809. {
  1810. type=51 //ice covered ocean planet
  1811. }
  1812. }
  1813. else if planet_size_value[s,p] = 5 //huge
  1814. {
  1815. chance = 1 + irandom(21);
  1816. if chance = 1
  1817. {
  1818. type=63 //cratered white world
  1819. }
  1820. else if chance = 2
  1821. {
  1822. type=62 //cratered black world
  1823. }
  1824. else if chance = 3
  1825. {
  1826. type=61 //cratered gray world
  1827. }
  1828. else if chance = 4
  1829. {
  1830. type=59 //cratered green world
  1831. }
  1832. else if chance = 5
  1833. {
  1834. type=58 //cratered red world
  1835. }
  1836. else if chance = 6
  1837. {
  1838. type=57 //cratered brown world
  1839. }
  1840. else if chance = 7
  1841. {
  1842. type=60 //cratered blue world
  1843. }
  1844. else if chance = 8
  1845. {
  1846. type=35 //sulfuric planet
  1847. }
  1848. else if chance = 9
  1849. {
  1850. type=36 //sulfur orb planet
  1851. atmosprite = c_yellow
  1852. }
  1853. else if chance = 10
  1854. {
  1855. type=28 //brown telluric planet
  1856. }
  1857. else if chance = 11
  1858. {
  1859. type=29 //red iron planet
  1860. }
  1861. else if chance = 12
  1862. {
  1863. type=37 //water aquifer planet
  1864. }
  1865. else if chance = 13
  1866. {
  1867. type=33 //black telluric planet
  1868. }
  1869. else if chance = 14
  1870. {
  1871. type=34 //white telluric planet
  1872. }
  1873. else if chance = 15
  1874. {
  1875. type=32 //gray telluric planet
  1876. }
  1877. else if chance = 16
  1878. {
  1879. type=31 //blue telluric planet
  1880. }
  1881. else if chance = 17
  1882. {
  1883. type=30 //green telluric planet
  1884. }
  1885. else if chance = 18
  1886. {
  1887. type=65 //ornage radioactive world
  1888. }
  1889. else if chance = 19
  1890. {
  1891. type = 67 //snow covered planet
  1892. }
  1893. else if chance = 20
  1894. {
  1895. type=49 //nitrogen ice planet
  1896. }
  1897. else if chance = 21
  1898. {
  1899. type=50 //water volcano planet
  1900. }
  1901. else if chance = 22
  1902. {
  1903. type=51 //ice covered ocean planet
  1904. }
  1905. }
  1906. else if planet_size_value[s,p] = 6 //supermassive
  1907. {
  1908. chance = 1 + irandom(5)
  1909. if chance = 1
  1910. {
  1911. type=15 //blue ice giant
  1912. }
  1913. else if chance = 2
  1914. {
  1915. type=16 //cyan ice giant
  1916. }
  1917. else if chance = 3
  1918. {
  1919. type=17 //dark blue ice giant
  1920. }
  1921. else if chance = 4
  1922. {
  1923. type=18 //purple ice giant
  1924. }
  1925. else if chance = 5
  1926. {
  1927. type=19 //pink giant
  1928. }
  1929. else if chance = 6
  1930. {
  1931. type=20 //orange giant
  1932. }
  1933. else if chance = 7
  1934. {
  1935. type=22 //neon giant
  1936. }
  1937. else if chance = 8
  1938. {
  1939. type=21 //yellow giant
  1940. }
  1941. }
  1942. }
  1943. else if planet_heat_measure[s,p] = 0 //super hot
  1944. {
  1945. if planet_size_value[s,p] = 1 //tiny
  1946. {
  1947. type=53 //lava world
  1948. }
  1949. else if planet_size_value[s,p] = 2 //small
  1950. {
  1951. type=53 //lava world
  1952. }
  1953. else if planet_size_value[s,p] = 3 //medium
  1954. {
  1955. type=53 //lava world
  1956. }
  1957. else if planet_size_value[s,p] = 4 //large
  1958. {
  1959. type=53 //lava world
  1960. }
  1961. else if planet_size_value[s,p] = 5 //huge
  1962. {
  1963. type=53 //lava world
  1964. }
  1965. else if planet_size_value[s,p] = 6 //supermassive
  1966. {
  1967. chance = 1 + irandom(2)
  1968. if chance = 1
  1969. {
  1970. type=7 //sillicate giant
  1971. atmosprite = c_yellow
  1972. }
  1973. else if chance = 2
  1974. {
  1975. type= 4 //black giant
  1976. atmosprite = c_black
  1977. }
  1978. else if chance = 3
  1979. {
  1980. type=5 //red striped giant
  1981. atmosprite = c_red
  1982. }
  1983. }
  1984. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement