cikl.qsrc 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362
  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 succubusflag = 0 or CheatBimbo2 = 1:
  163. if cheatBimbo = 0 and bimbo_flag = 1:
  164. bimbo += 1
  165. end
  166. end
  167. !!Once bimbolevel is set to 1, must use the withdrawal in stat to return to 0
  168. if bimbo > 0 or bimbolevel > 0:
  169. if bimbo < 10:
  170. if bimbo_flag = 0:
  171. bimbo -= 2
  172. end
  173. elseif bimbo < 20:
  174. bimbolevel = 1
  175. elseif bimbo < 30:
  176. bimbolevel = 2
  177. else
  178. bimbolevel = 3
  179. end
  180. end
  181. if bimbo >= 40: bimbo = 40
  182. !!Bimbo levels. They use custom variables so they won''t permanently change character stats
  183. if bimbolevel = 0: supnatvnesh = 0 & bimbostupidity = 0
  184. if CheatBimbo2 = 0:
  185. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 6)
  186. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 4)
  187. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = (pcs_intel / 3)
  188. elseif CheatBimbo2 = 1:
  189. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = 0
  190. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = 0
  191. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = 0
  192. end
  193. !!A Succubus cannot be a Bimbo
  194. if succubusflag = 1 and CheatBimbo3 = 0:
  195. if bimbolevel > 0 and bimbo > 0: bimbowithdrawal = 40
  196. elseif bimbolevel >= 1:
  197. !!Checks flag and adds withdrawal if 0
  198. if bimbo_flag = 0:
  199. bimbowithdrawal += 1
  200. else
  201. bimbowithdrawal = 0
  202. end
  203. end
  204. if bimbo < 0: bimbo = 0
  205. !! flag reset
  206. bimbo_flag = 0
  207. !!------------------------------------------------------------------------------------------------------------
  208. !! Butt slut
  209. !!------------------------------------------------------------------------------------------------------------
  210. if orgasm_anal > orgasm_anal[1]:
  211. if pcs_traits['buttslut_lvl'] > 0: pcs_traits['buttslut_exp'] += orgasm_anal - orgasm_anal[1]
  212. else
  213. if pcs_traits['buttslut_exp'] > 1: pcs_traits['buttslut_exp'] -= 1
  214. end
  215. orgasm_anal[1] = orgasm_anal
  216. if orgasm_anal > 10 and pcs_traits['buttslut_lvl'] = 0: pcs_traits['buttslut_lvl'] = 1
  217. if pcs_traits['buttslut_exp'] >= 15 and pcs_traits['buttslut_lvl'] = 1: pcs_traits['buttslut_lvl'] = 2 & pcs_traits['buttslut_exp'] = 0
  218. if pcs_traits['buttslut_exp'] >= 50 and pcs_traits['buttslut_lvl'] = 2: pcs_traits['buttslut_lvl'] = 3
  219. if pcs_traits['buttslut_exp'] <= 0 and pcs_traits['buttslut_lvl'] = 3: pcs_traits['buttslut_lvl'] = 2 & pcs_traits['buttslut_exp'] = 0
  220. !!------------------------------------------------------------------------------------------------------------
  221. !! Exhibitionism
  222. !!------------------------------------------------------------------------------------------------------------
  223. if pcs_exhib > 0 or exhibitionist_lvl > 0:
  224. if pcs_exhib < 10:
  225. pcs_exhib -= 1
  226. elseif pcs_exhib < 50:
  227. exhibitionist_lvl = 1
  228. elseif pcs_exhib < 100 or exhibitionQW < 3:
  229. exhibitionist_lvl = 2
  230. elseif exhibitionQW > 2:
  231. exhibitionist_lvl = 3
  232. end
  233. end
  234. !!Inhibition increases from wearing revealing clothing
  235. if exhibition_outdoors > 0:
  236. if pcs_inhib > 90:
  237. exhibition_outdoors = exhibition_outdoors * 3
  238. elseif pcs_inhib > 75:
  239. exhibition_outdoors = exhibition_outdoors * 5 / 2
  240. elseif pcs_inhib > 60:
  241. exhibition_outdoors = exhibition_outdoors * 2
  242. elseif pcs_inhib > 30:
  243. exhibition_outdoors = exhibition_outdoors * 3 / 2
  244. end
  245. if exhibition_outdoors <= 5:
  246. inhib_exp += rand(3,6)
  247. elseif exhibition_outdoors <= 10:
  248. inhib_exp += rand(5,9)
  249. elseif exhibition_outdoors <= 15:
  250. inhib_exp += rand(7,12)
  251. elseif exhibition_outdoors <= 20:
  252. inhib_exp += rand(9,15)
  253. elseif exhibition_outdoors <= 25:
  254. inhib_exp += rand(12,20)
  255. elseif exhibition_outdoors <= 30:
  256. inhib_exp += rand(16,25)
  257. elseif exhibition_outdoors <= 35:
  258. inhib_exp += rand(20,30)
  259. elseif exhibition_outdoors <= 40:
  260. inhib_exp += rand(25,40)
  261. elseif exhibition_outdoors <= 50:
  262. inhib_exp += rand(35,50)
  263. elseif exhibition_outdoors <= 65:
  264. inhib_exp += rand(50,75)
  265. else
  266. inhib_exp += rand(70,100)
  267. end
  268. end
  269. exhibition_outdoors = 0
  270. !!------------------------------------------------------------------------------------------------------------
  271. !! Everything is new again
  272. !!------------------------------------------------------------------------------------------------------------
  273. !!Trait ''Everything is new again'', gained from the sg_tg start
  274. !! starts at 84 and decreases by 1 every day, when reaches 0 the trait will get disabled
  275. if pcs_traits['new_again'] > 0: pcs_traits['new_again'] -= 1
  276. !!------------------------------------------------------------------------------------------------------------
  277. !! Succubus Level & hunger calcs
  278. !!------------------------------------------------------------------------------------------------------------
  279. if succubusflag = 1: gs 'succubus','cikl'
  280. !!------------------------------------------------------------------------------------------------------------
  281. if defcurly = 0 and curly > 0:curly -= 1
  282. if defcurly = 1:
  283. if straight > 0: straight -= 1
  284. if straight = 0: curly = 2147483647
  285. end
  286. gs 'sweat', 'add', 2
  287. if pcs_tan > 0: pcs_tan -= 1
  288. if prezikmsg = 2: prezikmsg = 3
  289. gs 'fertility', 'daily_update'
  290. !!------------------------------------------------------------------------------------------------------------
  291. if pcs_breath = 1:pcs_breath = 0
  292. if cheatNoEat = 1 and dounspell = 1:fat += 15
  293. !!Trauma decay
  294. if mood_trauma > 0: mood_trauma -= 1
  295. !!STD check
  296. if SifacOnce = 1:Sifilis += 1
  297. if GerpesOnce = 1:Gerpes += 1
  298. if TriperOnce = 1:
  299. if Triper > 0:
  300. Triper += 1
  301. end
  302. if TriperOral > 0:
  303. TriperOral += 1
  304. end
  305. If TriperOral > 14 and TriperNapr = 0:
  306. if rand(TriperOral,100) > 80:
  307. TriperOral = 0
  308. if Triper = 0:TriperOnce = 0
  309. TriperOralSigns = 0
  310. end
  311. end
  312. end
  313. if KandidozOnce = 1:Kandidoz += 1
  314. Venera = 0
  315. if SifacOnce = 1: Venera += 1
  316. if GerpesOnce = 1: Venera += 1
  317. if TriperOnce = 1: Venera += 1
  318. !! Fail safe
  319. if ashrinkdays = 0: ashrinkdays = 6
  320. if vshrinkdays = 0: vshrinkdays = 6
  321. if pcs_ass > 1 and ashrink > 0 and analplugIN = 0:
  322. if daystart mod(ashrinkdays) = 0: pcs_ass -= ashrink
  323. if pcs_ass < 0: pcs_ass = 0
  324. end
  325. if pcs_vag > 10 and vshrink > 0:
  326. if daystart mod(vshrinkdays) = 0: pcs_vag -= vshrink
  327. if pcs_vag < 0: pcs_vag = 0
  328. end
  329. lipkoef -= rand(0,1)
  330. if lipkoef <= 0: lipkoef = 0
  331. if isprok = 1 or isprokp = 1:
  332. isprok_lastday = 1
  333. else
  334. isprok_lastday = 0
  335. end
  336. if Enable_auto_tampons = 0 and isprok = 1: isprok = 0 & 'You threw away your used tampon.'
  337. if Enable_auto_tampons = 0 and isprokp = 1:isprokp = 0 & 'You threw away your used sanitary pad.'
  338. if lactation['nipgrowth'] > 0:
  339. tmp = rand(0,2)
  340. pcs_nips -= tmp
  341. lactation['nipgrowth'] -= tmp
  342. killvar 'tmp'
  343. elseif lactation['nipgrowth'] < 0:
  344. lactation['nipgrowth'] = 0
  345. end
  346. if preg = 1:
  347. pregtime = pregchem / 24
  348. if pregtimes = 0:pregtimes = 1
  349. elseif preg = 2 and pregminut < totminut:
  350. if Enable_nogameover = 0 :
  351. cla
  352. *clr
  353. over = 4
  354. MSG '<center><b>A horrible pain shoots through your body.</b></center>'
  355. xgt 'gameover'
  356. exit
  357. else
  358. MSG'<font color=red><B>You should die for giving birth unprepared, but Cheat Mode keeps you Alive.</B></font>'
  359. pregminut = totminut + 1440
  360. end
  361. elseif preg = 0:
  362. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A14'
  363. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A16'
  364. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A23'
  365. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A28'
  366. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A29'
  367. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A33'
  368. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A34'
  369. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A69'
  370. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A131'
  371. !{killvar 'pregTalkFamily' -- Do not kill this (Abortion talk).}
  372. killvar 'pcs_pregtalk'
  373. killvar 'pregTalk'
  374. killvar 'pregtime'
  375. killvar 'knowpreg'
  376. killvar 'denypreg'
  377. killvar '$wombthfath'
  378. end
  379. !!------------------------------------------------------------------------------------------------------------
  380. !! Arousal
  381. !!------------------------------------------------------------------------------------------------------------
  382. if $start_type[1] ! 'nomagic':
  383. if pcs_horny < 100:pcs_horny += pcs_vag
  384. else
  385. if stat['think_virgin'] = 1:
  386. razeba = 0
  387. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 10
  388. if pcs_horny > 50:pcs_horny -= 25
  389. elseif stat['think_virgin'] = 0:
  390. if pregtimes = 0:
  391. if age < 18:
  392. razeba = 1
  393. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 5
  394. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 10
  395. if pcs_horny >= 80:pcs_horny -= 20
  396. elseif age >= 18 and age < 21:
  397. razeba = 2
  398. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 1
  399. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 5
  400. if pcs_horny >= 80:pcs_horny -= 10
  401. elseif age >= 21 and age < 25:
  402. razeba = 3
  403. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 1
  404. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 1
  405. if pcs_horny >= 80:pcs_horny -= 5
  406. elseif age >= 25 and age < 30:
  407. razeba = 4
  408. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 5
  409. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 1
  410. if pcs_horny >= 80:pcs_horny -= 5
  411. elseif age >= 30:
  412. razeba = 5
  413. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  414. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  415. if pcs_horny >= 80:pcs_horny += 1
  416. end
  417. elseif pregtimes > 0:
  418. if preg = 0:
  419. razeba = 5
  420. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  421. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  422. if pcs_horny >= 80:pcs_horny += 1
  423. elseif preg > 0:
  424. razeba = 6
  425. if pcs_horny < 100:pcs_horny += pregchem / 240
  426. end
  427. end
  428. end
  429. end
  430. if pcs_horny < 0:pcs_horny = 0
  431. !!------------------------------------------------------------------------------------------------------------
  432. !reset Natasha Belova''s clothes
  433. if NatbelQW['seethroughwearing'] = 1: NatbelQW['seethroughwearing'] = 0
  434. !!------------------------------------------------------------------------------------------------------------
  435. !counter for Dimka avoidance
  436. if dimaFilm = 1 and dimaRudeBlock = 0:
  437. nodimkaK += 1
  438. DimkaWarnedToday = 0
  439. end
  440. !!------------------------------------------------------------------------------------------------------------
  441. !!Fame degradation
  442. gs 'fame', 'deg'
  443. !!Traits
  444. gs 'traits', 'overnight'
  445. !!------------------------------------------------------------------------------------------------------------
  446. !! Clothing wear and tear
  447. gs 'starenie'
  448. if pregchem > 240:fat += 1
  449. !!------------------------------------------------------------------------------------------------------------
  450. !! Pain
  451. !!------------------------------------------------------------------------------------------------------------
  452. if pain['head'] > 0: pain['head'] -= max(rand(1,3), rand(pain['head'] /2))
  453. if pain['hair'] > 0: pain['hair'] -= max(rand(1,3), rand(pain['hair'] /2))
  454. if pain['ears'] > 0: pain['ears'] -= max(rand(1,3), rand(pain['ears'] /2))
  455. if pain['eyebrows'] > 0: pain['eyebrows'] -= max(rand(1,3), rand(pain['eyebrows'] /2))
  456. if pain['eyes'] > 0: pain['eyes'] -= max(rand(1,3), rand(pain['eyes'] /2))
  457. if pain['cheeks'] > 0: pain['cheeks'] -= max(rand(1,3), rand(pain['cheeks'] /2))
  458. if pain['nose'] > 0: pain['nose'] -= max(rand(1,3), rand(pain['nose'] /2))
  459. if pain['mouth'] > 0: pain['mouth'] -= max(rand(1,3), rand(pain['mouth'] /2))
  460. if pain['lips'] > 0: pain['lips'] -= max(rand(1,3), rand(pain['lips'] /2))
  461. if pain['tongue'] > 0: pain['tongue'] -= max(rand(1,3), rand(pain['tongue'] /2))
  462. if pain['throat'] > 0: pain['throat'] -= max(rand(1,3), rand(pain['throat'] /2))
  463. if pain['neck'] > 0: pain['neck'] -= max(rand(1,3), rand(pain['neck'] /2))
  464. if pain['back'] > 0: pain['back'] -= max(rand(1,3), rand(pain['back'] /2))
  465. if pain['asscheeks'] > 0:pain['asscheeks'] -= max(rand(1,3), rand(pain['asscheeks'] /2))
  466. if pain['asshole'] > 0: pain['asshole'] -= max(rand(1,3), rand(pain['asshole'] /2))
  467. if pain['hips'] > 0: pain['hips'] -= max(rand(1,3), rand(pain['hips'] /2))
  468. if pain['thighs'] > 0: pain['thighs'] -= max(rand(1,3), rand(pain['thighs'] /2))
  469. if pain['legL'] > 0: pain['legL'] -= max(rand(1,3), rand(pain['legL'] /2))
  470. if pain['legR'] > 0: pain['legR'] -= max(rand(1,3), rand(pain['legR'] /2))
  471. if pain['feet'] > 0: pain['feet'] -= max(rand(1,3), rand(pain['feet'] /2))
  472. if pain['toes'] > 0: pain['toes'] -= max(rand(1,3), rand(pain['toes'] /2))
  473. if pain['shoulders'] > 0:pain['shoulders'] -= max(rand(1,3), rand(pain['shoulders'] /2))
  474. if pain['armL'] > 0: pain['armL'] -= max(rand(1,3), rand(pain['armL'] /2))
  475. if pain['armR'] > 0: pain['armR'] -= max(rand(1,3), rand(pain['armR'] /2))
  476. if pain['hands'] > 0: pain['hands'] -= max(rand(1,3), rand(pain['hands'] /2))
  477. if pain['fingers'] > 0: pain['fingers'] -= max(rand(1,3), rand(pain['fingers'] /2))
  478. if pain['chest'] > 0: pain['chest'] -= max(rand(1,3), rand(pain['chest'] /2))
  479. if pain['breasts'] > 0: pain['breasts'] -= max(rand(1,3), rand(pain['breasts'] /2))
  480. if pain['nipples'] > 0: pain['nipples'] -= max(rand(1,3), rand(pain['nipples'] /2))
  481. if pain['ribs'] > 0: pain['ribs'] -= max(rand(1,3), rand(pain['ribs'] /2))
  482. if pain['tummy'] > 0: pain['tummy'] -= max(rand(1,3), rand(pain['tummy'] /2))
  483. if pain['pubic'] > 0: pain['pubic'] -= max(rand(1,3), rand(pain['pubic'] /2))
  484. if pain['vaginal'] > 0: pain['vaginal'] -= max(rand(1,3), rand(pain['vaginal'] /2))
  485. if pain['labia'] > 0: pain['labia'] -= max(rand(1,3), rand(pain['labia'] /2))
  486. if pain['clitoris'] > 0: pain['clitoris'] -= max(rand(1,3), rand(pain['clitoris'] /2))
  487. if pain['urethra'] > 0: pain['urethra'] -= max(rand(1,3), rand(pain['urethra'] /2))
  488. if pain['cervix'] > 0: pain['cervix'] -= max(rand(1,3), rand(pain['cervix'] /2))
  489. if painpub = 2:
  490. if painpubday + 5 < daystart:
  491. $painpub = 'Your vulva is painfully sore.'
  492. painpub = 1
  493. painpubday = daystart
  494. elseif painpubday + 5 >= daystart:
  495. $painpub = 'Your vulva is painfully sore.'
  496. end
  497. elseif painpub = 1:
  498. if painpubday + 5 < daystart:
  499. $painpub = ''
  500. painpub = 0
  501. painpubday = daystart
  502. elseif painpubday + 5 >= daystart:
  503. $painpub = 'Your vulva is a little sore.'
  504. end
  505. end
  506. prezikProver += 1
  507. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  508. if shorthair = 1:
  509. shorthairday += 1
  510. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  511. end
  512. !!------------------------------------------------------------------------------------------------------------
  513. !!Resetting the counter for relationship modifications that are limited in how many time a day they can be applied.
  514. killvar 'npc_rel_daily'
  515. !!Resetting the counters for npc reactions after certain time periods have passed.
  516. gs 'npc_reactions', 'cikl'
  517. !! Setting the day for nerd game nights
  518. gs 'nerd_game_night', 'cikl'
  519. !!Keeping Christina hating Sveta
  520. gs 'Zvereva_events', 'cikl'
  521. !!Albina hates gopniks while at school
  522. if SchoolAtestat = 0 and grupTipe = 4 and AlbinaQW['Friends'] ! 2 and npc_rel['A23'] > 20:
  523. gs 'npc_relationship', 'set', 'A23', 20
  524. end
  525. !!if Vitek''s ex he never forgives her
  526. if kotovLoveQW = -1:
  527. gs 'npc_relationship', 'set', 'A9', 0
  528. end
  529. !!Updating Katja''s variables.
  530. gs 'katja_procedural', 'cikl'
  531. if npc_rel['A69'] > 60 and rand(0,3) = 0:npc_rel['A69'] -= 1
  532. !!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.
  533. gs 'soniadisco', 'cikl'
  534. dmishaevent = 0
  535. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  536. if GspravkaT = 1:Gspravka -= 1
  537. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] > 0 and BurgerQW['IlyQWPoliceDayCount'] < 30:
  538. BurgerQW['IlyQWPoliceDayCount'] += 1
  539. elseif BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] = 30:
  540. BurgerQW['IlyQW'] = 3
  541. end
  542. !!Remove degradation for inhibition
  543. inhib_flr = inhib_lvl
  544. gs 'stat_sklattrib', 'daycall'
  545. !Update body measurements and base appearnce
  546. gs 'body', 'DailyUpdate'
  547. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  548. !!Pussy_Kats job settings
  549. inWorkYoungShop = 0
  550. if week = 1 and young_shop_work = 100: young_shop_work = 1
  551. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  552. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  553. husbandsexday = 0
  554. borsexkol = 0
  555. givisexday = 0
  556. if shantsr > 0:
  557. pay = shantsr * 5000
  558. karta += pay
  559. shantsr = 0
  560. end
  561. if shantbog > 0:
  562. :shantftb
  563. shantftbgrand = rand(0, 10)
  564. if shantftbgrand > 2:
  565. shantpopala += 1
  566. shantbog -= 1
  567. if shantbog > 0:jump 'shantftb'
  568. elseif shantftbgrand <= 2:
  569. karta += 30000
  570. shantbog -= 1
  571. if shantbog > 0:jump 'shantftb'
  572. end
  573. end
  574. petersexday = 0
  575. if cheatKlisma = 0:
  576. klismaday = daystart
  577. klismaday1 = 1
  578. else
  579. klismaday1 = 0
  580. end
  581. !!ugly duckling start becoming a swan
  582. if uglyduck_flag = 1 and hotcat >= 5:
  583. killvar 'uglyduck_flag'
  584. gs 'npc_relationship', 'socialgroup_setting_boys', 10, 10, 10, 10, 0, 0
  585. grupvalue[1] += 100
  586. old_grupvalue[1] += 100
  587. end
  588. !! Resetting relationships that go over the max
  589. :toptemprel
  590. if temprel < aarraynumber:
  591. temprel +=1
  592. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  593. jump 'toptemprel'
  594. end
  595. killvar 'temprel'
  596. gs 'bank', 'cikl'
  597. killvar 'holyday'
  598. killvar 'kanikuli'
  599. killvar 'pcs_ate'
  600. killvar 'pcs_drank'
  601. !! 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
  602. !!sisboyparty
  603. !!-1 - don''t go to the party
  604. !!0 - don''t know about parties
  605. !!1 - knows about the parties
  606. !!2 - agreed to go to the party
  607. !!3 - Missed the party
  608. !!Suspension ends
  609. if suspended['day'] = daystart: suspended['on'] = 0
  610. if mid($start_type, 1, 2) = 'sg':
  611. !!Party refresh if you didn''t see sis
  612. if week = 1 and sisboyparty ! 2:
  613. if sisterQW['party'] = -1: sisterQW['party'] = 0
  614. if sisboypartyQW >= 2 and sisboyparty > 0:
  615. sisboyparty_day = daystart + rand(3,5)
  616. end
  617. end
  618. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  619. if SchoolAtestat = 0 and SchoolBlock = 0:
  620. if month = 12 and day > 25:
  621. if day < 31:
  622. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  623. else
  624. $holyday = '<b>Winter Break starts tomorrow.</b>'
  625. end
  626. elseif month = 1 and day <= 15:
  627. kanikuli = 2
  628. if day < 13:
  629. $holyday = '<b>Winter Break.</b>'
  630. elseif day < 15:
  631. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  632. else
  633. $holyday = '<b>Last day of Winter Break.</b>'
  634. end
  635. elseif month = 3 and day > 13:
  636. if day < 19:
  637. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  638. elseif day = 19:
  639. $holyday = '<b>Spring Break starts tomorrow.</b>'
  640. elseif day >= 20 and day <= 26:
  641. kanikuli = 3
  642. if day < 24:
  643. $holyday = '<b>Spring Break.</b>'
  644. elseif day < 26:
  645. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  646. else
  647. $holyday = '<b>Last day of Spring Break.</b>'
  648. end
  649. end
  650. elseif month = 5:
  651. if year = 2017:
  652. if day = 26:
  653. kanikuli = 6
  654. SchoolAtestat = -1
  655. lernHome = 0
  656. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  657. elseif day = 25:
  658. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  659. elseif day >= 19:
  660. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  661. end
  662. elseif day >= 25:
  663. if day = 31:
  664. $holyday = '<b>Summer Break starts tomorrow.</b>'
  665. else
  666. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  667. end
  668. end
  669. elseif month = 6 or month = 7 or month = 8:
  670. kanikuli = 4
  671. if month = 8 and day >= 25:
  672. if day = 31:
  673. $holyday = '<b>Last day of Summer Break.</b>'
  674. else
  675. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  676. end
  677. else
  678. $holyday = '<b>Summer Break.</b>'
  679. end
  680. !! 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.'
  681. killvar 'first_time_outside_in_cold_weather'
  682. killvar 'first_time_doing_basketball'
  683. killvar 'first_time_spring_football_match'
  684. !! end inc
  685. elseif month = 10 and day >= 29:
  686. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  687. elseif month = 11:
  688. if day < 3:
  689. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  690. elseif day = 3:
  691. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  692. elseif day < 6:
  693. kanikuli = 1
  694. $holyday = '<b>Autumn Break.</b>'
  695. elseif day < 11:
  696. kanikuli = 1
  697. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  698. elseif day = 11:
  699. kanikuli = 1
  700. $holyday = '<b>Last day of Autumn Break.</b>'
  701. end
  702. end
  703. if kanikuli = 0 and week < 6:
  704. if week = 1:
  705. !!The start and end values for i have to be changed if more female schoolgirl npcs are added to the game
  706. i = 11
  707. :hotcat_calc_jump
  708. i += 1
  709. if hotcat_rating['A<<i>>'] = 0 and i < 145: jump 'hotcat_calc_jump'
  710. switch_rand = rand(1,100)
  711. if hotcat_movement['A<<i>>'] = 0 and switch_rand < 21:
  712. hotcat_rating['A<<i>>'] -= 1
  713. hotcat_movement['A<<i>>'] -= 1
  714. elseif hotcat_movement['A<<i>>'] = 0 and switch_rand > 80:
  715. hotcat_rating['A<<i>>'] += 1
  716. hotcat_movement['A<<i>>'] += 1
  717. elseif hotcat_movement['A<<i>>'] = 1 and switch_rand > 40:
  718. hotcat_rating['A<<i>>'] -= 1
  719. hotcat_movement['A<<i>>'] -= 1
  720. elseif hotcat_movement['A<<i>>'] = -1 and switch_rand > 40:
  721. hotcat_rating['A<<i>>'] += 1
  722. hotcat_movement['A<<i>>'] += 1
  723. end
  724. if i < 145: jump 'hotcat_calc_jump'
  725. killvar 'i'
  726. killvar 'switch_rand'
  727. end
  728. !! Resetting the late flag
  729. if late = 1: late = 0
  730. end
  731. !!Social grup changes
  732. !!Change from relatonship with other students.
  733. gs 'gschool_socialchg', 'group_student_rel_change'
  734. !!Decay for the school groups
  735. if grupvalue[1] > 0:
  736. grupvalue[1] -= rand(0,1)
  737. else
  738. grupvalue[1] = 0
  739. end
  740. if grupvalue[2] > 0:
  741. grupvalue[2] -= rand(0,1)
  742. else
  743. grupvalue[2] = 0
  744. end
  745. if grupvalue[3] > 0:
  746. grupvalue[3] -= rand(0,1)
  747. else
  748. grupvalue[3] = 0
  749. end
  750. if grupvalue[4] > 0:
  751. grupvalue[4] -= rand(0,1)
  752. else
  753. grupvalue[4] = 0
  754. end
  755. !!Maximum increase for grupvalues is 10 and max decay is 30
  756. if oldgrupvalue_set = 0:
  757. oldgrupvalue_set = 1
  758. old_grupvalue[1] = grupvalue[1]
  759. old_grupvalue[2] = grupvalue[2]
  760. old_grupvalue[3] = grupvalue[3]
  761. old_grupvalue[4] = grupvalue[4]
  762. else
  763. if old_grupvalue[1] + 10 < grupvalue[1]: grupvalue[1] = old_grupvalue[1] + 10
  764. if old_grupvalue[2] + 10 < grupvalue[2]: grupvalue[2] = old_grupvalue[2] + 10
  765. if old_grupvalue[3] + 10 < grupvalue[3]: grupvalue[3] = old_grupvalue[3] + 10
  766. if old_grupvalue[4] + 10 < grupvalue[4]: grupvalue[4] = old_grupvalue[4] + 10
  767. if old_grupvalue[1] - 30 > grupvalue[1]: grupvalue[1] = old_grupvalue[1] - 30
  768. if old_grupvalue[2] - 30 > grupvalue[2]: grupvalue[2] = old_grupvalue[2] - 30
  769. if old_grupvalue[3] - 30 > grupvalue[3]: grupvalue[3] = old_grupvalue[3] - 30
  770. if old_grupvalue[4] - 30 > grupvalue[4]: grupvalue[4] = old_grupvalue[4] - 30
  771. end
  772. !!Limit to max school group values
  773. if grupvalue[1] > 1000: grupvalue[1] = 1000
  774. if grupvalue[2] > 1000: grupvalue[2] = 1000
  775. if grupvalue[3] > 1000: grupvalue[3] = 1000
  776. if grupvalue[4] > 1000: grupvalue[4] = 1000
  777. old_grupvalue[1] = grupvalue[1]
  778. old_grupvalue[2] = grupvalue[2]
  779. old_grupvalue[3] = grupvalue[3]
  780. old_grupvalue[4] = grupvalue[4]
  781. elseif SchoolAtestat = -1:
  782. if func('homes_properties', 'has_access', 'parents_home') = 0:
  783. $holyday = '<b>You missed your graduation. You could pick up your diploma at the school.</b>'
  784. else
  785. $holyday = '<b>You missed your graduation. Maybe your mother picked up your diploma.</b>'
  786. end
  787. end
  788. !!Brother''s dick growth as he gets older
  789. !Commented out till some future time
  790. !if kolka_dick_day + 30 < daystart and npc_dick['A34'] < 26:
  791. ! kolka_dick_day = daystart
  792. ! npc_dick['A34'] += 1
  793. !end
  794. !if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  795. ! $npc_thdick['A34'] = 'well proportioned'
  796. !elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  797. ! $npc_thdick['A34'] = 'thick'
  798. !end
  799. !! Calcualting the increase/decreas of the grade each week.
  800. gs 'gschool', 'weekly grade update'
  801. end
  802. killvar 'natholi'
  803. if month = 1 and day >= 1 and day <= 8:
  804. $natholi = 'New Year holidays'
  805. natholi = 1
  806. if day = 1:$natholi += ', New Year'
  807. if day = 7:$natholi += ', Christmas'
  808. end
  809. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  810. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  811. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  812. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  813. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  814. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  815. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  816. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  817. if natholi = 1:
  818. if $holyday ! '': $holyday += '<br>'
  819. $holyday += $natholi
  820. end
  821. !! Anushka''s band is on tour from Thursday 01-06 until Saturday 19-08. Blame Nutluck
  822. if year = 2017 and ( month = 6 or month = 7 or (month = 8 and day < 19) ):
  823. gopnikbandQW['on_tour'] = 1
  824. else
  825. gopnikbandQW['on_tour'] = 0
  826. end
  827. !!------------------------------------------------------------------------------------------------------------------------
  828. !!Setting the weeks in the university semester and making sure that the gades are calculated at the right times
  829. gs 'uni_lessons', 'cikl'
  830. !!------------------------------------------------------------------------------------------------------------------------
  831. !!resetting moisturizer so it can be used in the morning regardless
  832. moisturiser_time = totminut
  833. !!same with chaffing cream
  834. mosal_time = totminut
  835. !!resetting last_pee to counteract time cheat
  836. !!also, the first thing you do in the morning is visiting your porcelain friend, no?
  837. killvar 'last_pee'
  838. !!Drugs reduction
  839. gs 'drugs', 'cocaine', 'cikl'
  840. gs 'drugs', 'mentats', 'cikl'
  841. gs 'drugs', 'aphrodisiac', 'cikl'
  842. gs 'gaddvor','cikl'
  843. loc_count = ARRSIZE('$CloLosLoc')
  844. i = loc_count - 1
  845. :loopCloLoc
  846. $CloLoc = $CloLosLoc[i]
  847. CloLostOn = CloLosDay[$CloLoc]
  848. if CloLostOn + RAND(7,14) < daystart :
  849. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  850. end
  851. i -=1
  852. if i > -1 :jump 'loopCloLoc'
  853. if vidageday > 1080: vidageday = 1080
  854. if blizoruk < 10: blizoruk -= 1
  855. if blizoruk < 100: blizoruk -= rand(0,1)
  856. if blizoruk < 0: blizoruk = 0
  857. !!------------------------------------------------------------------------------------------------------------------------
  858. !!C and B array cleaning
  859. if InSleep = 1: gs 'npc','cleanarrays'
  860. !!------------------------------------------------------------------------------------------------------------
  861. !!-------------Therapist Route schedule variables----------------------------------------------------------------------
  862. !! 23 = kitchen
  863. !! 24 = Living room
  864. !! 25 = bathroom
  865. !! 26 = Master''s room
  866. if therapistWantsSlave > 0:
  867. annaclean1 = rand(23,26)
  868. end
  869. killvar 'therapistFuckedPussyScene'
  870. !!------------------------------------------------------------------------------------------------------------
  871. !!-------------Family Dog----------------------------------------------------------------------
  872. if $status['dog'] ! 'blocked' and rex['owned'] = 1:
  873. rex['timer_day'] = daystart
  874. !!Daily decay
  875. rex['relationship'] -= 1
  876. !!Chores
  877. if cheat['dog_rel'] = 0 and rex['gadukino_day'] ! daystart:
  878. npc_rel['A29'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  879. rex['relationship'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  880. end
  881. rex['count_run'] = 0
  882. rex['count_walk'] = rex['count_walk_base']
  883. rex['timer_walk'] = 0
  884. rex['count_feed'] = rex['count_feed_base']
  885. rex['timer_feed'] = 0
  886. if week = 1:
  887. if cheat['dog_rel'] = 0:
  888. npc_rel['A29'] -= rex['count_bath']
  889. rex['relationship'] -= (rex['count_bath'] * 5)
  890. end
  891. rex['count_bath'] = rex['count_bath_base']
  892. end
  893. end
  894. !!------------------------------------------------------------------------------------------------------------
  895. !!---------- School related schedule -------------------------------------------------------------------------
  896. starlets_on = iif( ( (week = 5 and odd_week = 0) or (week = 1 or week = 3 or week >= 6) ) and natholi = 0,1,0)
  897. 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)
  898. if starlets['late_message'] = 1: starlets['late_message'] = 0
  899. !!------------------------------------------------------------------------------------------------------------
  900. !!---------- Starlet Content ---------------------------------------------------------------------------------
  901. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0:
  902. if starlets_practice = daystart - 1:
  903. starlets_missed = 1
  904. starlets_practice = 0
  905. end
  906. if starlets_on = 1: starlets_practice = daystart
  907. end
  908. if month = 9 and day = 16 and AlbinaQW['ParkRally'] = 0: AlbinaQW['ParkRally'] = 1
  909. if month = 10 and day = 16 and AlbinaQW['ParkRally'] = 1: AlbinaQW['ParkRally'] = 2
  910. 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
  911. !!------------------------------------------------------------------------------------------------------------
  912. !!-------------Music career related variables and calculations------------------------------------------------
  913. !! Setting Del Parco initial variables
  914. if daystart < 2:
  915. ml_delparcoQW['Stage'] = 0
  916. ml_delparcoQW['Zariyah Trust'] = 50
  917. end
  918. !! How many hours a day can Sveta perform. It maxes out at 3.
  919. !! Using the actual skill level, not the one modified by Attributes because that is more realistic for this.
  920. ml_performance['max_perform_minutes'] = pcs_instrmusic + pcs_vokal
  921. ml_performance['performed_minutes'] = 0
  922. !! Checking for missed guitar lesson
  923. if ml_guitarlesson['nextlesson'] < daystart and ml_guitarlesson['lessonday'] ! 8:
  924. ml_guitarlesson['lessonday'] = 8
  925. end
  926. !! Calculating the fame increase from the uploaded songs and removing ones that do not effect fame anymore to keep the
  927. !! data at a sane level
  928. if ml_onlinesongcount > 0:
  929. i = 0
  930. j = -1
  931. :looponlinesongs
  932. !! this so every song counts only every 7 days and only for a limited number of weeks
  933. if ml_onlinesong_freshness[i] > 0:
  934. j += 1
  935. ml_tempsong_freshness[j] = ml_onlinesong_freshness[i]
  936. ml_tempsong_lastcalcday[j] = ml_onlinesong_lastcalcday[i]
  937. ml_tempsong_hotcat[j] = ml_onlinesong_hotcat[i]
  938. ml_tempsong_skilllevel[j] = ml_onlinesong_skilllevel[i]
  939. ml_tempsong_uploaded[j] = ml_onlinesong_uploaded[i]
  940. if ml_tempsong_lastcalcday[j] <= (daystart - 7) and ml_tempsong_uploaded = 1:
  941. gs 'fame', 'city', 'music', rand(0, ml_tempsong_freshness[j]/100)
  942. ml_tempsong_freshness[j] -= 10
  943. ml_tempsong_lastcalcday[j] = daystart
  944. end
  945. end
  946. i += 1
  947. if i < ml_onlinesongcount: jump 'looponlinesongs'
  948. killvar 'ml_onlinesong_freshness'
  949. killvar 'ml_onlinesong_lastcalcday'
  950. killvar 'ml_onlinesong_hotcat'
  951. killvar 'ml_onlinesong_skilllevel'
  952. killvar 'ml_onlinesong_uploaded'
  953. i = 0
  954. if j >= 0:
  955. :looprebuildsongs
  956. ml_onlinesong_freshness[i] = ml_tempsong_freshness[i]
  957. ml_onlinesong_hotcat[i] = ml_tempsong_hotcat[i]
  958. ml_onlinesong_lastcalcday[i] = ml_tempsong_lastcalcday[i]
  959. ml_onlinesong_skilllevel[i] = ml_tempsong_skilllevel[i]
  960. ml_onlinesong_uploaded[i] = ml_tempsong_uploaded[i]
  961. i += 1
  962. if i <= j: jump 'looprebuildsongs'
  963. end
  964. killvar 'ml_tempsong_freshness'
  965. killvar 'ml_tempsong_lastcalcday'
  966. killvar 'ml_tempsong_hotcat'
  967. killvar 'ml_tempsong_skilllevel'
  968. killvar 'ml_tempsong_uploaded'
  969. end
  970. !! Repertoire quality decay if no practice is done
  971. if ml_performance['set_lastpracticeday'] ! (daystart-1): repertoire_quality -= 2
  972. !!------------- Prostitution - WLife integration related stuff ------------------------------------------------
  973. !! Check if people will start to seek Sveta randomly for services, based on her reputation
  974. gs 'prostitution_functions', 'check_for_wlife'
  975. gs 'prostitution_functions', 'update_prostitution_locations'
  976. prostitute['earnings_day'] = 0
  977. prostitute['customer_day'] = 0
  978. !!------------- Property and Home Related daily, nonfinancial checks ------------------------------------------
  979. !! Moves time for the rented properties
  980. gs 'homes_properties', 'progress_property_rent_time'
  981. !!------------- Check for Daily Events for event generator, sets evt_chk variable ------------------------------------------
  982. gs 'emp_functions', 'evt_day_chk'
  983. !!----------------------------------------------------------------------
  984. !!---------------------------- WEEKLY RESET ----------------------------
  985. !!----------------------------------------------------------------------
  986. if week = 1:
  987. !! Reset used car dealership offers
  988. killvar 'used_car'
  989. !! Reset therapist schedule
  990. killvar 'therapist_weekly_block'
  991. end
  992. !!------------- Advance book loan debt ------------------------------------------
  993. if $lib_book_loaned ! '': lib_debt += 50
  994. !!------------- Preliminary npc_uni_eduTipe ------------------------------------------
  995. !!
  996. !!npc_uni_eduType = '', 'professor', 'teaching_studies', 'business_studies', 'science_studies', 'fashion_studies'
  997. !! 'nursing_studies', 'psychology_studies', 'programming_studies', 'other_studies'
  998. !!
  999. !!Will eventually need to be moved to the npcstatic and npcstaticdefault files for eternal uni npcs
  1000. !!To specific event checks for pav_uni npcs
  1001. !!And to the various starts.
  1002. !!This should be migrated to npcstaticx and eventually schedule
  1003. if set_npc_uni_eduType = 0:
  1004. set_npc_uni_eduType = 1
  1005. npc_uni_active['A77'] = 1
  1006. npc_uni_active['A82'] = 1
  1007. npc_uni_active['A83'] = 1
  1008. npc_uni_active['A84'] = 1
  1009. npc_uni_active['A209'] = 1
  1010. npc_uni_active['A220'] = 1
  1011. npc_uni_active['A242'] = 1
  1012. npc_uni_active['A243'] = 1
  1013. npc_uni_active['A244'] = 1
  1014. npc_uni_active['A245'] = 1
  1015. npc_uni_active['A246'] = 1
  1016. npc_uni_active['A247'] = 1
  1017. end
  1018. !! This should eventually be migrated to schedule
  1019. if set_pav_npc_uni_active = 0 and yearstart = 2 and month >= 8 and day >= 28:
  1020. set_pav_npc_uni_active = 1
  1021. npc_uni_active['A1'] = 1
  1022. npc_uni_active['A2'] = 1
  1023. npc_uni_active['A4'] = 1
  1024. npc_uni_active['A7'] = 1
  1025. npc_uni_active['A12'] = 1
  1026. npc_uni_active['A13'] = 1
  1027. npc_uni_active['A14'] = 1
  1028. npc_uni_active['A15'] = 1
  1029. npc_uni_active['A16'] = 1
  1030. npc_uni_active['A17'] = 1
  1031. npc_uni_active['A18'] = 1
  1032. npc_uni_active['A19'] = 1
  1033. npc_uni_active['A22'] = 1
  1034. npc_uni_active['A23'] = 1
  1035. npc_uni_active['A25'] = 1
  1036. npc_uni_active['A139'] = 1
  1037. npc_uni_active['A140'] = 1
  1038. npc_uni_active['A142'] = 1
  1039. npc_uni_active['A144'] = 1
  1040. npc_uni_active['A146'] = 1
  1041. npc_uni_active['A147'] = 1
  1042. npc_uni_active['A149'] = 1
  1043. npc_uni_active['A152'] = 1
  1044. npc_uni_active['A153'] = 1
  1045. npc_uni_active['A155'] = 1
  1046. npc_uni_active['A159'] = 1
  1047. npc_uni_active['A165'] = 1
  1048. end
  1049. !!------------- Advance will counter ------------------------------------------
  1050. if will_counter >= 20: will_counter -= 20 & willpowermax += 1
  1051. !!-----------------webcam follower loss due to inactivity ------------------------------------------
  1052. if camwhore = 1:
  1053. if cam_daystart < daystart:
  1054. engagementFactor = 1 + (CamBonus / 100)
  1055. popularityFactor = webpopular / 1000
  1056. if regviewReset < 3:
  1057. if regview >= 500:
  1058. FollowersLost = rand(regview / (100 * engagementFactor), regview / (50 * engagementFactor)) + popularityFactor
  1059. else
  1060. FollowersLost = rand(1, 3) + popularityFactor
  1061. end
  1062. cam_daystart = daystart + max(1, 3 - (CamBonus / 50))
  1063. else
  1064. if regview >= 300:
  1065. FollowersLost = rand(regview / (80 * engagementFactor), regview / (40 * engagementFactor)) + popularityFactor
  1066. else
  1067. FollowersLost = rand(2, 6) + popularityFactor
  1068. end
  1069. cam_daystart = daystart + max(1, 2 - (CamBonus / 50))
  1070. end
  1071. regviewReset += 1
  1072. FollowersLost = func('shortgs', 'clamp', FollowersLost, 0, regview)
  1073. totFollowersLost += FollowersLost
  1074. regview -= FollowersLost
  1075. killvar 'FollowersLost'
  1076. end
  1077. end
  1078. !!---------------Keeping track of missing court appearances-----------------------------
  1079. if arrsize('policeQW_courthearing_dates') > 0 and daystart > policeQW_courthearing_dates[0]:
  1080. policeQW['missed_court_dates'] += 1
  1081. policeQW['tot_court_dates_missed'] += 1
  1082. !! Might need code to throw a message with 'You''ve missed your court hearing or something'
  1083. policeQW_courtletter_dates[] = daystart + rand(3, 6)
  1084. $policeQW_courtletter_subjects[] = 'missed_court_<<$policeQW_courthearing_subjects[0]>>'
  1085. killvar 'policeQW_courthearing_dates', 0
  1086. killvar 'policeQW_courthearing_subjects', 0
  1087. end
  1088. if policeQW['fine_deadline'] > 0:
  1089. if daystart > policeQW['fine_deadline'] - 8:
  1090. policeQW_courtletter_dates[] = daystart
  1091. $policeQW_courtletter_subjects[] = 'fine'
  1092. elseif daystart > policeQW['fine_deadline']:
  1093. policeQW['missed_fine_deadlines'] += 1
  1094. policeQW['tot_fines_deadlines_missed'] += 1
  1095. !! Might need code to throw a message with 'you''ve failed to pay your fine on time.'
  1096. policeQW_courtletter_dates[] = daystart + rand(3, 6)
  1097. $policeQW_courtletter_subjects[] = 'missed_fine'
  1098. end
  1099. end
  1100. if arrsize('policeQW_courtletter_dates') > 1:
  1101. gs 'shortgs', 'coupled_array_sort', 'policeQW_courtletter_dates', '$policeQW_courtletter_subjects'
  1102. end
  1103. if arrsize('policeQW_courthearing_dates') > 1:
  1104. gs 'shortgs', 'coupled_array_sort', 'policeQW_courthearing_dates', '$policeQW_courthearing_subjects'
  1105. end
  1106. --- cikl ---------------------------------