time 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. ! WD: Variable not set needed for events in Village Gadyukino
  185. if osadki < painweather:
  186. set sunWeather = 1
  187. else
  188. set sunWeather = 0
  189. end
  190. if osadki >= painweather and umbrella = 0:
  191. if mop > 1:
  192. mop = 0
  193. 'You do not have an umbrella.'
  194. end
  195. if hapri = 1:
  196. hapri = 0
  197. if curly > 0:curly -= 1
  198. 'You do not have an umbrella.'
  199. end
  200. end
  201. if isprok = 0 and mesec > 0 and preg = 0:
  202. '<b><font color="red">You have the blood flowing in the legs and staining the linen clothes.</font></b>'
  203. if clrbelo > 0:clrbelo -= 1
  204. sweat += 1
  205. manna -= 10
  206. willpower -= 10
  207. gs 'starenie'
  208. end
  209. ! WD: Fix vibrator arousal triggering every time module is called, moved too 'stat' location
  210. !!!0.2.6 extension: Optimized a bit of code
  211. !! if vibratorin = 1:horny += rand(1, 5)
  212. !!!
  213. if hour = 0:
  214. fcolor = rgb(255, 255, 255)
  215. bcolor = rgb(0, 0, 0)
  216. elseif hour = 1:
  217. fcolor = rgb(255, 255, 255)
  218. bcolor = rgb(5, 5, 5)
  219. elseif hour = 2:
  220. fcolor = rgb(255, 255, 255)
  221. bcolor = rgb(10, 10, 10)
  222. elseif hour = 3:
  223. fcolor = rgb(255, 255, 255)
  224. bcolor = rgb(30, 15, 15)
  225. elseif hour = 4:
  226. fcolor = rgb(255, 255, 255)
  227. bcolor = rgb(60, 20, 20)
  228. elseif hour = 5:
  229. fcolor = rgb(255, 255, 255)
  230. bcolor = rgb(100, 40, 40)
  231. elseif hour = 6:
  232. fcolor = rgb(0, 0, 0)
  233. bcolor = rgb(200, 100, 100)
  234. elseif hour = 7:
  235. fcolor = rgb(0, 0, 0)
  236. bcolor = rgb(250, 150, 150)
  237. elseif hour = 8:
  238. fcolor = rgb(0, 0, 0)
  239. bcolor = rgb(250, 200, 200)
  240. elseif hour = 9:
  241. fcolor = rgb(0, 0, 0)
  242. bcolor = rgb(250, 245, 245)
  243. elseif hour = 10:
  244. fcolor = rgb(0, 0, 0)
  245. bcolor = rgb(255, 250, 250)
  246. elseif hour = 11:
  247. fcolor = rgb(0, 0, 0)
  248. bcolor = rgb(255, 255, 255)
  249. elseif hour = 12:
  250. fcolor = rgb(0, 0, 0)
  251. bcolor = rgb(255, 255, 255)
  252. elseif hour = 13:
  253. fcolor = rgb(0, 0, 0)
  254. bcolor = rgb(255, 255, 255)
  255. elseif hour = 14:
  256. fcolor = rgb(0, 0, 0)
  257. bcolor = rgb(255, 250, 250)
  258. elseif hour = 15:
  259. fcolor = rgb(0, 0, 0)
  260. bcolor = rgb(255, 245, 245)
  261. elseif hour = 16:
  262. fcolor = rgb(0, 0, 0)
  263. bcolor = rgb(250, 240, 240)
  264. elseif hour = 17:
  265. fcolor = rgb(0, 0, 0)
  266. bcolor = rgb(250, 230, 230)
  267. elseif hour = 18:
  268. fcolor = rgb(0, 0, 0)
  269. bcolor = rgb(250, 220, 220)
  270. elseif hour = 19:
  271. fcolor = rgb(0, 0, 0)
  272. bcolor = rgb(250, 210, 210)
  273. elseif hour = 20:
  274. fcolor = rgb(0, 0, 0)
  275. bcolor = rgb(250, 200, 200)
  276. elseif hour = 21:
  277. fcolor = rgb(0, 0, 0)
  278. bcolor = rgb(250, 150, 150)
  279. elseif hour = 22:
  280. fcolor = rgb(255, 255, 255)
  281. bcolor = rgb(25, 25, 25)
  282. elseif hour = 23:
  283. fcolor = rgb(255, 255, 255)
  284. bcolor = rgb(5, 5, 5)
  285. end
  286. if temper <= 0:
  287. if palto = 1:bonusZ = -3
  288. if palto = 2:bonusZ = 0
  289. if palto = 3:bonusZ = 3
  290. if temper < -10 and palto = 1:
  291. frost += 1
  292. if energy < 5:frost += 1
  293. if tanga = 0:frost += 1
  294. if sweat > 0:frost += 1
  295. elseif temper < -20 and palto = 2:
  296. frost += 1
  297. if energy < 5:frost += 1
  298. if sweat > 0:frost += 1
  299. elseif temper< -30 and palto = 3:
  300. frost += 1
  301. end
  302. if palto <= 0:
  303. if temper < -10:frost += 1
  304. if temper < -20:frost += 2
  305. if temper < -30:frost += 5
  306. end
  307. if frost >= 12:sick += 1
  308. if sick > 0 and sickstage = 0:sickstage = 1
  309. end
  310. --- time ---------------------------------