cikl.qsrc 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324
  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 = day in this month
  16. !! week = day in the week. 1 == Monday
  17. !! hour = Full hour in this day
  18. day += 1
  19. week += 1
  20. hour -= 24
  21. if day > monthsEnd[month]:
  22. day -= monthsEnd[month]
  23. month += 1
  24. !! Changing the year at new year and making sure February have the correct number of days.
  25. if month > 12:
  26. month = 1
  27. year += 1
  28. if ((year mod 4 = 0) and (year mod 100 ! 0)) or (year mod 400 = 0):
  29. monthsend[2] = 29
  30. else
  31. monthsend[2] = 28
  32. end
  33. end
  34. !!MJ: Don''t think that one is needed. But it was in the original loop.
  35. if month < 1: month = 1
  36. $month = $monthName[month]
  37. !! new years party calculation
  38. temp = func('shortgs','dow',year,12,31)
  39. if temp < 6:
  40. nyp_day = 31
  41. elseif temp = 6:
  42. nyp_day = 30
  43. else
  44. nyp_day = 29
  45. end
  46. end
  47. !!MJ: Don''t think that one is needed. But it was here already.
  48. if day <= 0:day = 1
  49. ciklNewWeek = 0
  50. if week > 7:
  51. odd_week = iif(odd_week,0,1)
  52. ciklNewWeek = 1
  53. :loopweek
  54. week -= 7
  55. husbandrink = 0
  56. if military = 1:military = 0
  57. if week > 7:jump 'loopweek'
  58. end
  59. gs 'daystart'
  60. gs 'yearstart'
  61. gs 'emp_functions', 'evt_day_suffix'
  62. $stat_day_suffix = $date_suffix
  63. killvar '$date_suffix'
  64. !!----------------------------------------------------------------------------
  65. !!Fame call to update all the fame variables
  66. gs 'fame'
  67. !!Cycle stats for Contacts
  68. gs 'telefon', 'DailyStatRefresh', ciklNewWeek
  69. !!moving the porn schedule ahead a day, flaffing for missed shootings, if it even matters
  70. if (film > 0 or pornstack = 1) and pfilmNO = 0 and pfilmSTOP = 0:
  71. if pfilmday[0] > 0: gs 'pornschedule', 'pornmiss'
  72. gs 'pornschedule', 'schedule'
  73. end
  74. !! set the time when the SMS will be send
  75. gs 'booty_call', 'scheduler'
  76. booty_call_time['daystart'] = daystart
  77. !!------------------------------------------------------------------------------------------------------------
  78. !! Job Stuff
  79. !!------------------------------------------------------------------------------------------------------------
  80. !! masseuse paycheck
  81. if masseuse['weeks_pay'] > 0 and week = 5:masseuse['paycheck'] = 1
  82. if masseuse['jobtype'] > 0 and week = 5 and masseuse['weeks_pay'] > 0:
  83. masseuse['payday'] = 1
  84. end
  85. if week = 7 and masseuse['schedule_update'] ! daystart: gs 'masseuse_schedule','schedule_reset'
  86. !!modelling check
  87. if model_week ! (daystart - week) / 7 and model['status'] > 0: model_job_week = 0
  88. !!acting strings to set available jobs
  89. if casting = 1:
  90. acting_string1 = rand(10000000,199999999)
  91. acting_string2 = rand(10000000,199999999)
  92. end
  93. !! terminate tour gide job when its off season
  94. if emp_job_status[1] = 1 and month < 6 and month > 8:
  95. if work = 1: work = 0
  96. emp_job_status[1] = 4
  97. end
  98. dynamic $hypnoDaychange
  99. !!phone reset for bf
  100. ringA = 0
  101. ringB = 0
  102. ringC = 0
  103. !!Appearance Age
  104. vidageday -= 1
  105. if vidageday <= 0:
  106. vidageday = 360
  107. vidage += 1
  108. end
  109. !!Birthday
  110. age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
  111. if ((month * 100) + day) <= pcs_dob mod 10000: age -= 1
  112. if birthday = day and birthmonth = month and model['age'] > 0:model['age'] += 1
  113. if workDolgDay > 0: workDolgDay -= 1
  114. if QWdogreiqTimer > 0: QWdogreiqTimer -= 1
  115. if husband > 0: husbanday += 1
  116. if husband > 10 and husbanday > 0: husband -= 15
  117. if fingal > 0: fingal -= 1
  118. if husbandMark = 1 and husband <= 10:
  119. husbizvradd = 0
  120. husbharmin = 0
  121. husbandMark = 0
  122. husband = 0
  123. divorced += 1
  124. if KFOnLineReaga > 0:KFOnLineReaga -= 1
  125. '<b><font color="red">Your husband has filed for a divorce.</font></b>'
  126. end
  127. !! after having surgery you will be in recuperation for a few days
  128. if surgeryday ! '':
  129. if daystart - 7 <= surgeryday:
  130. dailyhealthimprov = (daystart - surgeryday) * 50
  131. pcs_health = dailyhealthimprov
  132. recuperation = 1
  133. else
  134. killvar 'recuperation'
  135. killvar 'dailyhealthimprov'
  136. end
  137. end
  138. !!Street events daily reset
  139. streetevent_hour = -2
  140. !!Clothing stock and price randomizers
  141. Clothingstock = rand (0,23)
  142. i = 1
  143. :loopprice
  144. Clothingstock[i] = rand (0,500)
  145. i += 1
  146. if i <= 147:jump 'loopprice'
  147. if dyneval ('RESULT = <<$coatworntype>>_coats_h[<<coatwornnumber>>]') <= 0: $coatworntype = 'none'
  148. !! Abortion and pregnancy recovery resets if finished
  149. if abortionbirthdate ! 0 and daystart - abortionbirthdate > 24: abortionbirthdate = 0
  150. if pregbirthdate ! 0 and daystart - pregbirthdate > 73: pregbirthdate = 0
  151. !!------------------------------------------------------------------------------------------------------------
  152. !! Nympho
  153. !!------------------------------------------------------------------------------------------------------------
  154. !! Reserved for nympho trait
  155. if nymphosex_flag = 1:
  156. end
  157. nymphosex_flag = 0
  158. !!------------------------------------------------------------------------------------------------------------
  159. !! Bimbo
  160. !!------------------------------------------------------------------------------------------------------------
  161. !!bimbo flag set in stat_display if bimbo clothing, shoes and makeup are worn at same time
  162. if cheatVars['bimbo'] = 0 and bimbo_flag = 1 and (succubusflag = 0 or cheatVars['smart_bimbo'] = 1): bimbo += 1
  163. !!Once bimbolevel is set to 1, must use the withdrawal in stat to return to 0
  164. if bimbo > 0 or bimbolevel > 0:
  165. if bimbo < 10:
  166. if bimbo_flag = 0:
  167. bimbo -= 2
  168. end
  169. elseif bimbo < 20:
  170. bimbolevel = 1
  171. elseif bimbo < 30:
  172. bimbolevel = 2
  173. else
  174. bimbolevel = 3
  175. end
  176. end
  177. if bimbo >= 40: bimbo = 40
  178. !!Bimbo levels. They use custom variables so they won''t permanently change character stats
  179. if bimbolevel = 0: supnatvnesh = 0 & bimbostupidity = 0
  180. if cheatVars['smart_bimbo'] = 0:
  181. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 6)
  182. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 4)
  183. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = (pcs_intel / 3)
  184. elseif cheatVars['smart_bimbo'] = 1:
  185. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = 0
  186. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = 0
  187. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = 0
  188. end
  189. !!A Succubus cannot be a Bimbo
  190. if succubusflag = 1 and cheatVars['suc_bimbo'] = 0:
  191. if bimbolevel > 0 and bimbo > 0: bimbowithdrawal = 40
  192. elseif bimbolevel >= 1:
  193. !!Checks flag and adds withdrawal if 0
  194. if bimbo_flag = 0:
  195. bimbowithdrawal += 1
  196. else
  197. bimbowithdrawal = 0
  198. end
  199. end
  200. if bimbo < 0: bimbo = 0
  201. !! flag reset
  202. bimbo_flag = 0
  203. !!------------------------------------------------------------------------------------------------------------
  204. !! Butt slut
  205. !!------------------------------------------------------------------------------------------------------------
  206. if orgasm_anal > orgasm_anal[1]:
  207. if pcs_traits['buttslut_lvl'] > 0: pcs_traits['buttslut_exp'] += orgasm_anal - orgasm_anal[1]
  208. else
  209. if pcs_traits['buttslut_exp'] > 1: pcs_traits['buttslut_exp'] -= 1
  210. end
  211. orgasm_anal[1] = orgasm_anal
  212. if orgasm_anal > 10 and pcs_traits['buttslut_lvl'] = 0: pcs_traits['buttslut_lvl'] = 1
  213. if pcs_traits['buttslut_exp'] >= 15 and pcs_traits['buttslut_lvl'] = 1: pcs_traits['buttslut_lvl'] = 2 & pcs_traits['buttslut_exp'] = 0
  214. if pcs_traits['buttslut_exp'] >= 50 and pcs_traits['buttslut_lvl'] = 2: pcs_traits['buttslut_lvl'] = 3
  215. if pcs_traits['buttslut_exp'] <= 0 and pcs_traits['buttslut_lvl'] = 3: pcs_traits['buttslut_lvl'] = 2 & pcs_traits['buttslut_exp'] = 0
  216. !!------------------------------------------------------------------------------------------------------------
  217. !! Exhibitionism
  218. !!------------------------------------------------------------------------------------------------------------
  219. if cheatVars['no_trait_exhib'] = 0 and (pcs_exhib > 0 or exhibitionist_lvl > 0):
  220. if pcs_exhib < 10:
  221. pcs_exhib -= 1
  222. elseif pcs_exhib < 50:
  223. exhibitionist_lvl = 1
  224. elseif pcs_exhib < 100 or exhibitionQW < 3:
  225. exhibitionist_lvl = 2
  226. elseif exhibitionQW > 2:
  227. exhibitionist_lvl = 3
  228. end
  229. end
  230. !!Inhibition increases from wearing revealing clothing
  231. if exhibition_outdoors > 0:
  232. if pcs_inhib > 90:
  233. exhibition_outdoors = exhibition_outdoors * 3
  234. elseif pcs_inhib > 75:
  235. exhibition_outdoors = exhibition_outdoors * 5 / 2
  236. elseif pcs_inhib > 60:
  237. exhibition_outdoors = exhibition_outdoors * 2
  238. elseif pcs_inhib > 30:
  239. exhibition_outdoors = exhibition_outdoors * 3 / 2
  240. end
  241. if exhibition_outdoors <= 5:
  242. inhib_exp += rand(3,6)
  243. elseif exhibition_outdoors <= 10:
  244. inhib_exp += rand(5,9)
  245. elseif exhibition_outdoors <= 15:
  246. inhib_exp += rand(7,12)
  247. elseif exhibition_outdoors <= 20:
  248. inhib_exp += rand(9,15)
  249. elseif exhibition_outdoors <= 25:
  250. inhib_exp += rand(12,20)
  251. elseif exhibition_outdoors <= 30:
  252. inhib_exp += rand(16,25)
  253. elseif exhibition_outdoors <= 35:
  254. inhib_exp += rand(20,30)
  255. elseif exhibition_outdoors <= 40:
  256. inhib_exp += rand(25,40)
  257. elseif exhibition_outdoors <= 50:
  258. inhib_exp += rand(35,50)
  259. elseif exhibition_outdoors <= 65:
  260. inhib_exp += rand(50,75)
  261. else
  262. inhib_exp += rand(70,100)
  263. end
  264. end
  265. exhibition_outdoors = 0
  266. !!------------------------------------------------------------------------------------------------------------
  267. !! Everything is new again
  268. !!------------------------------------------------------------------------------------------------------------
  269. !!Trait ''Everything is new again'', gained from the sg_tg start
  270. !! starts at 84 and decreases by 1 every day, when reaches 0 the trait will get disabled
  271. if pcs_traits['new_again'] > 0: pcs_traits['new_again'] -= 1
  272. !!------------------------------------------------------------------------------------------------------------
  273. !! Succubus Level & hunger calcs
  274. !!------------------------------------------------------------------------------------------------------------
  275. if succubusflag = 1: gs 'succubus','cikl'
  276. !!------------------------------------------------------------------------------------------------------------
  277. if defcurly = 0 and curly > 0:curly -= 1
  278. if defcurly = 1:
  279. if straight > 0: straight -= 1
  280. if straight = 0: curly = 2147483647
  281. end
  282. gs 'sweat', 'add', 2
  283. if pcs_tan > 0: pcs_tan -= 1
  284. if prezikmsg = 2: prezikmsg = 3
  285. gs 'fertility', 'daily_update'
  286. !!------------------------------------------------------------------------------------------------------------
  287. if pcs_breath = 1:pcs_breath = 0
  288. if cheatVars['hunger'] = 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 cheatVars['auto_tampons'] = 1 and isprok = 1: isprok = 0 & 'You threw away your used tampon.'
  333. if cheatVars['auto_tampons'] = 1 and isprokp = 1: isprokp = 0 & 'You threw away your used sanitary pad.'
  334. if lactation['nipgrowth'] > 0:
  335. tmp = rand(0,2)
  336. pcs_nips -= tmp
  337. lactation['nipgrowth'] -= tmp
  338. killvar 'tmp'
  339. elseif lactation['nipgrowth'] < 0:
  340. lactation['nipgrowth'] = 0
  341. end
  342. if preg = 1:
  343. pregtime = pregchem / 24
  344. if pregtimes = 0: pregtimes = 1
  345. elseif preg = 2 and pregminut < totminut:
  346. gs 'gameover', 'check', 4
  347. msg '<font color=red><B>You should die for giving birth unprepared, but Cheat Mode keeps you Alive.</B></font>'
  348. pregminut = totminut + 1440
  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. if pregchem > 240:fat += 1
  437. !!------------------------------------------------------------------------------------------------------------
  438. !! Pain
  439. !!------------------------------------------------------------------------------------------------------------
  440. if painpub = 2:
  441. if painpubday + 5 < daystart:
  442. $painpub = 'Your vulva is painfully sore.'
  443. painpub = 1
  444. painpubday = daystart
  445. elseif painpubday + 5 >= daystart:
  446. $painpub = 'Your vulva is painfully sore.'
  447. end
  448. elseif painpub = 1:
  449. if painpubday + 5 < daystart:
  450. $painpub = ''
  451. painpub = 0
  452. painpubday = daystart
  453. elseif painpubday + 5 >= daystart:
  454. $painpub = 'Your vulva is a little sore.'
  455. end
  456. end
  457. prezikProver += 1
  458. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  459. if shorthair = 1:
  460. shorthairday += 1
  461. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  462. end
  463. !!------------------------------------------------------------------------------------------------------------
  464. !!Resetting the counter for relationship modifications that are limited in how many time a day they can be applied.
  465. killvar 'npc_rel_daily'
  466. !!Resetting the counters for npc reactions after certain time periods have passed.
  467. gs 'npc_reactions', 'cikl'
  468. !! Setting the day for nerd game nights
  469. gs 'nerd_game_night', 'cikl'
  470. !!Keeping Christina hating Sveta
  471. gs 'Zvereva_events', 'cikl'
  472. !!Albina hates gopniks while at school
  473. if SchoolAtestat = 0 and grupTipe = 4 and AlbinaQW['Friends'] ! 2 and npc_rel['A23'] > 20:
  474. gs 'npc_relationship', 'set', 'A23', 20
  475. end
  476. !!if Vitek''s ex he never forgives her
  477. if kotovLoveQW = -1:
  478. gs 'npc_relationship', 'set', 'A9', 0
  479. end
  480. !!Updating Katja''s variables.
  481. gs 'katja_procedural', 'cikl'
  482. if npc_rel['A69'] > 60 and rand(0,3) = 0:npc_rel['A69'] -= 1
  483. !!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.
  484. gs 'soniadisco', 'cikl'
  485. dmishaevent = 0
  486. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  487. if GspravkaT = 1:Gspravka -= 1
  488. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] > 0 and BurgerQW['IlyQWPoliceDayCount'] < 30:
  489. BurgerQW['IlyQWPoliceDayCount'] += 1
  490. elseif BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] = 30:
  491. BurgerQW['IlyQW'] = 3
  492. end
  493. !!Remove degradation for inhibition
  494. inhib_flr = inhib_lvl
  495. gs 'stat_sklattrib', 'daycall'
  496. !Update body measurements and base appearnce
  497. gs 'body', 'DailyUpdate'
  498. !! Set Mira''s schedule for the day
  499. !gs 'miroslava_schedule', 'cikl'
  500. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  501. !!Pussy_Kats job settings
  502. inWorkYoungShop = 0
  503. if week = 1 and young_shop_work = 100: young_shop_work = 1
  504. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  505. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  506. husbandsexday = 0
  507. borsexkol = 0
  508. givisexday = 0
  509. if shantsr > 0:
  510. pay = shantsr * 5000
  511. karta += pay
  512. shantsr = 0
  513. end
  514. if shantbog > 0:
  515. :shantftb
  516. shantftbgrand = rand(0, 10)
  517. if shantftbgrand > 2:
  518. shantpopala += 1
  519. shantbog -= 1
  520. if shantbog > 0:jump 'shantftb'
  521. elseif shantftbgrand <= 2:
  522. karta += 30000
  523. shantbog -= 1
  524. if shantbog > 0:jump 'shantftb'
  525. end
  526. end
  527. petersexday = 0
  528. if cheatVars['enema'] = 1:
  529. klismaday = daystart
  530. klismaday1 = 1
  531. else
  532. klismaday1 = 0
  533. end
  534. !!ugly duckling start becoming a swan
  535. if uglyduck_flag = 1 and hotcat >= 5:
  536. killvar 'uglyduck_flag'
  537. gs 'npc_relationship', 'socialgroup_setting_boys', 10, 10, 10, 10, 0, 0
  538. grupvalue[1] += 100
  539. old_grupvalue[1] += 100
  540. end
  541. !! Resetting relationships that go over the max
  542. :toptemprel
  543. if temprel < aarraynumber:
  544. temprel +=1
  545. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  546. jump 'toptemprel'
  547. end
  548. killvar 'temprel'
  549. gs 'bank', 'cikl'
  550. killvar 'holyday'
  551. killvar 'kanikuli'
  552. killvar 'pcs_ate'
  553. killvar 'pcs_drank'
  554. !! 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
  555. !!sisboyparty
  556. !!-1 - don''t go to the party
  557. !!0 - don''t know about parties
  558. !!1 - knows about the parties
  559. !!2 - agreed to go to the party
  560. !!3 - Missed the party
  561. !!Suspension ends
  562. if suspended['day'] = daystart: suspended['on'] = 0
  563. if mid($start_type, 1, 2) = 'sg':
  564. !!Party refresh if you didn''t see sis
  565. if week = 1 and sisboyparty ! 2:
  566. if sisterQW['party'] = -1: sisterQW['party'] = 0
  567. if sisboypartyQW >= 2 and sisboyparty > 0:
  568. sisboyparty_day = daystart + rand(3,5)
  569. end
  570. end
  571. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  572. if SchoolAtestat = 0 and SchoolBlock = 0:
  573. if month = 12 and day > 25:
  574. if day < 31:
  575. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  576. else
  577. $holyday = '<b>Winter Break starts tomorrow.</b>'
  578. end
  579. elseif month = 1 and day <= 15:
  580. kanikuli = 2
  581. if day < 13:
  582. $holyday = '<b>Winter Break.</b>'
  583. elseif day < 15:
  584. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  585. else
  586. $holyday = '<b>Last day of Winter Break.</b>'
  587. end
  588. elseif month = 3 and day > 13:
  589. if day < 19:
  590. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  591. elseif day = 19:
  592. $holyday = '<b>Spring Break starts tomorrow.</b>'
  593. elseif day >= 20 and day <= 26:
  594. kanikuli = 3
  595. if day < 24:
  596. $holyday = '<b>Spring Break.</b>'
  597. elseif day < 26:
  598. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  599. else
  600. $holyday = '<b>Last day of Spring Break.</b>'
  601. end
  602. end
  603. elseif month = 5:
  604. if year = 2017:
  605. if day = 26:
  606. kanikuli = 6
  607. SchoolAtestat = -1
  608. lernHome = 0
  609. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  610. elseif day = 25:
  611. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  612. elseif day >= 19:
  613. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  614. end
  615. elseif day >= 25:
  616. if day = 31:
  617. $holyday = '<b>Summer Break starts tomorrow.</b>'
  618. else
  619. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  620. end
  621. end
  622. elseif month = 6 or month = 7 or month = 8:
  623. kanikuli = 4
  624. if month = 8 and day >= 25:
  625. if day = 31:
  626. $holyday = '<b>Last day of Summer Break.</b>'
  627. else
  628. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  629. end
  630. else
  631. $holyday = '<b>Summer Break.</b>'
  632. end
  633. !! 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.'
  634. killvar 'first_time_outside_in_cold_weather'
  635. killvar 'first_time_doing_basketball'
  636. killvar 'first_time_spring_football_match'
  637. !! end inc
  638. elseif month = 10 and day >= 29:
  639. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  640. elseif month = 11:
  641. if day < 3:
  642. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  643. elseif day = 3:
  644. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  645. elseif day < 6:
  646. kanikuli = 1
  647. $holyday = '<b>Autumn Break.</b>'
  648. elseif day < 11:
  649. kanikuli = 1
  650. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  651. elseif day = 11:
  652. kanikuli = 1
  653. $holyday = '<b>Last day of Autumn Break.</b>'
  654. end
  655. end
  656. if kanikuli = 0 and week < 6:
  657. if week = 1:
  658. !!The start and end values for i have to be changed if more female schoolgirl npcs are added to the game
  659. i = 11
  660. :hotcat_calc_jump
  661. i += 1
  662. if hotcat_rating['A<<i>>'] = 0 and i < 145: jump 'hotcat_calc_jump'
  663. switch_rand = rand(1,100)
  664. if hotcat_movement['A<<i>>'] = 0 and switch_rand < 21:
  665. hotcat_rating['A<<i>>'] -= 1
  666. hotcat_movement['A<<i>>'] -= 1
  667. elseif hotcat_movement['A<<i>>'] = 0 and switch_rand > 80:
  668. hotcat_rating['A<<i>>'] += 1
  669. hotcat_movement['A<<i>>'] += 1
  670. elseif hotcat_movement['A<<i>>'] = 1 and switch_rand > 40:
  671. hotcat_rating['A<<i>>'] -= 1
  672. hotcat_movement['A<<i>>'] -= 1
  673. elseif hotcat_movement['A<<i>>'] = -1 and switch_rand > 40:
  674. hotcat_rating['A<<i>>'] += 1
  675. hotcat_movement['A<<i>>'] += 1
  676. end
  677. if i < 145: jump 'hotcat_calc_jump'
  678. killvar 'i'
  679. killvar 'switch_rand'
  680. end
  681. !! Resetting the late flag
  682. if late = 1: late = 0
  683. end
  684. !!Social grup changes
  685. !!Change from relatonship with other students.
  686. gs 'gschool_socialchg', 'group_student_rel_change'
  687. !!Decay for the school groups
  688. if grupvalue[1] > 0:
  689. grupvalue[1] -= rand(0,1)
  690. else
  691. grupvalue[1] = 0
  692. end
  693. if grupvalue[2] > 0:
  694. grupvalue[2] -= rand(0,1)
  695. else
  696. grupvalue[2] = 0
  697. end
  698. if grupvalue[3] > 0:
  699. grupvalue[3] -= rand(0,1)
  700. else
  701. grupvalue[3] = 0
  702. end
  703. if grupvalue[4] > 0:
  704. grupvalue[4] -= rand(0,1)
  705. else
  706. grupvalue[4] = 0
  707. end
  708. !!Maximum increase for grupvalues is 10 and max decay is 30
  709. if oldgrupvalue_set = 0:
  710. oldgrupvalue_set = 1
  711. old_grupvalue[1] = grupvalue[1]
  712. old_grupvalue[2] = grupvalue[2]
  713. old_grupvalue[3] = grupvalue[3]
  714. old_grupvalue[4] = grupvalue[4]
  715. else
  716. if old_grupvalue[1] + 10 < grupvalue[1]: grupvalue[1] = old_grupvalue[1] + 10
  717. if old_grupvalue[2] + 10 < grupvalue[2]: grupvalue[2] = old_grupvalue[2] + 10
  718. if old_grupvalue[3] + 10 < grupvalue[3]: grupvalue[3] = old_grupvalue[3] + 10
  719. if old_grupvalue[4] + 10 < grupvalue[4]: grupvalue[4] = old_grupvalue[4] + 10
  720. if old_grupvalue[1] - 30 > grupvalue[1]: grupvalue[1] = old_grupvalue[1] - 30
  721. if old_grupvalue[2] - 30 > grupvalue[2]: grupvalue[2] = old_grupvalue[2] - 30
  722. if old_grupvalue[3] - 30 > grupvalue[3]: grupvalue[3] = old_grupvalue[3] - 30
  723. if old_grupvalue[4] - 30 > grupvalue[4]: grupvalue[4] = old_grupvalue[4] - 30
  724. end
  725. !!Limit to max school group values
  726. if grupvalue[1] > 1000: grupvalue[1] = 1000
  727. if grupvalue[2] > 1000: grupvalue[2] = 1000
  728. if grupvalue[3] > 1000: grupvalue[3] = 1000
  729. if grupvalue[4] > 1000: grupvalue[4] = 1000
  730. old_grupvalue[1] = grupvalue[1]
  731. old_grupvalue[2] = grupvalue[2]
  732. old_grupvalue[3] = grupvalue[3]
  733. old_grupvalue[4] = grupvalue[4]
  734. elseif SchoolAtestat = -1:
  735. if func('homes_properties', 'has_access', 'parents_home') = 0:
  736. $holyday = '<b>You missed your graduation. You could pick up your diploma at the school.</b>'
  737. else
  738. $holyday = '<b>You missed your graduation. Maybe your mother picked up your diploma.</b>'
  739. end
  740. end
  741. !!Brother''s dick growth as he gets older
  742. !Commented out till some future time
  743. !if kolka_dick_day + 30 < daystart and npc_dick['A34'] < 26:
  744. ! kolka_dick_day = daystart
  745. ! npc_dick['A34'] += 1
  746. !end
  747. !if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  748. ! $npc_thdick['A34'] = 'well proportioned'
  749. !elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  750. ! $npc_thdick['A34'] = 'thick'
  751. !end
  752. !! Calcualting the increase/decreas of the grade each week.
  753. gs 'gschool', 'weekly grade update'
  754. end
  755. killvar 'natholi'
  756. if month = 1 and day >= 1 and day <= 8:
  757. $natholi = 'New Year holidays'
  758. natholi = 1
  759. if day = 1:$natholi += ', New Year'
  760. if day = 7:$natholi += ', Christmas'
  761. end
  762. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  763. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  764. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  765. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  766. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  767. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  768. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  769. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  770. if natholi = 1:
  771. if $holyday ! '': $holyday += '<br>'
  772. $holyday += $natholi
  773. end
  774. !!====================================================================!!
  775. !! !!
  776. !! Setting story SMS times !!
  777. !! !!
  778. !!====================================================================!!
  779. gs 'SMS_schedules', 'cikl'
  780. !!------------------------------------------------------------------------------------------------------------------------
  781. !!Setting the weeks in the university semester and making sure that the gades are calculated at the right times
  782. gs 'uni_lessons', 'cikl'
  783. !!------------------------------------------------------------------------------------------------------------------------
  784. !!resetting moisturizer so it can be used in the morning regardless
  785. moisturiser_time = totminut
  786. !!same with chaffing cream
  787. mosal_time = totminut
  788. !!resetting last_pee to counteract time cheat
  789. !!also, the first thing you do in the morning is visiting your porcelain friend, no?
  790. killvar 'last_pee'
  791. !!Drugs reduction
  792. gs 'drugs', 'cocaine', 'cikl'
  793. gs 'drugs', 'mentats', 'cikl'
  794. gs 'drugs', 'aphrodisiac', 'cikl'
  795. gs 'gad_gpyard', 'cikl'
  796. loc_count = ARRSIZE('$CloLosLoc')
  797. i = loc_count - 1
  798. :loopCloLoc
  799. $CloLoc = $CloLosLoc[i]
  800. CloLostOn = CloLosDay[$CloLoc]
  801. if CloLostOn + RAND(7,14) < daystart :
  802. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  803. end
  804. i -=1
  805. if i > -1 :jump 'loopCloLoc'
  806. if vidageday > 1080: vidageday = 1080
  807. if blizoruk < 10: blizoruk -= 1
  808. if blizoruk < 100: blizoruk -= rand(0,1)
  809. if blizoruk < 0: blizoruk = 0
  810. !!------------------------------------------------------------------------------------------------------------------------
  811. !!C and B array cleaning
  812. if InSleep = 1: gs 'npc','cleanarrays'
  813. !!------------------------------------------------------------------------------------------------------------
  814. !!-------------Therapist Route schedule variables----------------------------------------------------------------------
  815. !! 23 = kitchen
  816. !! 24 = Living room
  817. !! 25 = bathroom
  818. !! 26 = Master''s room
  819. if therapistWantsSlave > 0:
  820. annaclean1 = rand(23,26)
  821. end
  822. killvar 'therapistFuckedPussyScene'
  823. !!------------------------------------------------------------------------------------------------------------
  824. !!-------------Family Dog----------------------------------------------------------------------
  825. if $status['dog'] ! 'blocked' and rex['owned'] = 1:
  826. rex['timer_day'] = daystart
  827. !!Daily decay
  828. rex['relationship'] -= 1
  829. !!Chores
  830. if cheat['dog_rel'] = 0 and rex['gadukino_day'] ! daystart:
  831. npc_rel['A29'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  832. rex['relationship'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  833. end
  834. rex['count_run'] = 0
  835. rex['count_walk'] = rex['count_walk_base']
  836. rex['timer_walk'] = 0
  837. rex['count_feed'] = rex['count_feed_base']
  838. rex['timer_feed'] = 0
  839. if week = 1:
  840. if cheat['dog_rel'] = 0:
  841. npc_rel['A29'] -= rex['count_bath']
  842. rex['relationship'] -= (rex['count_bath'] * 5)
  843. end
  844. rex['count_bath'] = rex['count_bath_base']
  845. end
  846. end
  847. !!------------------------------------------------------------------------------------------------------------
  848. !!---------- School related schedule -------------------------------------------------------------------------
  849. starlets_on = iif( ( (week = 5 and odd_week = 0) or (week = 1 or week = 3 or week >= 6) ) and natholi = 0,1,0)
  850. 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)
  851. if starlets['late_message'] = 1: starlets['late_message'] = 0
  852. !!------------------------------------------------------------------------------------------------------------
  853. !!---------- Starlet Content ---------------------------------------------------------------------------------
  854. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0:
  855. if starlets_practice = daystart - 1:
  856. starlets_missed = 1
  857. starlets_practice = 0
  858. end
  859. if starlets_on = 1: starlets_practice = daystart
  860. end
  861. if month = 9 and day = 16 and AlbinaQW['ParkRally'] = 0: AlbinaQW['ParkRally'] = 1
  862. if month = 10 and day = 16 and AlbinaQW['ParkRally'] = 1: AlbinaQW['ParkRally'] = 2
  863. 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
  864. !!------------------------------------------------------------------------------------------------------------
  865. !!-------------Music career related variables and calculations------------------------------------------------
  866. !! Setting Del Parco initial variables
  867. if daystart < 2:
  868. ml_delparcoQW['Stage'] = 0
  869. ml_delparcoQW['Zariyah Trust'] = 50
  870. end
  871. !! How many hours a day can Sveta perform. It maxes out at 3.
  872. !! Using the actual skill level, not the one modified by Attributes because that is more realistic for this.
  873. ml_performance['max_perform_minutes'] = pcs_instrmusic + pcs_vokal
  874. ml_performance['performed_minutes'] = 0
  875. !! Checking for missed guitar lesson
  876. if ml_guitarlesson['nextlesson'] < daystart and ml_guitarlesson['lessonday'] ! 8:
  877. ml_guitarlesson['lessonday'] = 8
  878. end
  879. !! Calculating the fame increase from the uploaded songs and removing ones that do not effect fame anymore to keep the
  880. !! data at a sane level
  881. if ml_onlinesongcount > 0:
  882. i = 0
  883. j = -1
  884. :looponlinesongs
  885. !! this so every song counts only every 7 days and only for a limited number of weeks
  886. if ml_onlinesong_freshness[i] > 0:
  887. j += 1
  888. ml_tempsong_freshness[j] = ml_onlinesong_freshness[i]
  889. ml_tempsong_lastcalcday[j] = ml_onlinesong_lastcalcday[i]
  890. ml_tempsong_hotcat[j] = ml_onlinesong_hotcat[i]
  891. ml_tempsong_skilllevel[j] = ml_onlinesong_skilllevel[i]
  892. ml_tempsong_uploaded[j] = ml_onlinesong_uploaded[i]
  893. if ml_tempsong_lastcalcday[j] <= (daystart - 7) and ml_tempsong_uploaded = 1:
  894. gs 'fame', 'city', 'music', rand(0, ml_tempsong_freshness[j]/100)
  895. ml_tempsong_freshness[j] -= 10
  896. ml_tempsong_lastcalcday[j] = daystart
  897. end
  898. end
  899. i += 1
  900. if i < ml_onlinesongcount: jump 'looponlinesongs'
  901. killvar 'ml_onlinesong_freshness'
  902. killvar 'ml_onlinesong_lastcalcday'
  903. killvar 'ml_onlinesong_hotcat'
  904. killvar 'ml_onlinesong_skilllevel'
  905. killvar 'ml_onlinesong_uploaded'
  906. i = 0
  907. if j >= 0:
  908. :looprebuildsongs
  909. ml_onlinesong_freshness[i] = ml_tempsong_freshness[i]
  910. ml_onlinesong_hotcat[i] = ml_tempsong_hotcat[i]
  911. ml_onlinesong_lastcalcday[i] = ml_tempsong_lastcalcday[i]
  912. ml_onlinesong_skilllevel[i] = ml_tempsong_skilllevel[i]
  913. ml_onlinesong_uploaded[i] = ml_tempsong_uploaded[i]
  914. i += 1
  915. if i <= j: jump 'looprebuildsongs'
  916. end
  917. killvar 'ml_tempsong_freshness'
  918. killvar 'ml_tempsong_lastcalcday'
  919. killvar 'ml_tempsong_hotcat'
  920. killvar 'ml_tempsong_skilllevel'
  921. killvar 'ml_tempsong_uploaded'
  922. end
  923. !! Repertoire quality decay if no practice is done
  924. if ml_performance['set_lastpracticeday'] ! (daystart-1): repertoire_quality -= 2
  925. !!------------- Prostitution - WLife integration related stuff ------------------------------------------------
  926. !! Check if people will start to seek Sveta randomly for services, based on her reputation
  927. gs 'prostitution_functions', 'check_for_wlife'
  928. gs 'prostitution_functions', 'update_prostitution_locations'
  929. prostitute['earnings_day'] = 0
  930. prostitute['customer_day'] = 0
  931. !!------------- Property and Home Related daily, nonfinancial checks ------------------------------------------
  932. !! Moves time for the rented properties
  933. gs 'homes_properties', 'progress_property_rent_time'
  934. !!------------- Check for Daily Events for event generator, sets evt_chk variable ------------------------------------------
  935. gs 'emp_functions', 'evt_day_chk'
  936. !!----------------------------------------------------------------------
  937. !!---------------------------- WEEKLY RESET ----------------------------
  938. !!----------------------------------------------------------------------
  939. if week = 1:
  940. !! Reset used car dealership offers
  941. killvar 'used_car'
  942. !! Reset therapist schedule
  943. killvar 'therapist_weekly_block'
  944. end
  945. !!------------- Advance book loan debt ------------------------------------------
  946. if $lib_book_loaned ! '': lib_debt += 50
  947. !!------------- Preliminary npc_uni_eduTipe ------------------------------------------
  948. !!
  949. !!npc_uni_eduType = '', 'professor', 'teaching_studies', 'business_studies', 'science_studies', 'fashion_studies'
  950. !! 'nursing_studies', 'psychology_studies', 'programming_studies', 'other_studies'
  951. !!
  952. !!Will eventually need to be moved to the npcstatic and npcstaticdefault files for eternal uni npcs
  953. !!To specific event checks for pav_uni npcs
  954. !!And to the various starts.
  955. !!This should be migrated to npcstaticx and eventually schedule
  956. if set_npc_uni_eduType = 0:
  957. set_npc_uni_eduType = 1
  958. npc_uni_active['A77'] = 1
  959. npc_uni_active['A82'] = 1
  960. npc_uni_active['A83'] = 1
  961. npc_uni_active['A84'] = 1
  962. npc_uni_active['A209'] = 1
  963. npc_uni_active['A220'] = 1
  964. npc_uni_active['A242'] = 1
  965. npc_uni_active['A243'] = 1
  966. npc_uni_active['A244'] = 1
  967. npc_uni_active['A245'] = 1
  968. npc_uni_active['A246'] = 1
  969. npc_uni_active['A247'] = 1
  970. end
  971. !! This should eventually be migrated to schedule
  972. if set_pav_npc_uni_active = 0 and yearstart = 2 and month >= 8 and day >= 28:
  973. set_pav_npc_uni_active = 1
  974. npc_uni_active['A1'] = 1
  975. npc_uni_active['A2'] = 1
  976. npc_uni_active['A4'] = 1
  977. npc_uni_active['A7'] = 1
  978. npc_uni_active['A12'] = 1
  979. npc_uni_active['A13'] = 1
  980. npc_uni_active['A14'] = 1
  981. npc_uni_active['A15'] = 1
  982. npc_uni_active['A16'] = 1
  983. npc_uni_active['A17'] = 1
  984. npc_uni_active['A18'] = 1
  985. npc_uni_active['A19'] = 1
  986. npc_uni_active['A22'] = 1
  987. npc_uni_active['A23'] = 1
  988. npc_uni_active['A25'] = 1
  989. npc_uni_active['A139'] = 1
  990. npc_uni_active['A140'] = 1
  991. npc_uni_active['A142'] = 1
  992. npc_uni_active['A144'] = 1
  993. npc_uni_active['A146'] = 1
  994. npc_uni_active['A147'] = 1
  995. npc_uni_active['A149'] = 1
  996. npc_uni_active['A152'] = 1
  997. npc_uni_active['A153'] = 1
  998. npc_uni_active['A155'] = 1
  999. npc_uni_active['A159'] = 1
  1000. npc_uni_active['A165'] = 1
  1001. end
  1002. !!------------- Advance will counter ------------------------------------------
  1003. if will_counter >= 20: will_counter -= 20 & willpowermax += 1
  1004. !!-----------------webcam follower loss due to inactivity ------------------------------------------
  1005. if camwhore = 1:
  1006. if cam_daystart < daystart:
  1007. engagementFactor = 1 + (CamBonus / 100)
  1008. popularityFactor = webpopular / 1000
  1009. if regviewReset < 3:
  1010. if regview >= 500:
  1011. FollowersLost = rand(regview / (100 * engagementFactor), regview / (50 * engagementFactor)) + popularityFactor
  1012. else
  1013. FollowersLost = rand(1, 3) + popularityFactor
  1014. end
  1015. cam_daystart = daystart + max(1, 3 - (CamBonus / 50))
  1016. else
  1017. if regview >= 300:
  1018. FollowersLost = rand(regview / (80 * engagementFactor), regview / (40 * engagementFactor)) + popularityFactor
  1019. else
  1020. FollowersLost = rand(2, 6) + popularityFactor
  1021. end
  1022. cam_daystart = daystart + max(1, 2 - (CamBonus / 50))
  1023. end
  1024. regviewReset += 1
  1025. FollowersLost = func('shortgs', 'clamp', FollowersLost, 0, regview)
  1026. totFollowersLost += FollowersLost
  1027. regview -= FollowersLost
  1028. killvar 'FollowersLost'
  1029. end
  1030. end
  1031. !!---------------Keeping track of missing court appearances-----------------------------
  1032. if arrsize('policeQW_courthearing_dates') > 0 and daystart > policeQW_courthearing_dates[0]:
  1033. policeQW['missed_court_dates'] += 1
  1034. policeQW['tot_court_dates_missed'] += 1
  1035. !! Might need code to throw a message with 'You''ve missed your court hearing or something'
  1036. policeQW_courtletter_dates[] = daystart + rand(3, 6)
  1037. $policeQW_courtletter_subjects[] = 'missed_court_<<$policeQW_courthearing_subjects[0]>>'
  1038. killvar 'policeQW_courthearing_dates', 0
  1039. killvar 'policeQW_courthearing_subjects', 0
  1040. end
  1041. if policeQW['fine_deadline'] > 0:
  1042. if daystart > policeQW['fine_deadline'] - 8:
  1043. policeQW_courtletter_dates[] = daystart
  1044. $policeQW_courtletter_subjects[] = 'fine'
  1045. elseif daystart > policeQW['fine_deadline']:
  1046. policeQW['missed_fine_deadlines'] += 1
  1047. policeQW['tot_fines_deadlines_missed'] += 1
  1048. !! Might need code to throw a message with 'you''ve failed to pay your fine on time.'
  1049. policeQW_courtletter_dates[] = daystart + rand(3, 6)
  1050. $policeQW_courtletter_subjects[] = 'missed_fine'
  1051. end
  1052. end
  1053. if arrsize('policeQW_courtletter_dates') > 1:
  1054. gs 'shortgs', 'coupled_array_sort', 'policeQW_courtletter_dates', '$policeQW_courtletter_subjects'
  1055. end
  1056. if arrsize('policeQW_courthearing_dates') > 1:
  1057. gs 'shortgs', 'coupled_array_sort', 'policeQW_courthearing_dates', '$policeQW_courthearing_subjects'
  1058. end
  1059. if blackmailQW['stage'] > 0: gs 'blackmailer', 'cikl'
  1060. --- cikl ---------------------------------