IronDizaster

Untitled

Jul 10th, 2021 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. Let's make a game!
  2. name:Evolution
  3. by:Sinthorion
  4. version:1
  5.  
  6. Settings
  7. building cost increase:100%
  8. building cost refund:50%
  9.  
  10. Layout
  11. use default
  12. *log
  13. in:main
  14. contains:Log
  15.  
  16. Buttons
  17.  
  18. Resources
  19. *human|humans|person|people|population
  20. name:Human|Humans
  21. desc:Unemployed people. Needed to perform various tasks.
  22. start with:10
  23. on start:gain 10 unemployed
  24. on earn:
  25. if ((humans:ps) == 1)
  26. log A new human is born!
  27. else
  28. log [(humans:ps)] new humans were born!
  29. end
  30. gain (humans:ps) unemployed
  31. end
  32. on lose:
  33. log A human has perished!
  34. if (unemployed>1)
  35. lose 1 unemployed
  36. else
  37. lose 1 worker
  38. end
  39. end
  40. on tick:
  41. $foodNeed = 0.1*people
  42. if ((0.1*people)>=food)
  43. log Food shortage! [10*((0.1*people)-food)]% chance of death
  44. lose chance(10*((0.1*people)-food)%) people
  45. end
  46. lose ($foodNeed) food
  47. // above doesn't seem to work
  48. lose (0.1*people) food
  49. if (humans < room and food > 0) yield chance((humans*0.3)%) human
  50. end
  51. *unemployed
  52. name:Unemployed
  53. desc:Unemployed people. Needed to perform various tasks.
  54. *worker|workers|employed
  55. name:Worker|Workers
  56. desc:Workers employed in various tasks.
  57. *knowledge
  58. name:Knowledge
  59. desc:Ideas for new inventions. Needed for research.
  60. *food
  61. name:Food
  62. desc:Various edibles. Consumed by the population. If food runs out, your people may die.
  63. start with:50
  64. *material|materials|wood|stone|stones
  65. name:Building material|Building materials
  66. desc:Wood and stone. Needed to build buildings.
  67. start with:50
  68.  
  69. Shinies
  70.  
  71. Buildings
  72. *room
  73. text:Living space : [5*huts]
  74. no buy
  75. is always:5*huts
  76.  
  77. *hut|huts
  78. name:Primitive hut|Primitive huts
  79. desc:A simple building for your people to live in.
  80. cost:20 materials
  81. start with:2
  82. unlocked
  83. *logger
  84. name:Logging camp
  85. desc:Building for lumberjacks to produce wood
  86. cost:15 materials, 1 unemployed
  87. on earn:
  88. yield 1 worker
  89. end
  90. on lose:
  91. lose 1 worker
  92. yield 1 unemployed
  93. end
  94. on tick:yield 1 wood
  95. on tick:lose 1 food
  96. unlocked
  97. *farm
  98. name:Farm
  99. desc:Simple food producing building
  100. cost:10 materials, 2 unemployed
  101. on earn:
  102. yield 2 worker
  103. end
  104. on lose:
  105. lose 2 worker
  106. yield 2 unemployed
  107. end
  108. on tick:yield 2 food
  109. unlocked
  110.  
  111. Upgrades
  112.  
  113. Achievements
Advertisement
Add Comment
Please, Sign In to add comment