cikl.qsrc 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319
  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. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  499. !!Pussy_Kats job settings
  500. inWorkYoungShop = 0
  501. if week = 1 and young_shop_work = 100: young_shop_work = 1
  502. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  503. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  504. husbandsexday = 0
  505. borsexkol = 0
  506. givisexday = 0
  507. if shantsr > 0:
  508. pay = shantsr * 5000
  509. karta += pay
  510. shantsr = 0
  511. end
  512. if shantbog > 0:
  513. :shantftb
  514. shantftbgrand = rand(0, 10)
  515. if shantftbgrand > 2:
  516. shantpopala += 1
  517. shantbog -= 1
  518. if shantbog > 0:jump 'shantftb'
  519. elseif shantftbgrand <= 2:
  520. karta += 30000
  521. shantbog -= 1
  522. if shantbog > 0:jump 'shantftb'
  523. end
  524. end
  525. petersexday = 0
  526. if cheatVars['enema'] = 1:
  527. klismaday = daystart
  528. klismaday1 = 1
  529. else
  530. klismaday1 = 0
  531. end
  532. !!ugly duckling start becoming a swan
  533. if uglyduck_flag = 1 and hotcat >= 5:
  534. killvar 'uglyduck_flag'
  535. gs 'npc_relationship', 'socialgroup_setting_boys', 10, 10, 10, 10, 0, 0
  536. grupvalue[1] += 100
  537. old_grupvalue[1] += 100
  538. end
  539. !! Resetting relationships that go over the max
  540. :toptemprel
  541. if temprel < aarraynumber:
  542. temprel +=1
  543. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  544. jump 'toptemprel'
  545. end
  546. killvar 'temprel'
  547. gs 'bank', 'cikl'
  548. killvar 'holyday'
  549. killvar 'kanikuli'
  550. killvar 'pcs_ate'
  551. killvar 'pcs_drank'
  552. !! 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
  553. !!sisboyparty
  554. !!-1 - don''t go to the party
  555. !!0 - don''t know about parties
  556. !!1 - knows about the parties
  557. !!2 - agreed to go to the party
  558. !!3 - Missed the party
  559. !!Suspension ends
  560. if suspended['day'] = daystart: suspended['on'] = 0
  561. if mid($start_type, 1, 2) = 'sg':
  562. !!Party refresh if you didn''t see sis
  563. if week = 1 and sisboyparty ! 2:
  564. if sisterQW['party'] = -1: sisterQW['party'] = 0
  565. if sisboypartyQW >= 2 and sisboyparty > 0:
  566. sisboyparty_day = daystart + rand(3,5)
  567. end
  568. end
  569. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  570. if SchoolAtestat = 0 and SchoolBlock = 0:
  571. if month = 12 and day > 25:
  572. if day < 31:
  573. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  574. else
  575. $holyday = '<b>Winter Break starts tomorrow.</b>'
  576. end
  577. elseif month = 1 and day <= 15:
  578. kanikuli = 2
  579. if day < 13:
  580. $holyday = '<b>Winter Break.</b>'
  581. elseif day < 15:
  582. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  583. else
  584. $holyday = '<b>Last day of Winter Break.</b>'
  585. end
  586. elseif month = 3 and day > 13:
  587. if day < 19:
  588. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  589. elseif day = 19:
  590. $holyday = '<b>Spring Break starts tomorrow.</b>'
  591. elseif day >= 20 and day <= 26:
  592. kanikuli = 3
  593. if day < 24:
  594. $holyday = '<b>Spring Break.</b>'
  595. elseif day < 26:
  596. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  597. else
  598. $holyday = '<b>Last day of Spring Break.</b>'
  599. end
  600. end
  601. elseif month = 5:
  602. if year = 2017:
  603. if day = 26:
  604. kanikuli = 6
  605. SchoolAtestat = -1
  606. lernHome = 0
  607. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  608. elseif day = 25:
  609. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  610. elseif day >= 19:
  611. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  612. end
  613. elseif day >= 25:
  614. if day = 31:
  615. $holyday = '<b>Summer Break starts tomorrow.</b>'
  616. else
  617. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  618. end
  619. end
  620. elseif month = 6 or month = 7 or month = 8:
  621. kanikuli = 4
  622. if month = 8 and day >= 25:
  623. if day = 31:
  624. $holyday = '<b>Last day of Summer Break.</b>'
  625. else
  626. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  627. end
  628. else
  629. $holyday = '<b>Summer Break.</b>'
  630. end
  631. !! 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.'
  632. killvar 'first_time_outside_in_cold_weather'
  633. killvar 'first_time_doing_basketball'
  634. killvar 'first_time_spring_football_match'
  635. !! end inc
  636. elseif month = 10 and day >= 29:
  637. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  638. elseif month = 11:
  639. if day < 3:
  640. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  641. elseif day = 3:
  642. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  643. elseif day < 6:
  644. kanikuli = 1
  645. $holyday = '<b>Autumn Break.</b>'
  646. elseif day < 11:
  647. kanikuli = 1
  648. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  649. elseif day = 11:
  650. kanikuli = 1
  651. $holyday = '<b>Last day of Autumn Break.</b>'
  652. end
  653. end
  654. if kanikuli = 0 and week < 6:
  655. if week = 1:
  656. !!The start and end values for i have to be changed if more female schoolgirl npcs are added to the game
  657. i = 11
  658. :hotcat_calc_jump
  659. i += 1
  660. if hotcat_rating['A<<i>>'] = 0 and i < 145: jump 'hotcat_calc_jump'
  661. switch_rand = rand(1,100)
  662. if hotcat_movement['A<<i>>'] = 0 and switch_rand < 21:
  663. hotcat_rating['A<<i>>'] -= 1
  664. hotcat_movement['A<<i>>'] -= 1
  665. elseif hotcat_movement['A<<i>>'] = 0 and switch_rand > 80:
  666. hotcat_rating['A<<i>>'] += 1
  667. hotcat_movement['A<<i>>'] += 1
  668. elseif hotcat_movement['A<<i>>'] = 1 and switch_rand > 40:
  669. hotcat_rating['A<<i>>'] -= 1
  670. hotcat_movement['A<<i>>'] -= 1
  671. elseif hotcat_movement['A<<i>>'] = -1 and switch_rand > 40:
  672. hotcat_rating['A<<i>>'] += 1
  673. hotcat_movement['A<<i>>'] += 1
  674. end
  675. if i < 145: jump 'hotcat_calc_jump'
  676. killvar 'i'
  677. killvar 'switch_rand'
  678. end
  679. !! Resetting the late flag
  680. if late = 1: late = 0
  681. end
  682. !!Social grup changes
  683. !!Change from relatonship with other students.
  684. gs 'gschool_socialchg', 'group_student_rel_change'
  685. !!Decay for the school groups
  686. if grupvalue[1] > 0:
  687. grupvalue[1] -= rand(0,1)
  688. else
  689. grupvalue[1] = 0
  690. end
  691. if grupvalue[2] > 0:
  692. grupvalue[2] -= rand(0,1)
  693. else
  694. grupvalue[2] = 0
  695. end
  696. if grupvalue[3] > 0:
  697. grupvalue[3] -= rand(0,1)
  698. else
  699. grupvalue[3] = 0
  700. end
  701. if grupvalue[4] > 0:
  702. grupvalue[4] -= rand(0,1)
  703. else
  704. grupvalue[4] = 0
  705. end
  706. !!Maximum increase for grupvalues is 10 and max decay is 30
  707. if oldgrupvalue_set = 0:
  708. oldgrupvalue_set = 1
  709. old_grupvalue[1] = grupvalue[1]
  710. old_grupvalue[2] = grupvalue[2]
  711. old_grupvalue[3] = grupvalue[3]
  712. old_grupvalue[4] = grupvalue[4]
  713. else
  714. if old_grupvalue[1] + 10 < grupvalue[1]: grupvalue[1] = old_grupvalue[1] + 10
  715. if old_grupvalue[2] + 10 < grupvalue[2]: grupvalue[2] = old_grupvalue[2] + 10
  716. if old_grupvalue[3] + 10 < grupvalue[3]: grupvalue[3] = old_grupvalue[3] + 10
  717. if old_grupvalue[4] + 10 < grupvalue[4]: grupvalue[4] = old_grupvalue[4] + 10
  718. if old_grupvalue[1] - 30 > grupvalue[1]: grupvalue[1] = old_grupvalue[1] - 30
  719. if old_grupvalue[2] - 30 > grupvalue[2]: grupvalue[2] = old_grupvalue[2] - 30
  720. if old_grupvalue[3] - 30 > grupvalue[3]: grupvalue[3] = old_grupvalue[3] - 30
  721. if old_grupvalue[4] - 30 > grupvalue[4]: grupvalue[4] = old_grupvalue[4] - 30
  722. end
  723. !!Limit to max school group values
  724. if grupvalue[1] > 1000: grupvalue[1] = 1000
  725. if grupvalue[2] > 1000: grupvalue[2] = 1000
  726. if grupvalue[3] > 1000: grupvalue[3] = 1000
  727. if grupvalue[4] > 1000: grupvalue[4] = 1000
  728. old_grupvalue[1] = grupvalue[1]
  729. old_grupvalue[2] = grupvalue[2]
  730. old_grupvalue[3] = grupvalue[3]
  731. old_grupvalue[4] = grupvalue[4]
  732. elseif SchoolAtestat = -1:
  733. if func('homes_properties', 'has_access', 'parents_home') = 0:
  734. $holyday = '<b>You missed your graduation. You could pick up your diploma at the school.</b>'
  735. else
  736. $holyday = '<b>You missed your graduation. Maybe your mother picked up your diploma.</b>'
  737. end
  738. end
  739. !!Brother''s dick growth as he gets older
  740. !Commented out till some future time
  741. !if kolka_dick_day + 30 < daystart and npc_dick['A34'] < 26:
  742. ! kolka_dick_day = daystart
  743. ! npc_dick['A34'] += 1
  744. !end
  745. !if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  746. ! $npc_thdick['A34'] = 'well proportioned'
  747. !elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  748. ! $npc_thdick['A34'] = 'thick'
  749. !end
  750. !! Calcualting the increase/decreas of the grade each week.
  751. gs 'gschool', 'weekly grade update'
  752. end
  753. killvar 'natholi'
  754. if month = 1 and day >= 1 and day <= 8:
  755. $natholi = 'New Year holidays'
  756. natholi = 1
  757. if day = 1:$natholi += ', New Year'
  758. if day = 7:$natholi += ', Christmas'
  759. end
  760. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  761. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  762. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  763. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  764. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  765. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  766. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  767. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  768. if natholi = 1:
  769. if $holyday ! '': $holyday += '<br>'
  770. $holyday += $natholi
  771. end
  772. !!====================================================================!!
  773. !! !!
  774. !! Setting story SMS times !!
  775. !! !!
  776. !!====================================================================!!
  777. gs 'SMS_schedules', 'cikl'
  778. !!------------------------------------------------------------------------------------------------------------------------
  779. !!Setting the weeks in the university semester and making sure that the gades are calculated at the right times
  780. gs 'uni_lessons', 'cikl'
  781. !!------------------------------------------------------------------------------------------------------------------------
  782. !!resetting moisturizer so it can be used in the morning regardless
  783. moisturiser_time = totminut
  784. !!same with chaffing cream
  785. mosal_time = totminut
  786. !!resetting last_pee to counteract time cheat
  787. !!also, the first thing you do in the morning is visiting your porcelain friend, no?
  788. killvar 'last_pee'
  789. !!Drugs reduction
  790. gs 'drugs', 'cocaine', 'cikl'
  791. gs 'drugs', 'mentats', 'cikl'
  792. gs 'drugs', 'aphrodisiac', 'cikl'
  793. gs 'gaddvor','cikl'
  794. loc_count = ARRSIZE('$CloLosLoc')
  795. i = loc_count - 1
  796. :loopCloLoc
  797. $CloLoc = $CloLosLoc[i]
  798. CloLostOn = CloLosDay[$CloLoc]
  799. if CloLostOn + RAND(7,14) < daystart :
  800. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  801. end
  802. i -=1
  803. if i > -1 :jump 'loopCloLoc'
  804. if vidageday > 1080: vidageday = 1080
  805. if blizoruk < 10: blizoruk -= 1
  806. if blizoruk < 100: blizoruk -= rand(0,1)
  807. if blizoruk < 0: blizoruk = 0
  808. !!------------------------------------------------------------------------------------------------------------------------
  809. !!C and B array cleaning
  810. if InSleep = 1: gs 'npc','cleanarrays'
  811. !!------------------------------------------------------------------------------------------------------------
  812. !!-------------Therapist Route schedule variables----------------------------------------------------------------------
  813. !! 23 = kitchen
  814. !! 24 = Living room
  815. !! 25 = bathroom
  816. !! 26 = Master''s room
  817. if therapistWantsSlave > 0:
  818. annaclean1 = rand(23,26)
  819. end
  820. killvar 'therapistFuckedPussyScene'
  821. !!------------------------------------------------------------------------------------------------------------
  822. !!-------------Family Dog----------------------------------------------------------------------
  823. if $status['dog'] ! 'blocked' and rex['owned'] = 1:
  824. rex['timer_day'] = daystart
  825. !!Daily decay
  826. rex['relationship'] -= 1
  827. !!Chores
  828. if cheat['dog_rel'] = 0 and rex['gadukino_day'] ! daystart:
  829. npc_rel['A29'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  830. rex['relationship'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  831. end
  832. rex['count_run'] = 0
  833. rex['count_walk'] = rex['count_walk_base']
  834. rex['timer_walk'] = 0
  835. rex['count_feed'] = rex['count_feed_base']
  836. rex['timer_feed'] = 0
  837. if week = 1:
  838. if cheat['dog_rel'] = 0:
  839. npc_rel['A29'] -= rex['count_bath']
  840. rex['relationship'] -= (rex['count_bath'] * 5)
  841. end
  842. rex['count_bath'] = rex['count_bath_base']
  843. end
  844. end
  845. !!------------------------------------------------------------------------------------------------------------
  846. !!---------- School related schedule -------------------------------------------------------------------------
  847. starlets_on = iif( ( (week = 5 and odd_week = 0) or (week = 1 or week = 3 or week >= 6) ) and natholi = 0,1,0)
  848. 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)
  849. if starlets['late_message'] = 1: starlets['late_message'] = 0
  850. !!------------------------------------------------------------------------------------------------------------
  851. !!---------- Starlet Content ---------------------------------------------------------------------------------
  852. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0:
  853. if starlets_practice = daystart - 1:
  854. starlets_missed = 1
  855. starlets_practice = 0
  856. end
  857. if starlets_on = 1: starlets_practice = daystart
  858. end
  859. if month = 9 and day = 16 and AlbinaQW['ParkRally'] = 0: AlbinaQW['ParkRally'] = 1
  860. if month = 10 and day = 16 and AlbinaQW['ParkRally'] = 1: AlbinaQW['ParkRally'] = 2
  861. 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
  862. !!------------------------------------------------------------------------------------------------------------
  863. !!-------------Music career related variables and calculations------------------------------------------------
  864. !! Setting Del Parco initial variables
  865. if daystart < 2:
  866. ml_delparcoQW['Stage'] = 0
  867. ml_delparcoQW['Zariyah Trust'] = 50
  868. end
  869. !! How many hours a day can Sveta perform. It maxes out at 3.
  870. !! Using the actual skill level, not the one modified by Attributes because that is more realistic for this.
  871. ml_performance['max_perform_minutes'] = pcs_instrmusic + pcs_vokal
  872. ml_performance['performed_minutes'] = 0
  873. !! Checking for missed guitar lesson
  874. if ml_guitarlesson['nextlesson'] < daystart and ml_guitarlesson['lessonday'] ! 8:
  875. ml_guitarlesson['lessonday'] = 8
  876. end
  877. !! Calculating the fame increase from the uploaded songs and removing ones that do not effect fame anymore to keep the
  878. !! data at a sane level
  879. if ml_onlinesongcount > 0:
  880. i = 0
  881. j = -1
  882. :looponlinesongs
  883. !! this so every song counts only every 7 days and only for a limited number of weeks
  884. if ml_onlinesong_freshness[i] > 0:
  885. j += 1
  886. ml_tempsong_freshness[j] = ml_onlinesong_freshness[i]
  887. ml_tempsong_lastcalcday[j] = ml_onlinesong_lastcalcday[i]
  888. ml_tempsong_hotcat[j] = ml_onlinesong_hotcat[i]
  889. ml_tempsong_skilllevel[j] = ml_onlinesong_skilllevel[i]
  890. ml_tempsong_uploaded[j] = ml_onlinesong_uploaded[i]
  891. if ml_tempsong_lastcalcday[j] <= (daystart - 7) and ml_tempsong_uploaded = 1:
  892. gs 'fame', 'city', 'music', rand(0, ml_tempsong_freshness[j]/100)
  893. ml_tempsong_freshness[j] -= 10
  894. ml_tempsong_lastcalcday[j] = daystart
  895. end
  896. end
  897. i += 1
  898. if i < ml_onlinesongcount: jump 'looponlinesongs'
  899. killvar 'ml_onlinesong_freshness'
  900. killvar 'ml_onlinesong_lastcalcday'
  901. killvar 'ml_onlinesong_hotcat'
  902. killvar 'ml_onlinesong_skilllevel'
  903. killvar 'ml_onlinesong_uploaded'
  904. i = 0
  905. if j >= 0:
  906. :looprebuildsongs
  907. ml_onlinesong_freshness[i] = ml_tempsong_freshness[i]
  908. ml_onlinesong_hotcat[i] = ml_tempsong_hotcat[i]
  909. ml_onlinesong_lastcalcday[i] = ml_tempsong_lastcalcday[i]
  910. ml_onlinesong_skilllevel[i] = ml_tempsong_skilllevel[i]
  911. ml_onlinesong_uploaded[i] = ml_tempsong_uploaded[i]
  912. i += 1
  913. if i <= j: jump 'looprebuildsongs'
  914. end
  915. killvar 'ml_tempsong_freshness'
  916. killvar 'ml_tempsong_lastcalcday'
  917. killvar 'ml_tempsong_hotcat'
  918. killvar 'ml_tempsong_skilllevel'
  919. killvar 'ml_tempsong_uploaded'
  920. end
  921. !! Repertoire quality decay if no practice is done
  922. if ml_performance['set_lastpracticeday'] ! (daystart-1): repertoire_quality -= 2
  923. !!------------- Prostitution - WLife integration related stuff ------------------------------------------------
  924. !! Check if people will start to seek Sveta randomly for services, based on her reputation
  925. gs 'prostitution_functions', 'check_for_wlife'
  926. gs 'prostitution_functions', 'update_prostitution_locations'
  927. prostitute['earnings_day'] = 0
  928. prostitute['customer_day'] = 0
  929. !!------------- Property and Home Related daily, nonfinancial checks ------------------------------------------
  930. !! Moves time for the rented properties
  931. gs 'homes_properties', 'progress_property_rent_time'
  932. !!------------- Check for Daily Events for event generator, sets evt_chk variable ------------------------------------------
  933. gs 'emp_functions', 'evt_day_chk'
  934. !!----------------------------------------------------------------------
  935. !!---------------------------- WEEKLY RESET ----------------------------
  936. !!----------------------------------------------------------------------
  937. if week = 1:
  938. !! Reset used car dealership offers
  939. killvar 'used_car'
  940. !! Reset therapist schedule
  941. killvar 'therapist_weekly_block'
  942. end
  943. !!------------- Advance book loan debt ------------------------------------------
  944. if $lib_book_loaned ! '': lib_debt += 50
  945. !!------------- Preliminary npc_uni_eduTipe ------------------------------------------
  946. !!
  947. !!npc_uni_eduType = '', 'professor', 'teaching_studies', 'business_studies', 'science_studies', 'fashion_studies'
  948. !! 'nursing_studies', 'psychology_studies', 'programming_studies', 'other_studies'
  949. !!
  950. !!Will eventually need to be moved to the npcstatic and npcstaticdefault files for eternal uni npcs
  951. !!To specific event checks for pav_uni npcs
  952. !!And to the various starts.
  953. !!This should be migrated to npcstaticx and eventually schedule
  954. if set_npc_uni_eduType = 0:
  955. set_npc_uni_eduType = 1
  956. npc_uni_active['A77'] = 1
  957. npc_uni_active['A82'] = 1
  958. npc_uni_active['A83'] = 1
  959. npc_uni_active['A84'] = 1
  960. npc_uni_active['A209'] = 1
  961. npc_uni_active['A220'] = 1
  962. npc_uni_active['A242'] = 1
  963. npc_uni_active['A243'] = 1
  964. npc_uni_active['A244'] = 1
  965. npc_uni_active['A245'] = 1
  966. npc_uni_active['A246'] = 1
  967. npc_uni_active['A247'] = 1
  968. end
  969. !! This should eventually be migrated to schedule
  970. if set_pav_npc_uni_active = 0 and yearstart = 2 and month >= 8 and day >= 28:
  971. set_pav_npc_uni_active = 1
  972. npc_uni_active['A1'] = 1
  973. npc_uni_active['A2'] = 1
  974. npc_uni_active['A4'] = 1
  975. npc_uni_active['A7'] = 1
  976. npc_uni_active['A12'] = 1
  977. npc_uni_active['A13'] = 1
  978. npc_uni_active['A14'] = 1
  979. npc_uni_active['A15'] = 1
  980. npc_uni_active['A16'] = 1
  981. npc_uni_active['A17'] = 1
  982. npc_uni_active['A18'] = 1
  983. npc_uni_active['A19'] = 1
  984. npc_uni_active['A22'] = 1
  985. npc_uni_active['A23'] = 1
  986. npc_uni_active['A25'] = 1
  987. npc_uni_active['A139'] = 1
  988. npc_uni_active['A140'] = 1
  989. npc_uni_active['A142'] = 1
  990. npc_uni_active['A144'] = 1
  991. npc_uni_active['A146'] = 1
  992. npc_uni_active['A147'] = 1
  993. npc_uni_active['A149'] = 1
  994. npc_uni_active['A152'] = 1
  995. npc_uni_active['A153'] = 1
  996. npc_uni_active['A155'] = 1
  997. npc_uni_active['A159'] = 1
  998. npc_uni_active['A165'] = 1
  999. end
  1000. !!------------- Advance will counter ------------------------------------------
  1001. if will_counter >= 20: will_counter -= 20 & willpowermax += 1
  1002. !!-----------------webcam follower loss due to inactivity ------------------------------------------
  1003. if camwhore = 1:
  1004. if cam_daystart < daystart:
  1005. engagementFactor = 1 + (CamBonus / 100)
  1006. popularityFactor = webpopular / 1000
  1007. if regviewReset < 3:
  1008. if regview >= 500:
  1009. FollowersLost = rand(regview / (100 * engagementFactor), regview / (50 * engagementFactor)) + popularityFactor
  1010. else
  1011. FollowersLost = rand(1, 3) + popularityFactor
  1012. end
  1013. cam_daystart = daystart + max(1, 3 - (CamBonus / 50))
  1014. else
  1015. if regview >= 300:
  1016. FollowersLost = rand(regview / (80 * engagementFactor), regview / (40 * engagementFactor)) + popularityFactor
  1017. else
  1018. FollowersLost = rand(2, 6) + popularityFactor
  1019. end
  1020. cam_daystart = daystart + max(1, 2 - (CamBonus / 50))
  1021. end
  1022. regviewReset += 1
  1023. FollowersLost = func('shortgs', 'clamp', FollowersLost, 0, regview)
  1024. totFollowersLost += FollowersLost
  1025. regview -= FollowersLost
  1026. killvar 'FollowersLost'
  1027. end
  1028. end
  1029. !!---------------Keeping track of missing court appearances-----------------------------
  1030. if arrsize('policeQW_courthearing_dates') > 0 and daystart > policeQW_courthearing_dates[0]:
  1031. policeQW['missed_court_dates'] += 1
  1032. policeQW['tot_court_dates_missed'] += 1
  1033. !! Might need code to throw a message with 'You''ve missed your court hearing or something'
  1034. policeQW_courtletter_dates[] = daystart + rand(3, 6)
  1035. $policeQW_courtletter_subjects[] = 'missed_court_<<$policeQW_courthearing_subjects[0]>>'
  1036. killvar 'policeQW_courthearing_dates', 0
  1037. killvar 'policeQW_courthearing_subjects', 0
  1038. end
  1039. if policeQW['fine_deadline'] > 0:
  1040. if daystart > policeQW['fine_deadline'] - 8:
  1041. policeQW_courtletter_dates[] = daystart
  1042. $policeQW_courtletter_subjects[] = 'fine'
  1043. elseif daystart > policeQW['fine_deadline']:
  1044. policeQW['missed_fine_deadlines'] += 1
  1045. policeQW['tot_fines_deadlines_missed'] += 1
  1046. !! Might need code to throw a message with 'you''ve failed to pay your fine on time.'
  1047. policeQW_courtletter_dates[] = daystart + rand(3, 6)
  1048. $policeQW_courtletter_subjects[] = 'missed_fine'
  1049. end
  1050. end
  1051. if arrsize('policeQW_courtletter_dates') > 1:
  1052. gs 'shortgs', 'coupled_array_sort', 'policeQW_courtletter_dates', '$policeQW_courtletter_subjects'
  1053. end
  1054. if arrsize('policeQW_courthearing_dates') > 1:
  1055. gs 'shortgs', 'coupled_array_sort', 'policeQW_courthearing_dates', '$policeQW_courthearing_subjects'
  1056. end
  1057. if blackmailQW['stage'] > 0: gs 'blackmailer', 'cikl'
  1058. --- cikl ---------------------------------