cikl.qsrc 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186
  1. # cikl
  2. !!------------------------------------------------------------------------------------------------------------
  3. !! Masseuse Job (MUST COME BEFORE DAY CHANGES)
  4. !!------------------------------------------------------------------------------------------------------------
  5. if masseuse['jobtype'] < 1:
  6. masseuse['<<week>>_shift_1'] = 0
  7. masseuse['<<week>>_shift_2'] = 0
  8. masseuse['<<week>>_shift_3'] = 0
  9. end
  10. if (masseuse['<<week>>_shift_1'] ! 0 or masseuse['<<week>>_shift_2'] ! 0 or masseuse['<<week>>_shift_3'] ! 0) and masseuse['last_worked_day'] ! daystart:
  11. masseuse['missed_shift2'] = 1
  12. end
  13. !!----------------------------------------------------------------------------
  14. !! Time calculations
  15. day += 1
  16. week += 1
  17. hour -= 24
  18. if day > monthsEnd[month]:
  19. day -= monthsEnd[month]
  20. month += 1
  21. !! Changing the year at new year and making sure February have the correct number of days.
  22. if month > 12:
  23. month = 1
  24. year += 1
  25. if ((year mod 4 = 0) and (year mod 100 ! 0)) or (year mod 400 = 0):
  26. monthsend[2] = 29
  27. else
  28. monthsend[2] = 28
  29. end
  30. end
  31. !!MJ: Dont think that one is needed. But it was in the original loop.
  32. if month < 1: month = 1
  33. $month = $monthName[month]
  34. !! new years party calculation
  35. temp = func('shortgs','dow',year,12,31)
  36. if temp < 6:
  37. nyp_day = 31
  38. elseif temp = 6:
  39. nyp_day = 30
  40. else
  41. nyp_day = 29
  42. end
  43. end
  44. !!MJ: Dont think that one is needed. But it was here already.
  45. if day <= 0:day = 1
  46. ciklNewWeek = 0
  47. if week > 7:
  48. odd_week = iif(odd_week,0,1)
  49. ciklNewWeek = 1
  50. :loopweek
  51. week -= 7
  52. husbandrink = 0
  53. if military = 1:military = 0
  54. if week > 7:jump 'loopweek'
  55. end
  56. gs 'daystart'
  57. gs 'yearstart'
  58. !!----------------------------------------------------------------------------
  59. !!Fame call to update all the fame variables
  60. gs 'fame'
  61. !!Cycle stats for Contacts
  62. gs 'telefon', 'DailyStatRefresh', ciklNewWeek
  63. !!moving the porn schedule ahead a day, flaffing for missed shootings, if it even matters
  64. if (film > 0 or pornstack = 1) and pfilmNO = 0 and pfilmSTOP = 0:
  65. if pfilmday[0] > 0: gs 'pornschedule', 'pornmiss'
  66. gs 'pornschedule', 'schedule'
  67. end
  68. !! set the time when the SMS will be send
  69. gs 'booty_call', 'scheduler'
  70. !!------------------------------------------------------------------------------------------------------------
  71. !! Job Stuff
  72. !!------------------------------------------------------------------------------------------------------------
  73. !! masseuse paycheck
  74. if masseuse['weeks_pay'] > 0 and week = 5:masseuse['paycheck'] = 1
  75. if masseuse['jobtype'] > 0 and week = 5 and masseuse['weeks_pay'] > 0:
  76. masseuse['payday'] = 1
  77. end
  78. if week = 7 and masseuse['schedule_update'] ! daystart: gs 'masseuse_schedule','schedule_reset'
  79. !!modelling check
  80. if model_week ! (daystart - week) / 7:model_job_week = 0
  81. !!acting strings to set available jobs
  82. if casting = 1:
  83. acting_string1 = rand(10000000,199999999)
  84. acting_string2 = rand(10000000,199999999)
  85. end
  86. dynamic $hypnoDaychange
  87. !!phone reset for bf
  88. ringA = 0
  89. ringB = 0
  90. ringC = 0
  91. !!Appearance Age
  92. vidageday -= 1
  93. if vidageday <= 0:
  94. vidageday = 360
  95. vidage += 1
  96. end
  97. !!Birthday
  98. age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
  99. if ((month * 100) + day) <= pcs_dob mod 10000: age -= 1
  100. if birthday = day and birthmonth = month and model['age'] > 0:model['age'] += 1
  101. if workDolgDay > 0: workDolgDay -= 1
  102. if QWdogreiqTimer > 0: QWdogreiqTimer -= 1
  103. if husband > 0: husbanday += 1
  104. if husband > 10 and husbanday > 0: husband -= 15
  105. if fingal > 0: fingal -= 1
  106. if husbandMark = 1 and husband <= 10:
  107. husbizvradd = 0
  108. husbharmin = 0
  109. husbandMark = 0
  110. husband = 0
  111. divorced += 1
  112. if KFOnLineReaga > 0:KFOnLineReaga -= 1
  113. '<b><font color="red">Your husband has filed for a divorce.</font></b>'
  114. end
  115. !! after having surgery you will be in recuperation for a few days
  116. if surgeryday ! '':
  117. if daystart - 7 <= surgeryday:
  118. dailyhealthimprov = (daystart - surgeryday) * 50
  119. pcs_health = dailyhealthimprov
  120. recuperation = 1
  121. else
  122. killvar 'recuperation'
  123. killvar 'dailyhealthimprov'
  124. end
  125. end
  126. !!Street events daily reset
  127. streetevent_hour = -2
  128. !!Clothing stock and price randomizers
  129. Clothingstock = rand (0,23)
  130. i = 1
  131. :loopprice
  132. Clothingstock[i] = rand (0,500)
  133. i += 1
  134. if i <= 147:jump 'loopprice'
  135. if dyneval ('RESULT = <<$coatworntype>>_coats_h[<<coatwornnumber>>]') <= 0: $coatworntype = 'none'
  136. !! Abortion and pregnancy recovery resets if finished
  137. if abortionbirthdate ! 0 and daystart - abortionbirthdate > 24: abortionbirthdate = 0
  138. if pregbirthdate ! 0 and daystart - pregbirthdate > 73: pregbirthdate = 0
  139. !!------------------------------------------------------------------------------------------------------------
  140. !! Nympho
  141. !!------------------------------------------------------------------------------------------------------------
  142. !! Reserved for nympho trait
  143. if nymphosex_flag = 1:
  144. end
  145. nymphosex_flag = 0
  146. !!------------------------------------------------------------------------------------------------------------
  147. !! Bimbo
  148. !!------------------------------------------------------------------------------------------------------------
  149. !!bimbo flag set in stat_display if bimbo clothing, shoes and makeup are worn at same time
  150. if succubusflag = 0 or CheatBimbo2 = 1:
  151. if cheatBimbo = 0 and bimbo_flag = 1:
  152. bimbo += 1
  153. end
  154. end
  155. !!Once bimbolevel is set to 1, must use the withdrawal in stat to return to 0
  156. if bimbo > 0 or bimbolevel > 0:
  157. if bimbo < 10:
  158. if bimbo_flag = 0:
  159. bimbo -= 2
  160. end
  161. elseif bimbo < 20:
  162. bimbolevel = 1
  163. elseif bimbo < 30:
  164. bimbolevel = 2
  165. else
  166. bimbolevel = 3
  167. end
  168. end
  169. if bimbo >= 40: bimbo = 40
  170. !!Bimbo levels. They use custom variables so they won''t permanently change character stats
  171. if bimbolevel = 0: supnatvnesh = 0 & bimbostupidity = 0
  172. if CheatBimbo2 = 0:
  173. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 6)
  174. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 4)
  175. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = (pcs_intel / 3)
  176. elseif CheatBimbo2 = 1:
  177. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = 0
  178. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = 0
  179. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = 0
  180. end
  181. !!A Succubus cannot be a Bimbo
  182. if succubusflag = 1 and CheatBimbo3 = 0:
  183. if bimbolevel > 0 and bimbo > 0: bimbowithdrawal = 40
  184. elseif bimbolevel >= 1:
  185. !!Checks flag and adds withdrawal if 0
  186. if bimbo_flag = 0:
  187. bimbowithdrawal += 1
  188. else
  189. bimbowithdrawal = 0
  190. end
  191. end
  192. if bimbo < 0: bimbo = 0
  193. !! flag reset
  194. bimbo_flag = 0
  195. !!------------------------------------------------------------------------------------------------------------
  196. !! Butt slut
  197. !!------------------------------------------------------------------------------------------------------------
  198. if orgasm_anal > orgasm_anal[1]:
  199. if pcs_traits['buttslut_lvl'] > 0: pcs_traits['buttslut_exp'] += orgasm_anal - orgasm_anal[1]
  200. else
  201. if pcs_traits['buttslut_exp'] > 1: pcs_traits['buttslut_exp'] -= 1
  202. end
  203. orgasm_anal[1] = orgasm_anal
  204. if orgasm_anal > 10 and pcs_traits['buttslut_lvl'] = 0: pcs_traits['buttslut_lvl'] = 1
  205. if pcs_traits['buttslut_exp'] >= 15 and pcs_traits['buttslut_lvl'] = 1: pcs_traits['buttslut_lvl'] = 2 & pcs_traits['buttslut_exp'] = 0
  206. if pcs_traits['buttslut_exp'] >= 50 and pcs_traits['buttslut_lvl'] = 2: pcs_traits['buttslut_lvl'] = 3
  207. if pcs_traits['buttslut_exp'] <= 0 and pcs_traits['buttslut_lvl'] = 3: pcs_traits['buttslut_lvl'] = 2 & pcs_traits['buttslut_exp'] = 0
  208. !!------------------------------------------------------------------------------------------------------------
  209. !! Exhibitionism
  210. !!------------------------------------------------------------------------------------------------------------
  211. if pcs_exhib > 0 or exhibitionist_lvl > 0:
  212. if pcs_exhib < 10:
  213. pcs_exhib -= 1
  214. elseif pcs_exhib < 50:
  215. exhibitionist_lvl = 1
  216. elseif pcs_exhib < 100 or exhibitionQW < 3:
  217. exhibitionist_lvl = 2
  218. elseif exhibitionQW > 2:
  219. exhibitionist_lvl = 3
  220. end
  221. end
  222. !!Inhibition increases from wearing revealing clothing
  223. if exhibition_outdoors > 0:
  224. if pcs_inhib > 90:
  225. exhibition_outdoors = exhibition_outdoors * 3
  226. elseif pcs_inhib > 75:
  227. exhibition_outdoors = exhibition_outdoors * 5 / 2
  228. elseif pcs_inhib > 60:
  229. exhibition_outdoors = exhibition_outdoors * 2
  230. elseif pcs_inhib > 30:
  231. exhibition_outdoors = exhibition_outdoors * 3 / 2
  232. end
  233. if exhibition_outdoors <= 5:
  234. inhib_exp += rand(3,6)
  235. elseif exhibition_outdoors <= 10:
  236. inhib_exp += rand(5,9)
  237. elseif exhibition_outdoors <= 15:
  238. inhib_exp += rand(7,12)
  239. elseif exhibition_outdoors <= 20:
  240. inhib_exp += rand(9,15)
  241. elseif exhibition_outdoors <= 25:
  242. inhib_exp += rand(12,20)
  243. elseif exhibition_outdoors <= 30:
  244. inhib_exp += rand(16,25)
  245. elseif exhibition_outdoors <= 35:
  246. inhib_exp += rand(20,30)
  247. elseif exhibition_outdoors <= 40:
  248. inhib_exp += rand(25,40)
  249. elseif exhibition_outdoors <= 50:
  250. inhib_exp += rand(35,50)
  251. elseif exhibition_outdoors <= 65:
  252. inhib_exp += rand(50,75)
  253. else
  254. inhib_exp += rand(70,100)
  255. end
  256. end
  257. exhibition_outdoors = 0
  258. !!------------------------------------------------------------------------------------------------------------
  259. !! Succubus Level & hunger calcs
  260. !!------------------------------------------------------------------------------------------------------------
  261. if succubusflag = 1: gs 'succubus','cikl'
  262. !!------------------------------------------------------------------------------------------------------------
  263. if defcurly = 0 and curly > 0:curly -= 1
  264. if defcurly = 1:
  265. if straight > 0: straight -= 1
  266. if straight = 0: curly = 2147483647
  267. end
  268. ! WD: Added daily reduction of braids for Maruda Hair Mod
  269. if hbraids > 0: hbraids -= 1
  270. gs 'sweat', 'add', 2
  271. if pcs_tan > 0: pcs_tan -= 1
  272. if prezikmsg = 2: prezikmsg = 3
  273. gs 'fertility', 'birth_control'
  274. if birth_control['think_safe'] ! 1:
  275. stat['safe_day'] = 0
  276. stat['probably_safe_day'] = 0
  277. stat['dangerous_day'] = 0
  278. if cycle > 3:
  279. stat['safe_day'] = 1
  280. elseif cycle = 0 or cycle = 3:
  281. stat['probably_safe_day'] = 1
  282. else
  283. stat['dangerous_day'] = 1
  284. end
  285. end
  286. !!------------------------------------------------------------------------------------------------------------
  287. if pcs_breath = 1:pcs_breath = 0
  288. if cheatNoEat = 1 and dounspell = 1:fat += 15
  289. !!Trauma decay
  290. if mood_trauma > 0: mood_trauma -= 1
  291. !!STD check
  292. if SifacOnce = 1:Sifilis += 1
  293. if GerpesOnce = 1:Gerpes += 1
  294. if TriperOnce = 1:
  295. if Triper > 0:
  296. Triper += 1
  297. end
  298. if TriperOral > 0:
  299. TriperOral += 1
  300. end
  301. If TriperOral > 14 and TriperNapr = 0:
  302. if rand(TriperOral,100) > 80:
  303. TriperOral = 0
  304. if Triper = 0:TriperOnce = 0
  305. TriperOralSigns = 0
  306. end
  307. end
  308. end
  309. if KandidozOnce = 1:Kandidoz += 1
  310. Venera = 0
  311. if SifacOnce = 1: Venera += 1
  312. if GerpesOnce = 1: Venera += 1
  313. if TriperOnce = 1: Venera += 1
  314. !! Fail safe
  315. if ashrinkdays = 0: ashrinkdays = 6
  316. if vshrinkdays = 0: vshrinkdays = 6
  317. if pcs_ass > 1 and ashrink > 0 and analplugIN = 0:
  318. if daystart mod(ashrinkdays) = 0: pcs_ass -= ashrink
  319. if pcs_ass < 0: pcs_ass = 0
  320. end
  321. if pcs_vag > 10 and vshrink > 0:
  322. if daystart mod(vshrinkdays) = 0: pcs_vag -= vshrink
  323. if pcs_vag < 0: pcs_vag = 0
  324. end
  325. lipkoef -= rand(0,1)
  326. if lipkoef <= 0: lipkoef = 0
  327. if isprok = 1 or isprokp = 1:
  328. isprok_lastday = 1
  329. else
  330. isprok_lastday = 0
  331. end
  332. if Enable_autotampon = 0 and isprok = 1: isprok = 0 & 'You threw away your used tampon.'
  333. if Enable_autotampon = 0 and isprokp = 1:isprokp = 0 & 'You threw away your used sanitary pad.'
  334. if preg = 1:
  335. pregtime = pregchem / 24
  336. if pregtimes = 0:pregtimes = 1
  337. elseif preg = 2 and pregminut < totminut:
  338. if Enable_nogameover = 0 :
  339. cla
  340. *clr
  341. over = 4
  342. MSG '<center><b>A horrible pain shoots through your body.</b></center>'
  343. xgt 'gameover'
  344. exit
  345. else
  346. MSG'<font color=red><B>You should die for giving birth unprepared, but Cheat Mode keeps you Alive.</B></font>'
  347. pregminut = totminut + 1440
  348. end
  349. elseif preg = 0:
  350. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A14'
  351. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A16'
  352. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A23'
  353. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A28'
  354. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A29'
  355. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A33'
  356. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A34'
  357. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A69'
  358. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A131'
  359. !{killvar 'pregTalkFamily' -- Do not kill this (Abortion talk).}
  360. killvar 'pcs_pregtalk'
  361. killvar 'pregTalk'
  362. killvar 'pregtime'
  363. killvar 'knowpreg'
  364. killvar 'denypreg'
  365. killvar '$wombthfath'
  366. end
  367. !!------------------------------------------------------------------------------------------------------------
  368. !! Arousal
  369. !!------------------------------------------------------------------------------------------------------------
  370. if $start_type[1] ! 'nomagic':
  371. if pcs_horny < 100:pcs_horny += pcs_vag
  372. else
  373. if stat['think_virgin'] = 1:
  374. razeba = 0
  375. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 10
  376. if pcs_horny > 50:pcs_horny -= 25
  377. elseif stat['think_virgin'] = 0:
  378. if pregtimes = 0:
  379. if age < 18:
  380. razeba = 1
  381. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 5
  382. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 10
  383. if pcs_horny >= 80:pcs_horny -= 20
  384. elseif age >= 18 and age < 21:
  385. razeba = 2
  386. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 1
  387. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 5
  388. if pcs_horny >= 80:pcs_horny -= 10
  389. elseif age >= 21 and age < 25:
  390. razeba = 3
  391. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 1
  392. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 1
  393. if pcs_horny >= 80:pcs_horny -= 5
  394. elseif age >= 25 and age < 30:
  395. razeba = 4
  396. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 5
  397. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 1
  398. if pcs_horny >= 80:pcs_horny -= 5
  399. elseif age >= 30:
  400. razeba = 5
  401. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  402. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  403. if pcs_horny >= 80:pcs_horny += 1
  404. end
  405. elseif pregtimes > 0:
  406. if preg = 0:
  407. razeba = 5
  408. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  409. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  410. if pcs_horny >= 80:pcs_horny += 1
  411. elseif preg > 0:
  412. razeba = 6
  413. if pcs_horny < 100:pcs_horny += pregchem / 240
  414. end
  415. end
  416. end
  417. end
  418. if pcs_horny < 0:pcs_horny = 0
  419. !!------------------------------------------------------------------------------------------------------------
  420. !reset Natasha Belova''s clothes
  421. if NatbelQW['seethroughwearing'] = 1: NatbelQW['seethroughwearing'] = 0
  422. !!------------------------------------------------------------------------------------------------------------
  423. !counter for Dimka avoidance
  424. if dimaFilm = 1 and dimaRudeBlock = 0:
  425. nodimkaK += 1
  426. DimkaWarnedToday = 0
  427. end
  428. !!------------------------------------------------------------------------------------------------------------
  429. !!Fame degradation
  430. gs 'fame', 'deg'
  431. !!Traits
  432. gs 'traits', 'overnight'
  433. !!------------------------------------------------------------------------------------------------------------
  434. !! Clothing wear and tear
  435. gs 'starenie'
  436. !!cocaine reduction
  437. if nark > 60:
  438. nark = 60
  439. elseif nark > 30:
  440. nark -= 3
  441. elseif nark > 0:
  442. nark -= 1
  443. end
  444. if pregchem > 240:fat += 1
  445. !!------------------------------------------------------------------------------------------------------------
  446. !! Pain
  447. !!------------------------------------------------------------------------------------------------------------
  448. if pain['head'] > 0:pain['head'] -= rand(1,3)
  449. if pain['hair'] > 0:pain['hair'] -= rand(1,3)
  450. if pain['ears'] > 0:pain['ears'] -= rand(1,3)
  451. if pain['eyebrows'] > 0:pain['eyebrows'] -= rand(1,3)
  452. if pain['eyes'] > 0:pain['eyes'] -= rand(1,3)
  453. if pain['cheeks'] > 0:pain['cheeks'] -= rand(1,3)
  454. if pain['nose'] > 0:pain['nose'] -= rand(1,3)
  455. if pain['mouth'] > 0:pain['mouth'] -= rand(1,3)
  456. if pain['lips'] > 0:pain['lips'] -= rand(1,3)
  457. if pain['tongue'] > 0:pain['tongue'] -= rand(1,3)
  458. if pain['throat'] > 0:pain['throat'] -= rand(1,3)
  459. if pain['neck'] > 0:pain['neck'] -= rand(1,3)
  460. if pain['back'] > 0:pain['back'] -= rand(1,3)
  461. if pain['asscheeks'] > 0:pain['asscheeks'] -= rand(1,3)
  462. if pain['asshole'] > 0:pain['asshole'] -= rand(1,3)
  463. if pain['hips'] > 0:pain['hips'] -= rand(1,3)
  464. if pain['thighs'] > 0:pain['thighs'] -= rand(1,3)
  465. if pain['legL'] > 0:pain['legL'] -= rand(1,3)
  466. if pain['legR'] > 0:pain['legR'] -= rand(1,3)
  467. if pain['feet'] > 0:pain['feet'] -= rand(1,3)
  468. if pain['toes'] > 0:pain['toes'] -= rand(1,3)
  469. if pain['shoulders'] > 0:pain['shoulders'] -= rand(1,3)
  470. if pain['armL'] > 0:pain['armL'] -= rand(1,3)
  471. if pain['armR'] > 0:pain['armR'] -= rand(1,3)
  472. if pain['hands'] > 0:pain['hands'] -= rand(1,3)
  473. if pain['fingers'] > 0:pain['fingers'] -= rand(1,3)
  474. if pain['chest'] > 0:pain['chest'] -= rand(1,3)
  475. if pain['breasts'] > 0:pain['breasts'] -= rand(1,3)
  476. if pain['nipples'] > 0:pain['nipples'] -= rand(1,3)
  477. if pain['ribs'] > 0:pain['ribs'] -= rand(1,3)
  478. if pain['tummy'] > 0:pain['tummy'] -= rand(1,3)
  479. if pain['pubic'] > 0:pain['pubic'] -= rand(1,3)
  480. if pain['vaginal'] > 0:pain['vaginal'] -= rand(1,3)
  481. if pain['labia'] > 0:pain['labia'] -= rand(1,3)
  482. if pain['clitoris'] > 0:pain['clitoris'] -= rand(1,3)
  483. if pain['urethra'] > 0:pain['urethra'] -= rand(1,3)
  484. if pain['cervix'] > 0:pain['cervix'] -= rand(1,3)
  485. if painpub = 2:
  486. if painpubday + 5 < daystart:
  487. $painpub = 'Your vulva is painfully sore.'
  488. painpub = 1
  489. painpubday = daystart
  490. elseif painpubday + 5 >= daystart:
  491. $painpub = 'Your vulva is painfully sore.'
  492. end
  493. elseif painpub = 1:
  494. if painpubday + 5 < daystart:
  495. $painpub = ''
  496. painpub = 0
  497. painpubday = daystart
  498. elseif painpubday + 5 >= daystart:
  499. $painpub = 'Your vulva is a little sore.'
  500. end
  501. end
  502. prezikProver += 1
  503. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  504. if shorthair = 1:
  505. shorthairday += 1
  506. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  507. end
  508. !!------------------------------------------------------------------------------------------------------------
  509. !!Resetting the counter for relationship modifications that are limited in how many time a day they can be applied.
  510. killvar 'npc_rel_daily'
  511. !!Resetting the counters for npc reactions after certain time periods have passed.
  512. gs 'npc_reactions', 'cikl'
  513. !!Keeping Christina hating Sveta
  514. gs 'Zvereva_events', 'cikl'
  515. !!if Vitek''s ex he never forgives her
  516. if kotovLoveQW = -1:
  517. gs 'npc_relationship', 'set', 'A9', '0'
  518. end
  519. !!Updating Katja''s variables.
  520. gs 'katja_procedural', 'cikl'
  521. if npc_rel['A69'] > 60 and rand(0,3) = 0:npc_rel['A69'] -= 1
  522. !!Making Sonia''s fall progress if the player do not see the scenes at the disco, by making it such that if at a Sunday her fall have not advanced this weekend it will automatically advance.
  523. gs 'soniadisco', 'cikl'
  524. dmishaevent = 0
  525. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  526. if GspravkaT = 1:Gspravka -= 1
  527. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] = 30:BurgerQW['IlyQW'] = 3
  528. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] > 0 and BurgerQW['IlyQWPoliceDayCount'] < 30:BurgerQW['IvanQWPoliceDayCount'] += 1
  529. !!remove degradation for inhibition
  530. inhib_flr = inhib_lvl
  531. gs 'stat_sklattrib', 'daycall'
  532. !Update body measurements and base appearnce
  533. gs 'body', 'DailyUpdate'
  534. gs 'AppearanceSystem', 'UpdateBaseAppearnce'
  535. gs 'body_desc'
  536. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  537. !!Pussy_Kats job settings
  538. inWorkYoungShop = 0
  539. if week = 1 and young_shop_work = 100: young_shop_work = 1
  540. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  541. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  542. husbandsexday = 0
  543. borsexkol = 0
  544. givisexday = 0
  545. if shantsr > 0:
  546. pay = shantsr * 5000
  547. karta += pay
  548. shantsr = 0
  549. end
  550. if shantbog > 0:
  551. :shantftb
  552. shantftbgrand = rand(0, 10)
  553. if shantftbgrand > 2:
  554. shantpopala += 1
  555. shantbog -= 1
  556. if shantbog > 0:jump 'shantftb'
  557. elseif shantftbgrand <= 2:
  558. karta += 30000
  559. shantbog -= 1
  560. if shantbog > 0:jump 'shantftb'
  561. end
  562. end
  563. petersexday = 0
  564. klismaday1 = 0
  565. !!ugly duckling start becoming a swan
  566. if uglyduck_flag = 1 and hotcat >= 5:
  567. killvar 'uglyduck_flag'
  568. gs 'npc_relationship', 'socialgroup_setting_boys', 10, 10, 10, 10, 0, 0
  569. grupvalue[1] += 100
  570. old_grupvalue[1] += 100
  571. end
  572. !! Resetting relationships that go over the max
  573. :toptemprel
  574. if temprel < aarraynumber:
  575. temprel +=1
  576. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  577. jump 'toptemprel'
  578. end
  579. killvar 'temprel'
  580. gs 'bank', 'cikl'
  581. killvar 'holyday'
  582. killvar 'kanikuli'
  583. killvar 'pcs_ate'
  584. killvar 'pcs_drank'
  585. !! THIS IS THE OLD SYSTEM. Only keeping this in while it''s still in use as reference for the old variables, otherwise THESE VALUES ARE NOT THE CORRECT ONES FOR NEW VARIABLES
  586. !!sisboyparty
  587. !!-1 - don''t go to the party
  588. !!0 - don''t know about parties
  589. !!1 - knows about the parties
  590. !!2 - agreed to go to the party
  591. !!3 - Missed the party
  592. !!suspension ends
  593. if suspended['day'] = daystart: suspended['on'] = 0
  594. if mid($start_type,1,2) = 'sg':
  595. !!Party refresh if you didn''t see sis
  596. if week = 1 and sisboyparty ! 2:
  597. if sisterQW['party'] = -1: sisterQW['party'] = 0
  598. if sisboypartyQW >= 2 and sisboyparty > 0:
  599. sisboyparty_day = daystart + rand(3,5)
  600. end
  601. end
  602. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  603. if SchoolAtestat = 0 and SchoolBlock = 0:
  604. if month = 12 and day > 25:
  605. if day < 31:
  606. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  607. else
  608. $holyday = '<b>Winter Break starts tomorrow.</b>'
  609. end
  610. elseif month = 1 and day <= 15:
  611. kanikuli = 2
  612. if day < 13:
  613. $holyday = '<b>Winter Break.</b>'
  614. elseif day < 15:
  615. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  616. else
  617. $holyday = '<b>Last day of Winter Break.</b>'
  618. end
  619. elseif month = 3 and day > 13:
  620. if day < 19:
  621. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  622. elseif day = 19:
  623. $holyday = '<b>Spring Break starts tomorrow.</b>'
  624. elseif day >= 20 and day <= 26:
  625. kanikuli = 3
  626. if day < 24:
  627. $holyday = '<b>Spring Break.</b>'
  628. elseif day < 26:
  629. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  630. else
  631. $holyday = '<b>Last day of Spring Break.</b>'
  632. end
  633. end
  634. elseif month = 5:
  635. if year = 2017:
  636. if day = 25:
  637. kanikuli = 6
  638. SchoolAtestat = -1
  639. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  640. elseif day = 24:
  641. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  642. elseif day >= 19:
  643. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  644. end
  645. elseif day >= 25:
  646. if day = 31:
  647. $holyday = '<b>Summer Break starts tomorrow.</b>'
  648. else
  649. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  650. end
  651. end
  652. elseif month = 6 or month = 7 or month = 8:
  653. kanikuli = 4
  654. if month = 8 and day >= 25:
  655. if day = 31:
  656. $holyday = '<b>Last day of Summer Break.</b>'
  657. else
  658. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  659. end
  660. else
  661. $holyday = '<b>Summer Break.</b>'
  662. end
  663. !! start inc 'I put it here because I want to reset these variables during the summer, they are related to cheerleading and it is useful just in case that PC will be part of the team for more than one year.'
  664. killvar 'first_time_outside_in_cold_weather'
  665. killvar 'first_time_doing_basketball'
  666. killvar 'first_time_spring_football_match'
  667. !! end inc
  668. elseif month = 10 and day >= 29:
  669. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  670. elseif month = 11:
  671. if day < 3:
  672. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  673. elseif day = 3:
  674. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  675. elseif day < 6:
  676. kanikuli = 1
  677. $holyday = '<b>Autumn Break.</b>'
  678. elseif day < 11:
  679. kanikuli = 1
  680. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  681. elseif day = 11:
  682. kanikuli = 1
  683. $holyday = '<b>Last day of Autumn Break.</b>'
  684. end
  685. end
  686. if kanikuli = 0 and week < 6:
  687. if week = 1:
  688. !!The start and end values for i have to be changed if more female schoolgirl npcs are added to the game
  689. i = 11
  690. :hotcat_calc_jump
  691. i += 1
  692. if hotcat_rating['A<<i>>'] = 0: jump 'hotcat_calc_jump'
  693. switch_rand = rand(1,100)
  694. if hotcat_movement['A<<i>>'] = 0 and switch_rand < 21:
  695. hotcat_rating['A<<i>>'] -= 1
  696. hotcat_movement['A<<i>>'] -= 1
  697. elseif hotcat_movement['A<<i>>'] = 0 and switch_rand > 80:
  698. hotcat_rating['A<<i>>'] += 1
  699. hotcat_movement['A<<i>>'] += 1
  700. elseif hotcat_movement['A<<i>>'] = 1 and switch_rand > 40:
  701. hotcat_rating['A<<i>>'] -= 1
  702. hotcat_movement['A<<i>>'] -= 1
  703. elseif hotcat_movement['A<<i>>'] = -1 and switch_rand > 40:
  704. hotcat_rating['A<<i>>'] += 1
  705. hotcat_movement['A<<i>>'] += 1
  706. end
  707. if i < 145: jump 'hotcat_calc_jump'
  708. killvar 'i'
  709. killvar 'switch_rand'
  710. end
  711. !! Resetting the late flag
  712. if late = 1: late = 0
  713. end
  714. !!Social grup changes
  715. !!Change from relatonship with other students.
  716. gs 'gschool_socialchg', 'group_student_rel_change'
  717. !!Decay for the school groups
  718. if grupvalue[1] > 0:
  719. grupvalue[1] -= rand(0,1)
  720. else
  721. grupvalue[1] = 0
  722. end
  723. if grupvalue[2] > 0:
  724. grupvalue[2] -= rand(0,1)
  725. else
  726. grupvalue[2] = 0
  727. end
  728. if grupvalue[3] > 0:
  729. grupvalue[3] -= rand(0,1)
  730. else
  731. grupvalue[3] = 0
  732. end
  733. if grupvalue[4] > 0:
  734. grupvalue[4] -= rand(0,1)
  735. else
  736. grupvalue[4] = 0
  737. end
  738. !!Maximum increase for grupvalues is 10 and max decay is 30
  739. if oldgrupvalue_set = 0:
  740. oldgrupvalue_set = 1
  741. old_grupvalue[1] = grupvalue[1]
  742. old_grupvalue[2] = grupvalue[2]
  743. old_grupvalue[3] = grupvalue[3]
  744. old_grupvalue[4] = grupvalue[4]
  745. else
  746. if old_grupvalue[1] + 10 < grupvalue[1]: grupvalue[1] = old_grupvalue[1] + 10
  747. if old_grupvalue[2] + 10 < grupvalue[2]: grupvalue[2] = old_grupvalue[2] + 10
  748. if old_grupvalue[3] + 10 < grupvalue[3]: grupvalue[3] = old_grupvalue[3] + 10
  749. if old_grupvalue[4] + 10 < grupvalue[4]: grupvalue[4] = old_grupvalue[4] + 10
  750. if old_grupvalue[1] - 30 > grupvalue[1]: grupvalue[1] = old_grupvalue[1] - 30
  751. if old_grupvalue[2] - 30 > grupvalue[2]: grupvalue[2] = old_grupvalue[2] - 30
  752. if old_grupvalue[3] - 30 > grupvalue[3]: grupvalue[3] = old_grupvalue[3] - 30
  753. if old_grupvalue[4] - 30 > grupvalue[4]: grupvalue[4] = old_grupvalue[4] - 30
  754. end
  755. !!Limit to max school group values
  756. if grupvalue[1] > 1000: grupvalue[1] = 1000
  757. if grupvalue[2] > 1000: grupvalue[2] = 1000
  758. if grupvalue[3] > 1000: grupvalue[3] = 1000
  759. if grupvalue[4] > 1000: grupvalue[4] = 1000
  760. old_grupvalue[1] = grupvalue[1]
  761. old_grupvalue[2] = grupvalue[2]
  762. old_grupvalue[3] = grupvalue[3]
  763. old_grupvalue[4] = grupvalue[4]
  764. elseif SchoolAtestat = -1:
  765. if func('homes_properties', 'has_access', 'parents_home') = 0:
  766. $holyday = '<b>You missed your graduation. You could pick up your diploma at the school.</b>'
  767. else
  768. $holyday = '<b>You missed your graduation. Maybe your mother picked up your diploma.</b>'
  769. end
  770. end
  771. !!Brother''s dick growth as he gets older
  772. !Commented out till some future time
  773. !if kolka_dick_day + 30 < daystart and npc_dick['A34'] < 26:
  774. ! kolka_dick_day = daystart
  775. ! npc_dick['A34'] += 1
  776. !end
  777. !if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  778. ! $npc_thdick['A34'] = 'well proportioned'
  779. !elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  780. ! $npc_thdick['A34'] = 'thick'
  781. !end
  782. !! Calcualting the increase/decreas of the grade each week.
  783. gs 'gschool', 'weekly grade update'
  784. end
  785. killvar 'natholi'
  786. if month = 1 and day >= 1 and day <= 8:
  787. $natholi = 'New Year holidays'
  788. natholi = 1
  789. if day = 1:$natholi += ', New Year'
  790. if day = 7:$natholi += ', Christmas'
  791. end
  792. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  793. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  794. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  795. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  796. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  797. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  798. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  799. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  800. if natholi = 1:
  801. if $holyday ! '': $holyday += '<br>'
  802. $holyday += $natholi
  803. end
  804. !!------------------------------------------------------------------------------------------------------------------------
  805. !!Setting the weeks in the university semester and makeing sure that the gades are calculated at the right times
  806. gs 'uni_lessons', 'cikl'
  807. !!------------------------------------------------------------------------------------------------------------------------
  808. !!resetting moisturizer so it can be used in the morning regardless
  809. item_moisturizer_time = totminut
  810. if bcream_used >= 1:
  811. bcream_used = 0
  812. temp = rand(0,max(nbsize-genbsize+5,5)) / max(nbsize-genbsize,1)
  813. if temp > 0: temp = 1
  814. nbsize += temp
  815. if temp > 0:'Feels like your breasts have grown slightly.'
  816. end
  817. if steroid_dose >= 1:
  818. if lashair < 1:
  819. pcs_pubes += steroid_dose
  820. pcs_leghair += steroid_dose
  821. end
  822. steroid_dose = 0
  823. end
  824. if aphrodisiac_overdose = 1:aphrodisiac_overdose = 0
  825. if aphrodisiac_timer ! 0:aphrodisiac_timer = 0
  826. if mentats_dose = 1:
  827. mentats_dose = 0
  828. elseif mentats_dose > 1:
  829. pain['head'] += 20 * mentats_dose
  830. mentats_dose = 0
  831. end
  832. gs 'gaddvor','cikl'
  833. loc_count = ARRSIZE('$CloLosLoc')
  834. i = loc_count - 1
  835. :loopCloLoc
  836. $CloLoc = $CloLosLoc[i]
  837. CloLostOn = CloLosDay[$CloLoc]
  838. if CloLostOn + RAND(7,14) < daystart :
  839. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  840. end
  841. i -=1
  842. if i > -1 :jump 'loopCloLoc'
  843. if vidageday > 1080: vidageday = 1080
  844. if blizoruk < 10: blizoruk -= 1
  845. if blizoruk < 100: blizoruk -= rand(0,1)
  846. if blizoruk < 0: blizoruk = 0
  847. !!------------------------------------------------------------------------------------------------------------------------
  848. !!C and b array cleaning
  849. if InSleep = 1: gs 'npc','cleanarrays'
  850. !!------------------------------------------------------------------------------------------------------------
  851. !!-------------Therapist Route schedule variables----------------------------------------------------------------------
  852. !! 23 = kitchen
  853. !! 24 = Living room
  854. !! 25 = bathroom
  855. !! 26 = Master''s room
  856. if therapistWantsSlave > 0:
  857. annaclean1 = rand(23,26)
  858. end
  859. !!------------------------------------------------------------------------------------------------------------
  860. !!-------------Family Dog----------------------------------------------------------------------
  861. if $status['dog'] ! 'blocked' and rex['owned'] = 1:
  862. rex['timer_day'] = daystart
  863. !!Daily decay
  864. rex['relationship'] -= 1
  865. !!Chores
  866. if cheat['dog_rel'] = 0 and rex['gadukino_day'] ! daystart:
  867. npc_rel['A29'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  868. rex['relationship'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  869. end
  870. rex['count_run'] = 0
  871. rex['count_walk'] = rex['count_walk_base']
  872. rex['timer_walk'] = 0
  873. rex['count_feed'] = rex['count_feed_base']
  874. rex['timer_feed'] = 0
  875. if week = 1:
  876. if cheat['dog_rel'] = 0:
  877. npc_rel['A29'] -= rex['count_bath']
  878. rex['relationship'] -= (rex['count_bath'] * 5)
  879. end
  880. rex['count_bath'] = rex['count_bath_base']
  881. end
  882. end
  883. !!------------------------------------------------------------------------------------------------------------
  884. !!---------- School related schedule -------------------------------------------------------------------------
  885. starlets_on = iif( ( (week = 5 and odd_week = 0) or (week = 1 or week = 3 or week >= 6) ) and natholi = 0,1,0)
  886. cheerleaders_on = iif( ( (week = 5 and odd_week = 1) or (week = 2 or week = 4) ) and (natholi = 0 and (month >9 or month <6)) ,1,0)
  887. if starlets['late_message'] = 1: starlets['late_message'] = 0
  888. !!------------------------------------------------------------------------------------------------------------
  889. !!---------- Starlet Content ---------------------------------------------------------------------------------
  890. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0:
  891. if starlets_practice = daystart - 1:
  892. starlets_missed = 1
  893. starlets_practice = 0
  894. end
  895. if starlets_on = 1: starlets_practice = daystart
  896. end
  897. if month = 9 and day = 16 and AlbinaQW['ParkRally'] = 0: AlbinaQW['ParkRally'] = 1
  898. if month = 10 and day = 16 and AlbinaQW['ParkRally'] = 1: AlbinaQW['ParkRally'] = 2
  899. if month = 11 and day = 19 and (AlbinaQW['StarletsJoined'] <= 0 or (AlbinaQW['StarletsJoined'] = 1 and npc_pregtalk['A23'] = 1)) and AlbinaQW['StarletsShutDown'] = 0: AlbinaQW['StarletsShutDown'] = 1
  900. !!------------------------------------------------------------------------------------------------------------
  901. !!-------------Music career related variables and calculations------------------------------------------------
  902. !! Setting Del Parco initial variables
  903. if daystart < 2:
  904. ml_delparcoQW['Stage'] = 0
  905. ml_delparcoQW['Zariyah Trust'] = 50
  906. end
  907. !! How many hours a day can Sveta perform. It maxes out at 3.
  908. !! Using the actual skill level, not the one modified by Attributes because that is more realistic for this.
  909. ml_performance['max_perform_minutes'] = pcs_instrmusic + pcs_vokal
  910. ml_performance['performed_minutes'] = 0
  911. !! Checking for missed guitar lesson
  912. if ml_guitarlesson['nextlesson'] < daystart and ml_guitarlesson['lessonday'] ! 8:
  913. ml_guitarlesson['lessonday'] = 8
  914. end
  915. !! Calculating the fame increase from the uploaded songs and removing ones that do not effect fame anymore to keep the
  916. !! data at a sane level
  917. if ml_onlinesongcount > 0:
  918. i = 0
  919. j = -1
  920. :looponlinesongs
  921. !! this so every song counts only every 7 days and only for a limited number of weeks
  922. if ml_onlinesong_freshness[i] > 0:
  923. j += 1
  924. ml_tempsong_freshness[j] = ml_onlinesong_sfreshness[i]
  925. ml_tempsong_lastcalcday[j] = ml_onlinesong_lastcalcday[i]
  926. ml_tempsong_hotcat[j] = ml_onlinesong_hotcat[i]
  927. ml_tempsong_skilllevel[j] = ml_onlinesong_skilllevel[i]
  928. ml_tempsong_uploaded[j] = ml_onlinesong_uploaded[i]
  929. *nl
  930. if ml_tempsong_lastcalcday[j] <= (daystart - 7) and ml_tempsong_uploaded = 1:
  931. gs 'fame', 'city', 'music', rand(0, ml_tempsong_freshness[j]/100)
  932. ml_tempsong_freshness[j] -= 10
  933. ml_tempsong_lastcalcday[j] = daystart
  934. end
  935. end
  936. i += 1
  937. if i < ml_onlinesongcount: jump 'looponlinesongs'
  938. killvar 'ml_onlinesong_freshness'
  939. killvar 'ml_onlinesong_lastcalcday'
  940. killvar 'ml_onlinesong_hotcat'
  941. killvar 'ml_onlinesong_skilllevel'
  942. killvar 'ml_onlinesong_uploaded'
  943. i = 0
  944. if j >= 0:
  945. :looprebuildsongs
  946. ml_onlinesong_freshness[i] = ml_tempsong_freshness[i]
  947. ml_onlinesong_hotcat[i] = ml_tempsong_hotcat[i]
  948. ml_onlinesong_lastcalcday[i] = ml_tempsong_lastcalcday[i]
  949. ml_onlinesong_skilllevel[i] = ml_tempsong_skilllevel[i]
  950. ml_onlinesong_uploaded[i] = ml_tempsong_uploaded[i]
  951. i += 1
  952. if i <= j: jump 'looprebuildsongs'
  953. end
  954. killvar 'ml_tempsong_freshness'
  955. killvar 'ml_tempsong_lastcalcday'
  956. killvar 'ml_tempsong_hotcat'
  957. killvar 'ml_tempsong_skilllevel'
  958. killvar 'ml_tempsong_uploaded'
  959. end
  960. !! Repertoire quality decay if no practice is done
  961. if ml_performance['set_lastpracticeday'] ! (daystart-1): repertoire_quality -= 2
  962. !!------------- Prostitution - WLife integration related stuff ------------------------------------------------
  963. !! Check if people will start to seek Sveta randomly for services, based on her reputation
  964. gs 'prostitution_functions', 'check_for_wlife'
  965. if prostitute['blocked'] = 0: gs 'prostitution_functions', 'set_pavlovsk_prostitute'
  966. prostitute['earnings_day'] = 0
  967. prostitute['customer_day'] = 0
  968. !!------------- Property and Home Related daily, nonfinancial checks ------------------------------------------
  969. !! Moves time for the rented properties
  970. gs 'homes_properties', 'progress_property_rent_time'
  971. --- cikl ---------------------------------