1
0

time 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. # time
  2. If month = 1 and pogodaday ! day:
  3. pogodaday = day
  4. temper = rand(-30, 8)
  5. if temper <= 0:
  6. osadki = rand(0, 10)
  7. if osadki < painweather:
  8. $osadki = 'Clear.'
  9. else
  10. $osadki = 'Goes fluffy snow.'
  11. end
  12. else
  13. osadki = rand(0, 10)
  14. if osadki < painweather:
  15. $osadki = 'Clear the snow begins to melt some places forming slush.'
  16. else
  17. $osadki = 'Wet snow falls, which immediately melts forming slush.'
  18. end
  19. end
  20. $pogoda = 'On the street there is snow, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  21. end
  22. If month = 2 and pogodaday ! day:
  23. pogodaday = day
  24. temper = rand(-35, 8)
  25. if temper <= 0:
  26. osadki = rand(0, 10)
  27. if osadki < painweather:
  28. $osadki = 'Cloudy and windy.'
  29. else
  30. $osadki = 'It''s snowing.'
  31. end
  32. else
  33. osadki = rand(0, 10)
  34. if osadki < painweather:
  35. $osadki = 'Clear the snow begins to melt some places forming slush.'
  36. else
  37. $osadki = 'Wet snow falls, which immediately melts forming slush.'
  38. end
  39. end
  40. $pogoda = 'On the street there is snow, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  41. end
  42. If month = 3 and pogodaday ! day:
  43. pogodaday = day
  44. temper = rand(-20, 17)
  45. if temper <= 0:
  46. osadki = rand(0, 10)
  47. if osadki < painweather:
  48. $osadki = 'Clear and cloudless.'
  49. else
  50. $osadki = 'It''s snowing.'
  51. end
  52. else
  53. osadki = rand(0, 10)
  54. if osadki < painweather:
  55. $osadki = 'Clear the snow begins to melt some places forming slush.'
  56. else
  57. $osadki = 'Wet snow falls, which immediately melts forming slush.'
  58. end
  59. end
  60. $pogoda = 'On the street there is snow, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  61. end
  62. If month = 4 and pogodaday ! day:
  63. pogodaday = day
  64. temper = rand(2, 20)
  65. osadki = rand(0, 10)
  66. if osadki < painweather:
  67. if hour >= 7 and hour <= 20:
  68. $osadki = 'Clear.'
  69. else
  70. $osadki = 'Clear.'
  71. end
  72. else
  73. $osadki = 'Rain.'
  74. end
  75. $pogoda = 'On the street the snow melts, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  76. end
  77. If month = 5 and pogodaday ! day:
  78. pogodaday = day
  79. temper = rand(7, 25)
  80. osadki = rand(0, 10)
  81. if osadki < painweather:
  82. $osadki = 'Clear.'
  83. else
  84. $osadki = 'Rain.'
  85. end
  86. $pogoda = 'From puddles in the street rastaevshego snow, dirt and debris all around seem after winter, something where new grass pleases the eye with its greenery, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  87. end
  88. If month = 6 and pogodaday ! day:
  89. pogodaday = day
  90. temper = rand(15, 35)
  91. osadki = rand(0, 10)
  92. if osadki < painweather:
  93. $osadki = 'Clear.'
  94. else
  95. $osadki = 'Rain.'
  96. end
  97. $pogoda = 'On the street the green grass, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  98. end
  99. If month = 7 and pogodaday ! day:
  100. pogodaday = day
  101. temper = rand(20, 40)
  102. osadki = rand(0, 10)
  103. if osadki < painweather:
  104. $osadki = 'Clear.'
  105. else
  106. $osadki = 'Warm rain comes.'
  107. end
  108. $pogoda = 'Green grass on the street, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  109. end
  110. If month = 8 and pogodaday ! day:
  111. pogodaday = day
  112. temper = rand(20, 35)
  113. osadki = rand(0, 10)
  114. if osadki < painweather:
  115. $osadki = 'Clear.'
  116. else
  117. $osadki = 'Warm rain comes.'
  118. end
  119. $pogoda = 'Outdoors green grass, where some are already visible yellowing leaves, temperature <<temper>> degrees Celsius. <<$osadki>>'
  120. end
  121. If month = 9 and pogodaday ! day:
  122. pogodaday = day
  123. temper = rand(10, 30)
  124. osadki = rand(0, 10)
  125. if osadki < painweather:
  126. $osadki = 'Clear.'
  127. else
  128. $osadki = 'Rain.'
  129. end
  130. $pogoda = 'Street zhuhnet grass, visible yellow leaves, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  131. end
  132. If month = 10 and pogodaday ! day:
  133. pogodaday = day
  134. temper = rand(2, 20)
  135. osadki = rand(0, 10)
  136. if osadki < painweather:
  137. $osadki = 'Clear.'
  138. else
  139. $osadki = 'Goes cold rain.'
  140. end
  141. $pogoda = 'On the street faded grass, falling yellow leaves, mud and puddles around, temperature <<temper>> degrees Celsius. <<$osadki>>'
  142. end
  143. If month = 11 and pogodaday ! day:
  144. pogodaday = day
  145. temper = rand(-20, 17)
  146. if temper <= 0:
  147. osadki = rand(0, 10)
  148. if osadki < painweather:
  149. $osadki = 'Clear and cloudless.'
  150. else
  151. $osadki = 'It''s snowing.'
  152. end
  153. else
  154. osadki = rand(0, 10)
  155. if osadki < painweather:
  156. $osadki = 'Clear the snow begins to melt some places forming slush.'
  157. else
  158. $osadki = 'Cold rain.'
  159. end
  160. end
  161. $pogoda = 'The street is dirty and thin snow cover, temperature <<temper>> degrees Celsius. <<$osadki>>'
  162. end
  163. If month = 12 and pogodaday ! day:
  164. pogodaday = day
  165. temper = rand(-30, 8)
  166. if temper <= 0:
  167. osadki = rand(0, 10)
  168. if osadki < painweather:
  169. $osadki = 'Cloudy and windy.'
  170. else
  171. $osadki = 'Goes fluffy snow.'
  172. end
  173. else:
  174. osadki = rand(0, 10)
  175. if osadki < painweather:
  176. $osadki = 'Clear the snow begins to melt some places forming slush.'
  177. else
  178. $osadki = 'Wet snow falls, which immediately melts forming slush.'
  179. end
  180. end
  181. $pogoda = 'On the street there is snow, the temperature <<temper>> degrees Celsius. <<$osadki>>'
  182. end
  183. pl '<<$pogoda>>'
  184. if osadki >= painweather and umbrella = 0:
  185. if mop > 1:
  186. mop = 0
  187. 'You do not have an umbrella.'
  188. end
  189. if hapri = 1:
  190. hapri = 0
  191. if curly > 0:curly -= 1
  192. 'You do not have an umbrella.'
  193. end
  194. end
  195. if isprok = 0 and mesec > 0 and preg = 0:
  196. '<b><font color="red">You have the blood flowing in the legs and staining the linen clothes.</font></b>'
  197. if clrbelo > 0:clrbelo -= 1
  198. sweat += 1
  199. manna -= 10
  200. willpower -= 10
  201. gs 'starenie'
  202. end
  203. !!!0.2.6 extension: Optimized a bit of code
  204. if vibratorin = 1:horny += rand(1, 5)
  205. !!!
  206. if hour = 0:
  207. fcolor = rgb(255, 255, 255)
  208. bcolor = rgb(0, 0, 0)
  209. elseif hour = 1:
  210. fcolor = rgb(255, 255, 255)
  211. bcolor = rgb(5, 5, 5)
  212. elseif hour = 2:
  213. fcolor = rgb(255, 255, 255)
  214. bcolor = rgb(10, 10, 10)
  215. elseif hour = 3:
  216. fcolor = rgb(255, 255, 255)
  217. bcolor = rgb(30, 15, 15)
  218. elseif hour = 4:
  219. fcolor = rgb(255, 255, 255)
  220. bcolor = rgb(60, 20, 20)
  221. elseif hour = 5:
  222. fcolor = rgb(255, 255, 255)
  223. bcolor = rgb(100, 40, 40)
  224. elseif hour = 6:
  225. fcolor = rgb(0, 0, 0)
  226. bcolor = rgb(200, 100, 100)
  227. elseif hour = 7:
  228. fcolor = rgb(0, 0, 0)
  229. bcolor = rgb(250, 150, 150)
  230. elseif hour = 8:
  231. fcolor = rgb(0, 0, 0)
  232. bcolor = rgb(250, 200, 200)
  233. elseif hour = 9:
  234. fcolor = rgb(0, 0, 0)
  235. bcolor = rgb(250, 245, 245)
  236. elseif hour = 10:
  237. fcolor = rgb(0, 0, 0)
  238. bcolor = rgb(255, 250, 250)
  239. elseif hour = 11:
  240. fcolor = rgb(0, 0, 0)
  241. bcolor = rgb(255, 255, 255)
  242. elseif hour = 12:
  243. fcolor = rgb(0, 0, 0)
  244. bcolor = rgb(255, 255, 255)
  245. elseif hour = 13:
  246. fcolor = rgb(0, 0, 0)
  247. bcolor = rgb(255, 255, 255)
  248. elseif hour = 14:
  249. fcolor = rgb(0, 0, 0)
  250. bcolor = rgb(255, 250, 250)
  251. elseif hour = 15:
  252. fcolor = rgb(0, 0, 0)
  253. bcolor = rgb(255, 245, 245)
  254. elseif hour = 16:
  255. fcolor = rgb(0, 0, 0)
  256. bcolor = rgb(250, 240, 240)
  257. elseif hour = 17:
  258. fcolor = rgb(0, 0, 0)
  259. bcolor = rgb(250, 230, 230)
  260. elseif hour = 18:
  261. fcolor = rgb(0, 0, 0)
  262. bcolor = rgb(250, 220, 220)
  263. elseif hour = 19:
  264. fcolor = rgb(0, 0, 0)
  265. bcolor = rgb(250, 210, 210)
  266. elseif hour = 20:
  267. fcolor = rgb(0, 0, 0)
  268. bcolor = rgb(250, 200, 200)
  269. elseif hour = 21:
  270. fcolor = rgb(0, 0, 0)
  271. bcolor = rgb(250, 150, 150)
  272. elseif hour = 22:
  273. fcolor = rgb(255, 255, 255)
  274. bcolor = rgb(25, 25, 25)
  275. elseif hour = 23:
  276. fcolor = rgb(255, 255, 255)
  277. bcolor = rgb(5, 5, 5)
  278. end
  279. if temper <= 0:
  280. if palto = 1:bonusZ = -3
  281. if palto = 2:bonusZ = 0
  282. if palto = 3:bonusZ = 3
  283. if temper < -10 and palto = 1:
  284. frost += 1
  285. if energy < 5:frost += 1
  286. if tanga = 0:frost += 1
  287. if sweat > 0:frost += 1
  288. elseif temper < -20 and palto = 2:
  289. frost += 1
  290. if energy < 5:frost += 1
  291. if sweat > 0:frost += 1
  292. elseif temper< -30 and palto = 3:
  293. frost += 1
  294. end
  295. if palto <= 0:
  296. if temper < -10:frost += 1
  297. if temper < -20:frost += 2
  298. if temper < -30:frost += 5
  299. end
  300. if frost >= 12:sick += 1
  301. if sick > 0 and sickstage = 0:sickstage = 1
  302. end
  303. --- time ---------------------------------