cikl.qsrc 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837
  1. # cikl
  2. !!----------------------------------------------------------------------------
  3. !! Time calculations
  4. day += 1
  5. week += 1
  6. hour -= 24
  7. if day > monthsEnd[month]:
  8. day -= monthsEnd[month]
  9. month += 1
  10. if month > 12: month = 1 & year += 1
  11. !!MJ: Dont think that one is needed. But it was in the original loop.
  12. if month < 1: month = 1
  13. $month = $monthName[month]
  14. !! new years party calculation
  15. temp = func('shortgs','dow',year,12,31)
  16. if temp < 6:
  17. nyp_day = 31
  18. elseif temp = 6:
  19. nyp_day = 30
  20. else
  21. nyp_day = 29
  22. end
  23. end
  24. !!MJ: Dont think that one is needed. But it was here already.
  25. if day <= 0:day = 1
  26. ciklNewWeek = 0
  27. if week > 7:
  28. ciklNewWeek = 1
  29. :loopweek
  30. week -= 7
  31. husbandrink = 0
  32. if military = 1:military = 0
  33. if week > 7:jump 'loopweek'
  34. end
  35. gs 'daystart'
  36. !!----------------------------------------------------------------------------
  37. !!Fame call to update all the fame variables
  38. gs 'fame'
  39. !!Cycle stats for Contacts
  40. gs 'telefon', 'DailyStatRefresh', ciklNewWeek
  41. !!moving the porn schedule ahead a day, flaffing for missed shootings, if it even matters
  42. if (film > 0 or pornstack = 1) and pfilmNO = 0 and pfilmSTOP = 0:
  43. if pfilmday[0] > 0: gs 'pornschedule', 'pornmiss'
  44. gs 'pornschedule', 'schedule'
  45. end
  46. !!modelling job check
  47. if model_week ! (daystart - week) / 7:model_job_week = 0
  48. !!acting strings to set available jobs
  49. if casting = 1:
  50. acting_string1 = rand(10000000000,199999999999)
  51. acting_string2 = rand(10000000000,199999999999)
  52. end
  53. dynamic $hypnoDaychange
  54. !!phone reset for bf
  55. ringA = 0
  56. ringB = 0
  57. ringC = 0
  58. !!Appearance Age
  59. vidageday -= 1
  60. if vidageday <= 0:
  61. vidageday = 360
  62. vidage += 1
  63. end
  64. !!Birthday
  65. age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
  66. if ((month * 100) + day) <= pcs_dob mod 10000: age -= 1
  67. if workDolgDay > 0: workDolgDay -= 1
  68. if QWdogreiqTimer > 0: QWdogreiqTimer -= 1
  69. if husband > 0: husbanday += 1
  70. if husband > 10 and husbanday > 0: husband -= 15
  71. if fingal > 0: fingal -= 1
  72. if husbandMark = 1 and husband <= 10:
  73. husbizvradd = 0
  74. husbharmin = 0
  75. husbandMark = 0
  76. husband = 0
  77. divorced += 1
  78. if KFOnLineReaga > 0:KFOnLineReaga -= 1
  79. '<b><font color="red">Your husband has filed for a divorce.</font></b>'
  80. end
  81. if katjaPreg = 0 and month >= 2:
  82. if school_year = 2001 and year > 2016:
  83. katjaPreg = 1
  84. elseif school_year = 2000 and year > 2017:
  85. katjaPreg = 1
  86. end
  87. end
  88. !! after having surgery you will be in recuperation for a few days
  89. if surgeryday ! '':
  90. if daystart - 7 <= surgeryday:
  91. dailyhealthimprov = (daystart - surgeryday) * 50
  92. pcs_health = dailyhealthimprov
  93. recuperation = 1
  94. else
  95. killvar 'recuperation'
  96. killvar 'dailyhealthimprov'
  97. end
  98. end
  99. !!Street events daily reset
  100. streetevent_hour = -2
  101. !!Clothing stock and price randomizers
  102. Clothingstock = rand (0,23)
  103. i = 1
  104. :loopprice
  105. Clothingstock[i] = rand (0,500)
  106. i += 1
  107. if i <= 147:jump 'loopprice'
  108. if coatH[defaultcoat] <= 0: defaultcoat = 0
  109. !! Abortion and pregnancy recovery resets if finished
  110. if abortionbirthdate ! 0 and daystart - abortionbirthdate > 24: abortionbirthdate = 0
  111. if pregbirthdate ! 0 and daystart - pregbirthdate > 73: pregbirthdate = 0
  112. !!------------------------------------------------------------------------------------------------------------
  113. !! Bimbo
  114. !!------------------------------------------------------------------------------------------------------------
  115. !!Bonus from clothing and shoes
  116. if succubusflag = 0 and cheatBimbo = 0:
  117. if bimbocl = 1:
  118. snapshotY += 2
  119. end
  120. if bimbosh = 1:
  121. snapshotY += 1
  122. end
  123. else
  124. bimbocl = 0
  125. end
  126. if cheatBimbo = 0: bimbo += snapshotY
  127. !!Once bimbolevel is set to 1, must use the withdrawal in stat to return to 0
  128. if bimbo > 0 or bimbolevel > 0:
  129. if bimbo < 10:
  130. bimbo -= 1
  131. elseif bimbo < 20:
  132. bimbolevel = 1
  133. elseif bimbo < 30:
  134. bimbolevel = 2
  135. else
  136. bimbolevel = 3
  137. end
  138. end
  139. if bimbo >= 40: bimbo = 40
  140. !!Bimbo levels. They use custom variables so they won''t permanently change character stats
  141. if bimbolevel = 0: supnatvnesh = 0 & bimbostupidity = 0
  142. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 6)
  143. if bimbolevel = 2: supnatvnesh = 4 & bimbostupidity = (pcs_intel / 4)
  144. if bimbolevel = 3: supnatvnesh = 8 & bimbostupidity = (pcs_intel / 3)
  145. !!A Succubus cannot be a Bimbo
  146. if succubusflag = 1:
  147. if bimbolevel > 0 and bimbo > 0: bimbowithdrawal = 40
  148. elseif bimbolevel >= 1:
  149. !!Checks how often sex has occured in the last 24 hours and for drops in bimbo score, for calculating withdrawal
  150. if 4 > snapshotY + (stat['vaginal'] + stat['bj'] + stat['anal']) - snapshotX:
  151. bimbowithdrawal += 1
  152. else
  153. bimbowithdrawal = 0
  154. end
  155. end
  156. if bimbo < 0: bimbo = 0
  157. snapshotX = (stat['vaginal'] + stat['bj'] + stat['anal'])
  158. snapshotY = 0
  159. !!------------------------------------------------------------------------------------------------------------
  160. !! Exhibitionism
  161. !!------------------------------------------------------------------------------------------------------------
  162. if pcs_exhib > 0 or exhibitionist_lvl > 0:
  163. if pcs_exhib < 10:
  164. pcs_exhib -= 1
  165. elseif pcs_exhib < 50:
  166. exhibitionist_lvl = 1
  167. elseif pcs_exhib < 100 or exhibitionQW < 3:
  168. exhibitionist_lvl = 2
  169. elseif exhibitionQW > 2:
  170. exhibitionist_lvl = 3
  171. end
  172. end
  173. !!Inhibition increases from wearing revealing clothing
  174. if exhibition_outdoors > 0:
  175. if pcs_inhib > 90:
  176. exhibition_outdoors = exhibition_outdoors * 3
  177. elseif pcs_inhib > 75:
  178. exhibition_outdoors = exhibition_outdoors * 5 / 2
  179. elseif pcs_inhib > 60:
  180. exhibition_outdoors = exhibition_outdoors * 2
  181. elseif pcs_inhib > 30:
  182. exhibition_outdoors = exhibition_outdoors * 3 / 2
  183. end
  184. if exhibition_outdoors <= 5:
  185. inhib_exp += rand(3,6)
  186. elseif exhibition_outdoors <= 10:
  187. inhib_exp += rand(5,9)
  188. elseif exhibition_outdoors <= 15:
  189. inhib_exp += rand(7,12)
  190. elseif exhibition_outdoors <= 20:
  191. inhib_exp += rand(9,15)
  192. elseif exhibition_outdoors <= 25:
  193. inhib_exp += rand(12,20)
  194. elseif exhibition_outdoors <= 30:
  195. inhib_exp += rand(16,25)
  196. elseif exhibition_outdoors <= 35:
  197. inhib_exp += rand(20,30)
  198. elseif exhibition_outdoors <= 40:
  199. inhib_exp += rand(25,40)
  200. elseif exhibition_outdoors <= 50:
  201. inhib_exp += rand(35,50)
  202. elseif exhibition_outdoors <= 65:
  203. inhib_exp += rand(50,75)
  204. else
  205. inhib_exp += rand(70,100)
  206. end
  207. end
  208. exhibition_outdoors = 0
  209. !!------------------------------------------------------------------------------------------------------------
  210. !! Succubus
  211. !!------------------------------------------------------------------------------------------------------------
  212. !!Succubus Level & hunger calcs
  213. if succubusflag = 1:
  214. cheatHealth = 1
  215. dynamic $cheatmenu['std_cure']
  216. !! Hunger handling
  217. if sucxpsnapshot >= succubxp: succhungry += 1
  218. sucxpsnapshot = succubxp
  219. if succubxp < 0: succubxp = 0
  220. !! Level handling
  221. if succubxp < 60:
  222. succublvl = 1
  223. $sucself1 = 'that feeling'
  224. sucstorecap = 0
  225. if bimbolevel <= 0: supnatvnesh = 1
  226. elseif succubxp < 150:
  227. succublvl = 2
  228. $sucself1 = 'the power'
  229. sucstorecap = 0
  230. if bimbolevel <= 0: supnatvnesh = 3
  231. elseif succubxp < 270:
  232. succublvl = 3
  233. $sucself1 = 'your other self'
  234. sucstorecap = 100
  235. if bimbolevel <= 0: supnatvnesh = 6
  236. else
  237. succublvl = 4
  238. $sucself1 = 'your true self'
  239. sucstorecap = 200
  240. if bimbolevel <= 0: supnatvnesh = 10
  241. end
  242. if sucskill >= 2 and succublvl >= 2: sucstorecap += 100
  243. if sucskill >= 3 and succublvl >= 2: sucstorecap += (sucstorecap * 2) / 10
  244. if stren_muta < (succublvl - 1): stren_muta = (succublvl - 1)
  245. if agil_muta < (succublvl - 1): agil_muta = (succublvl - 1)
  246. if vital_muta < (succublvl - 1): vital_muta = (succublvl - 1)
  247. if intel_muta < (succublvl - 1): intel_muta = (succublvl - 1)
  248. if react_muta < (succublvl - 1): react_muta = (succublvl - 1)
  249. if sprt_muta < (succublvl - 1): sprt_muta = (succublvl - 1)
  250. if chrsm_muta < (succublvl - 1): chrsm_muta = (succublvl - 1)
  251. if prcptn_muta < (succublvl - 1): prcptn_muta = (succublvl - 1)
  252. if (sucexcess >= 100 and (sucskill < 2 or succhungry > -2)) or (sucexcess >= 100 + sucstorecap and sucskill >= 2):
  253. if pcs_stren < 250: stren_exp += 20 & sucexcess -= 10
  254. if pcs_agil < 250: agil_exp += 20 & sucexcess -= 10
  255. if pcs_vital < 250: vital_exp += 20 & sucexcess -= 10
  256. if pcs_intel < 250: intel_exp += 20 & sucexcess -= 10
  257. if pcs_react < 250: react_exp += 20 & sucexcess -= 10
  258. if pcs_sprt < 250: sprt_exp += 20 & sucexcess -= 10
  259. if pcs_chrsm < 250: chrsm_exp += 20 & sucexcess -= 10
  260. if pcs_prcptn < 250: prcptn_exp += 20 & sucexcess -= 10
  261. if succhungry > (0 - 2 - succublvl): succhungry -= 1 & sucexcess -= 10
  262. if pcs_skin < 100: pcs_skin += 1 & sucexcess -= 2
  263. !! This is to drive the Succubus vidage into the max appearance range
  264. if vidageday < 720 and vidage >= 28: vidageday += 4 & sucexcess -= 4
  265. if vidageday > 0 and vidage <= 20: vidageday -= 4 & sucexcess -= 4
  266. if vidageday >= 720 and vidage > 28:
  267. vidageday -= 360
  268. vidage -= 1
  269. end
  270. if sucexcess > sucstorecap: sucexcess = sucstorecap
  271. elseif sucexcess < 0 and succhungry < 0:
  272. succhungry += 1
  273. if (0 - sucexcess) < (10 * succublvl):
  274. sucexcess = 0
  275. else
  276. sucexcess += (10 * succublvl)
  277. end
  278. end
  279. if sucexcess < 0: sucpowzeroed += 1
  280. if sucexcess >= 0 and sucpowzeroed > 0: sucpowzeroed -= 1
  281. !! This is so a Succubus always moves toward a default vaginal and anal size when she has the accomadation ability
  282. if sucskill >= 4:
  283. if pcs_vag - 2 >= 13:
  284. pcs_vag -= 2
  285. elseif pcs_vag + 2 <= 13:
  286. pcs_vag += 2
  287. end
  288. if pcs_ass - 2 >= 8:
  289. pcs_ass -= 2
  290. elseif pcs_ass + 2 <= 8:
  291. pcs_ass += 2
  292. end
  293. end
  294. end
  295. !!------------------------------------------------------------------------------------------------------------
  296. if defcurly = 0 and curly > 0:curly -= 1
  297. if defcurly = 1:
  298. if straight > 0: straight -= 1
  299. if straight = 0: curly = 2147483647
  300. end
  301. ! WD: Added daily reduction of braids for Maruda Hair Mod
  302. if hbraids > 0: hbraids -= 1
  303. gs 'sweat', 'add', 2
  304. if pcs_tan > 0: pcs_tan -= 1
  305. if prezikmsg = 2: prezikmsg = 3
  306. !!------------------------------------------------------------------------------------------------------------
  307. !! Birth control
  308. !!------------------------------------------------------------------------------------------------------------
  309. !! Birth Control Management variables
  310. !!
  311. !! tabletkimm : The modifier for the current mood of the MC.
  312. !! tabletkiap : Autopill factor affecting the liklihood you took your pill as you should have
  313. !! tabletkipt : Pill Dicipline Take increase
  314. !! tabletkipi : Pill Dicipline Dont take increase
  315. !! tabletkicpd : Current MC Pill Dicipline
  316. !! tabletkichday : Current day that the Birth Control is being evaluated for
  317. !! tabletkicheck : If the birth control from shot (2) or pill (1)
  318. !! tabletki : How many packages of Birth Control Pills there are
  319. !! tabletkiold : Total number packages of expired pills
  320. !! tabletkifake : Total number packages of fake/counterfeit pills
  321. !! tabletkirej : Total number packages of factory rejected pills
  322. !! tabletkifert : Total number packages of subsituted fertility pills
  323. !! tabletkisug : Total number packages of sugar pills
  324. !! pillsleft : Total number packages of pills in current package
  325. !! tabletkishot : The flag for being on the Birth Control shot.
  326. !! pillcon : The number for the current birth control chemical level.
  327. !! pilldays : The number of consecutive days (you believe) you have taken your pill
  328. if Luth > (LutH_Max-75) and placebopart <= 0: placebopart = 8
  329. placebopart -= 1
  330. if tabletkishot <= 0: pillcon -= 1000 & pillcon2 -= 1000
  331. if pillcon < 0: pillcon = 0
  332. if pillcon2 < 0: pillcon2 = 0
  333. if tabletkicheck = 2:
  334. if tabletkishot ! 0:
  335. !!cycle = 1
  336. mesec = 0
  337. if rand(0,1000) = 1000:
  338. EggRH = rand(20,80)
  339. else
  340. EggRH = 0
  341. end
  342. FocH = EggRH
  343. end
  344. if tabletkishot <= 0:
  345. pillcon -= 29000
  346. pillcon2 -= 29000
  347. if tabletkishot < 0: tabletkishot = 0
  348. end
  349. if shotdays = -8:
  350. tabletkicheck = 0
  351. shotdue = 0
  352. 'Your birth control shot is no longer protecting you.'
  353. elseif shotdays <= 0:
  354. if shotdays = 0:
  355. shotdue = 7
  356. else
  357. shotdue -= 1
  358. end
  359. 'The chemicals regulating your fertility cycle are wearing off, you need to get your shot in <<shotdue>> days.'
  360. elseif shotdays > 1 and shotdays < 5:
  361. 'You are due for a birth control shot soon if you do not get one, you might get pregnant.'
  362. elseif shotdays = 1:
  363. 'Your birth control shot is due for renewal tomorrow.'
  364. end
  365. if shotdays > -100:shotdays -=1
  366. if tabletkishot > 0:tabletkishot -= 1
  367. end
  368. !! birth_control['implant_status']
  369. !! 0: No implant
  370. !! 3: Implant (more than 30 days left)
  371. !! 2: Implant (less than 30 days left)
  372. !! 1: Empty implant
  373. if birth_control['implant_status'] > 1:
  374. pcs_skin += rand(0,1)
  375. pillcon += ((pillcon + 15000) / 25) + 4000
  376. if pillcon > 40000: pillcon = 40000
  377. pillcon2 += ((pillcon2 + 15000) / 25) + 4000
  378. if pillcon2 > 40000: pillcon2 = 40000
  379. birth_control['implant_timer'] -= 1
  380. if (birth_control['implant_timer'] - 1090) > 0:
  381. gs 'pain', '<<(birth_control[''implant_timer''] - 1090)*2>>', 'armL', 'ache'
  382. elseif birth_control['implant_timer'] > 0 and birth_control['implant_timer'] < 30:
  383. birth_control['implant_status'] = 2
  384. 'Your birth control implant is only good for <<birth_control[''implant_timer'']>> more'+iif(birth_control['implant_timer'] = 1, 'day.', 'days.')
  385. elseif birth_control['implant_timer'] < 0:
  386. birth_control['implant_status'] = 1
  387. 'You should renew or remove your birth control implant.'
  388. end
  389. elseif birth_control['implant_status'] = 1:
  390. 'You should renew or remove your birth control implant.'
  391. end
  392. tabletkipd += tabletkipi
  393. tabletkipi = 0
  394. tabletkipt = 0
  395. if tabletkicheck = 1:
  396. if tabletki = 0 and pillsleft[ptype] = 0:
  397. tabletkicheck = 0
  398. 'You are out of birth control pills.'
  399. tabletkipi = -5
  400. elseif tabletki = 0 and pillsleft[ptype] = 28:
  401. 'You have just opened your last package of birth control pills. You need to buy more.'
  402. elseif tabletki = 0 and pillsleft[ptype] <= 5:
  403. 'You are running out of birth control pills, you only have a few left.'
  404. end
  405. end
  406. if tabletkicheck = 1 and tabletkichday < daystart:
  407. tabletkichday = daystart
  408. tabletkimm = (100*(pcs_willpwr / willpowermax)) + pcs_mood
  409. if pcs_sleep < 10:
  410. tabletkimm -= (100- (pcs_sleep * 10))
  411. end
  412. if pcs_willpwr < willpowermax / 4:
  413. tabletkimm = tabletkimm / 4
  414. elseif pcs_mood < 10:
  415. tabletkimm = tabletkimm / 2
  416. end
  417. tabletkiap = tabletkimm
  418. tabletkiap += (pcs_intel * 4) + (pcs_sprt * 2) + (age * 3)
  419. tabletkiap -= ((kid * 30) + (abort * 2) - (tabletkipd * ((60 - age) / 10)))
  420. temprand = rand(0,(200 + (tabletkimm - ((100 - pcs_sprt) * 3))))
  421. tabletkiap += temprand
  422. if tabletkiap < 300:
  423. if tabletkipd > -10:
  424. if pcs_willpwr < willpowermax / 4:
  425. pilldaychk = 0
  426. 'You stare at your package of birth control pills, you know you should take one but you can''t quite work up enough effort to care.'
  427. elseif pcs_mood < 10:
  428. pilldaychk = 0
  429. 'You stare at your package of birth control pills, but you don''t open it.'
  430. elseif pcs_sleep < 10:
  431. pilldaychk = 0
  432. 'You fumble with your birth control pills, trying to get a pill out. You finally give up too tired to manage it.'
  433. else
  434. pilldaychk = 0
  435. 'You just realized you forgot to take your birth control pill today.'
  436. end
  437. end
  438. tabletkipt = 2
  439. tabletkipi = -4
  440. else
  441. if tabletkiap < 350:
  442. temprand = rand(0,5)
  443. else
  444. temprand = rand(0,1000)
  445. end
  446. if temprand = 0:
  447. temprand = rand(0,1)
  448. if temprand = 0:
  449. gs 'din_bad','takepill'
  450. tabletkipt = -2
  451. tabletkipi = 1
  452. else
  453. tabletkipt = 3
  454. tabletkipi = -3
  455. end
  456. if tabletkipd > -10:
  457. pilldaychk = 0
  458. 'You find yourself holding the bottle of birth control pills, you cannot remember if you took one or not.'
  459. end
  460. if tabletkipd > 0:
  461. if rand(0,9) = 0:
  462. if tabletkipt < 0:
  463. pilldaychk = 0
  464. 'You don''t think you have taken your pill today.'
  465. else
  466. pilldaychk = 1
  467. 'You think you have taken your pill today.'
  468. end
  469. else
  470. if tabletkipt > 0:
  471. pilldaychk = 0
  472. 'You don''t think you have taken your pill today.'
  473. else
  474. pilldaychk = 1
  475. 'You think you have taken your pill today.'
  476. end
  477. end
  478. end
  479. else
  480. 'You take your birth control pill for the day.'
  481. pilldaychk = 1
  482. gs 'din_bad','takepill'
  483. if rand(0,7) = 0 and tabletkiday >= (daystart - 1): tabletkipd += 1
  484. tabletkiday = daystart
  485. tabletkipt = 0
  486. tabletkipi = 0
  487. end
  488. end
  489. elseif tabletkicheck = 0:
  490. if tabletkiday >= (daystart - 1) and tabletkipt = 0 and rand(0,7) = 0: tabletkipt = 1
  491. if pillcon > 0 and tabletkipi = 0 and rand(0,3) = 0 and (tabletkiday + 15) > daystart = 0: tabletkipi = -1
  492. end
  493. if pilldaychk = 1:
  494. pilldays += 1
  495. else
  496. pilldays -= 1
  497. end
  498. pilldaychk = 0
  499. if pilldays > 18: pilldays = 18
  500. if pilldays < 0: pilldays = 0
  501. if pillcon > 38000:
  502. birth_control['safe'] = 1
  503. else
  504. birth_control['safe'] = 0
  505. end
  506. if pillcon2 > 38000:
  507. birth_control['think_safe'] = 1
  508. else
  509. birth_control['think_safe'] = 0
  510. end
  511. $MenCal[] = $str(cycle)
  512. if ArrSize('$MenCal') = 60: killvar '$MenCal',0
  513. !!------------------------------------------------------------------------------------------------------------
  514. if lashair ! 1:
  515. pcs_leghair += 1
  516. pcs_pubes += rand(0,1)
  517. end
  518. if age < 18 and rand (0,2) = 0 and pcs_leghair > 0: pcs_leghair -= 1
  519. if pcs_breath = 1:pcs_breath = 0
  520. if cheatNoEat = 1 and dounspell = 1:fat += 15
  521. !!STD check
  522. if SifacOnce = 1:Sifilis += 1
  523. if GerpesOnce = 1:Gerpes += 1
  524. if TriperOnce = 1:
  525. if Triper > 0:
  526. Triper += 1
  527. end
  528. if TriperOral > 0:
  529. TriperOral += 1
  530. end
  531. If TriperOral > 14 and TriperNapr = 0:
  532. if rand(TriperOral,100) > 80:
  533. TriperOral = 0
  534. if Triper = 0:TriperOnce = 0
  535. TriperOralSigns = 0
  536. end
  537. end
  538. end
  539. if KandidozOnce = 1:Kandidoz += 1
  540. Venera = 0
  541. if SifacOnce = 1: Venera += 1
  542. if GerpesOnce = 1: Venera += 1
  543. if TriperOnce = 1: Venera += 1
  544. if pcs_ass > 1 and ashrink > 0 and analplugIN = 0:
  545. if anusK < 0:anusK = 0
  546. if anusK < ashrinkdays:anusK += 1
  547. if anusK >= ashrinkdays:pcs_ass -= ashrink & anusK = 0
  548. if pcs_ass < 0: pcs_ass = 0
  549. end
  550. if pcs_vag > 10 and vshrink > 0:
  551. if vaginaK < 0:vaginaK = 0
  552. if vaginaK < vshrinkdays:vaginaK += 1
  553. if vaginaK >= vshrinkdays:vaginaK = 0 & pcs_vag -= vshrink
  554. end
  555. lipkoef -= rand(0,1)
  556. if lipkoef <= 0: lipkoef = 0
  557. if isprok = 1 or isprokp = 1:
  558. isprok_lastday = 1
  559. else
  560. isprok_lastday = 0
  561. end
  562. if Enable_autotampon = 0 and isprok = 1: isprok = 0 & 'You threw away your used tampon.'
  563. if Enable_autotampon = 0 and isprokp = 1:isprokp = 0 & 'You threw away your used sanitary pad.'
  564. if preg = 1:
  565. pregtime = pregchem / 24
  566. if pregtimes = 0:pregtimes = 1
  567. elseif preg = 2 and pregminut < totminut:
  568. if Enable_nogameover = 0 :
  569. cla
  570. *clr
  571. over = 4
  572. MSG '<center><b>A horrible pain shoots through your body.</b></center>'
  573. xgt 'gameover'
  574. exit
  575. else
  576. MSG'<font color=red><B>You should die for giving birth unprepared, but Cheat Mode keeps you Alive.</B></font>'
  577. pregminut = totminut + 1440
  578. end
  579. elseif preg = 0:
  580. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A14'
  581. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A16'
  582. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A23'
  583. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A28'
  584. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A29'
  585. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A33'
  586. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A34'
  587. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A69'
  588. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A131'
  589. !{killvar 'pregTalkFamily' -- Do not kill this (Abortion talk).}
  590. killvar 'pcs_pregtalk'
  591. killvar 'pregTalk'
  592. killvar 'pregtime'
  593. killvar 'knowpreg'
  594. killvar 'denypreg'
  595. killvar '$wombthfath'
  596. end
  597. !!------------------------------------------------------------------------------------------------------------
  598. !! Arousal
  599. !!------------------------------------------------------------------------------------------------------------
  600. if magikDostup = 0:
  601. if pcs_horny < 100:pcs_horny += pcs_vag
  602. else
  603. if pcs_vag = 0:
  604. razeba = 0
  605. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 10
  606. if pcs_horny > 50:pcs_horny -= 25
  607. elseif pcs_vag > 0:
  608. if pregtimes = 0:
  609. if age < 18:
  610. razeba = 1
  611. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 5
  612. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 10
  613. if pcs_horny >= 80:pcs_horny -= 20
  614. elseif age >= 18 and age < 21:
  615. razeba = 2
  616. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 1
  617. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 5
  618. if pcs_horny >= 80:pcs_horny -= 10
  619. elseif age >= 21 and age < 25:
  620. razeba = 3
  621. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 1
  622. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 1
  623. if pcs_horny >= 80:pcs_horny -= 5
  624. elseif age >= 25 and age < 30:
  625. razeba = 4
  626. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 5
  627. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 1
  628. if pcs_horny >= 80:pcs_horny -= 5
  629. elseif age >= 30:
  630. razeba = 5
  631. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  632. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  633. if pcs_horny >= 80:pcs_horny += 1
  634. end
  635. elseif pregtimes > 0:
  636. if preg = 0:
  637. razeba = 5
  638. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  639. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  640. if pcs_horny >= 80:pcs_horny += 1
  641. elseif preg > 0:
  642. razeba = 6
  643. if pcs_horny < 100:pcs_horny += pregchem / 240
  644. end
  645. end
  646. end
  647. end
  648. if pcs_horny < 0:pcs_horny = 0
  649. !!------------------------------------------------------------------------------------------------------------
  650. !reset Natasha Belova''s clothes
  651. if NatbelQW['seethroughwearing'] = 1: NatbelQW['seethroughwearing'] = 0
  652. !!------------------------------------------------------------------------------------------------------------
  653. !counter for Dimka avoidance
  654. if dimaFilm = 1 and dimaRudeBlock = 0:
  655. nodimkaK += 1
  656. DimkaWarnedToday = 0
  657. end
  658. !!------------------------------------------------------------------------------------------------------------
  659. !!Fame degradation
  660. gs 'fame', 'deg'
  661. !!Traits
  662. gs 'traits', 'overnight'
  663. !!------------------------------------------------------------------------------------------------------------
  664. !! Maruda hair mod
  665. !!------------------------------------------------------------------------------------------------------------
  666. !! Max. Hair length 600mm, or 60cm, which should be somewhere in the lower back area.
  667. !! Hair grows 1mm each day, it takes 20 months (1 month = 30 days) to regrow the hair from 0.
  668. if pcs_hairlng < 1001 and hairgrowcht = 0:pcs_hairlng += 1
  669. if pcs_haircol ! nathcol:
  670. dyefade -=1
  671. if dyefade < 0: dyefade = 0
  672. if dyefade > 0 and dyefade < 7: dyevmod = 5
  673. if dyefade = 0: dyevmod = 15
  674. end
  675. !!pubic hair colouring
  676. !! pcs_pubecol = natural colour
  677. !! pcs_pubecol[1] = flag for saveupdate
  678. !! pcs_pubecol[2] = actual colour
  679. !! pcs_pubecol[3] = countdown timer for dye
  680. if pcs_pubecol[2] ! pcs_pubecol:
  681. pcs_pubecol[3] -=1
  682. if pcs_pubecol[3] < 0: pcs_pubecol[3] = 0
  683. if pcs_pubecol[3] = 0: pcs_pubecol[2] = pcs_pubecol
  684. end
  685. if pcs_pubes < 2: pcs_pubecol[2] = pcs_pubecol
  686. if hscrunch > 0:
  687. hscrunchrand = rand(1, 100)
  688. if hscrunchrand <= 8:hscrunch -= 1
  689. end
  690. !!------------------------------------------------------------------------------------------------------------
  691. !! Clothing wear and tear
  692. gs 'starenie'
  693. !!cocaine reduction
  694. if nark > 60:
  695. nark = 60
  696. elseif nark > 30:
  697. nark -= 3
  698. elseif nark > 0:
  699. nark -= 1
  700. end
  701. if pregchem > 240:fat += 1
  702. !!------------------------------------------------------------------------------------------------------------
  703. !! Pain
  704. !!------------------------------------------------------------------------------------------------------------
  705. if pain['head'] > 0:pain['head'] -= rand(1,3)
  706. if pain['hair'] > 0:pain['hair'] -= rand(1,3)
  707. if pain['ears'] > 0:pain['ears'] -= rand(1,3)
  708. if pain['eyebrows'] > 0:pain['eyebrows'] -= rand(1,3)
  709. if pain['eyes'] > 0:pain['eyes'] -= rand(1,3)
  710. if pain['cheeks'] > 0:pain['cheeks'] -= rand(1,3)
  711. if pain['nose'] > 0:pain['nose'] -= rand(1,3)
  712. if pain['mouth'] > 0:pain['mouth'] -= rand(1,3)
  713. if pain['lips'] > 0:pain['lips'] -= rand(1,3)
  714. if pain['tongue'] > 0:pain['tongue'] -= rand(1,3)
  715. if pain['throat'] > 0:pain['throat'] -= rand(1,3)
  716. if pain['neck'] > 0:pain['neck'] -= rand(1,3)
  717. if pain['back'] > 0:pain['back'] -= rand(1,3)
  718. if pain['asscheeks'] > 0:pain['asscheeks'] -= rand(1,3)
  719. if pain['asshole'] > 0:pain['asshole'] -= rand(1,3)
  720. if pain['hips'] > 0:pain['hips'] -= rand(1,3)
  721. if pain['thighs'] > 0:pain['thighs'] -= rand(1,3)
  722. if pain['legL'] > 0:pain['legL'] -= rand(1,3)
  723. if pain['legR'] > 0:pain['legR'] -= rand(1,3)
  724. if pain['feet'] > 0:pain['feet'] -= rand(1,3)
  725. if pain['toes'] > 0:pain['toes'] -= rand(1,3)
  726. if pain['shoulders'] > 0:pain['shoulders'] -= rand(1,3)
  727. if pain['armL'] > 0:pain['armL'] -= rand(1,3)
  728. if pain['armR'] > 0:pain['armR'] -= rand(1,3)
  729. if pain['hands'] > 0:pain['hands'] -= rand(1,3)
  730. if pain['fingers'] > 0:pain['fingers'] -= rand(1,3)
  731. if pain['chest'] > 0:pain['chest'] -= rand(1,3)
  732. if pain['breasts'] > 0:pain['breasts'] -= rand(1,3)
  733. if pain['nipples'] > 0:pain['nipples'] -= rand(1,3)
  734. if pain['ribs'] > 0:pain['ribs'] -= rand(1,3)
  735. if pain['tummy'] > 0:pain['tummy'] -= rand(1,3)
  736. if pain['pubic'] > 0:pain['pubic'] -= rand(1,3)
  737. if pain['vaginal'] > 0:pain['vaginal'] -= rand(1,3)
  738. if pain['labia'] > 0:pain['labia'] -= rand(1,3)
  739. if pain['clitoris'] > 0:pain['clitoris'] -= rand(1,3)
  740. if pain['urethra'] > 0:pain['urethra'] -= rand(1,3)
  741. if pain['cervix'] > 0:pain['cervix'] -= rand(1,3)
  742. if painpub = 2:
  743. if painpubday + 5 < daystart:
  744. $painpub = 'Your vulva is painfully sore.'
  745. painpub = 1
  746. painpubday = daystart
  747. elseif painpubday + 5 >= daystart:
  748. $painpub = 'Your vulva is painfully sore.'
  749. end
  750. elseif painpub = 1:
  751. if painpubday + 5 < daystart:
  752. $painpub = ''
  753. painpub = 0
  754. painpubday = daystart
  755. elseif painpubday + 5 >= daystart:
  756. $painpub = 'Your vulva is a little sore.'
  757. end
  758. end
  759. !!---- Calculation of lash extension degradation and false lash removal
  760. if pcs_lashes > 2:
  761. if lashextensionstyle >= 1:
  762. lashextensionduration -= 1
  763. if lashextensionduration >= 1 and lashextensionduration <= 4:
  764. 'It''s time for you to do your maintenance on your lash extensions; you should go to the salon or you risk growing them all out.'
  765. end
  766. if lashextensionduration <= 0:
  767. 'You waited too long to do maintenance on your lash extensions; there''s too little there to notice or work with at this point.'
  768. pcs_lashes = pcs_naturallashes
  769. killvar 'lashextensionstyle'
  770. killvar 'lashextensionduration'
  771. killvar 'lashextensionnew'
  772. end
  773. end
  774. if false_lashes > 0:
  775. false_lashes -= 1
  776. if false_lashes = 0:
  777. 'Your false lashes came off in the night; there''s no recovering them now.'
  778. pcs_lashes = pcs_naturallashes
  779. else
  780. 'Somehow, your lashes managed to stay attached throughout the night. You might be able to get away with wearing them another day straight.'
  781. end
  782. end
  783. end
  784. prezikProver += 1
  785. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  786. if shorthair = 1:
  787. shorthairday += 1
  788. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  789. end
  790. !!------------------------------------------------------------------------------------------------------------
  791. if KatjaOTN > 0:
  792. if KatjaHorny > 0 and KatjaLust < 40:KatjaHorny -= rand(1, 3)
  793. if KatjaLust >= 40:KatjaHorny += rand(1, 3)
  794. if KatjaHorny < 0:KatjaHorny = 0
  795. if KatjaHorny >= 100:KatjaHorny = 0 & KatjaMastr += 1 & KatjaLust += 1
  796. end
  797. if npc_rel['A69'] > 60 and rand(0,3) = 0:npc_rel['A69'] -= 1
  798. !!Counter for dimka/igor date
  799. if igor_DimaNos = 2 or igor_DimaNos = 3: $igor_DimaNos_day += 1
  800. !!------------------------------------------------------------------------------------------------------------
  801. !! Generation
  802. !!------------------------------------------------------------------------------------------------------------
  803. if NPCnum < 290:
  804. NPCnow = NPCnum
  805. NPCnum += rand(1, 3)
  806. gs 'npc'
  807. elseif NPCnum < 300:
  808. NPCnow = NPCnum
  809. NPCnum += 1
  810. gs 'npc'
  811. end
  812. !!------------------------------------------------------------------------------------------------------------
  813. if kanikuli = 0:pcs_grades -= 1
  814. dmishaevent = 0
  815. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  816. if GspravkaT = 1:Gspravka -= 1
  817. if IvanPodstavaQW = 2 and PodpiskaNeviezd = 30:IvanPodstavaQW = 3
  818. if IvanPodstavaQW = 2 and PodpiskaNeviezd > 0 and PodpiskaNeviezd < 30:PodpiskaNeviezd += 1
  819. !!remove degradation for inhibition
  820. inhib_flr = inhib_lvl
  821. gs 'stat_sklattrib', 'daycall'
  822. if dounspell = 1:
  823. if strenbuf > 90:
  824. strenbuf -= 2
  825. elseif strenbuf > 80:
  826. strenbuf -= 1
  827. end
  828. if vitalbuf > 90:
  829. vitalbuf -= 2
  830. elseif vitalbuf > 80:
  831. vitalbuf -= 1
  832. end
  833. if strenbuf > pcs_stren: strenbuf -= 1
  834. if strenbuf < pcs_stren: strenbuf += 1
  835. if vitalbuf > pcs_vital: vitalbuf -= 1
  836. if vitalbuf < pcs_vital: vitalbuf += 1
  837. if agilbuf > pcs_agil: agilbuf -= 1
  838. if agilbuf < pcs_agil: agilbuf += 1
  839. else
  840. gs 'body_shape'
  841. end
  842. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  843. !!Pussy_Kats job settings
  844. inWorkYoungShop = 0
  845. if week = 1 and young_shop_work = 100: young_shop_work = 1
  846. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  847. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  848. husbandsexday = 0
  849. borsexkol = 0
  850. givisexday = 0
  851. if shantsr > 0:
  852. pay = shantsr * 5000
  853. karta += pay
  854. shantsr = 0
  855. end
  856. if shantbog > 0:
  857. :shantftb
  858. shantftbgrand = rand(0, 10)
  859. if shantftbgrand > 2:
  860. shantpopala += 1
  861. shantbog -= 1
  862. if shantbog > 0:jump 'shantftb'
  863. elseif shantftbgrand <= 2:
  864. karta += 30000
  865. shantbog -= 1
  866. if shantbog > 0:jump 'shantftb'
  867. end
  868. end
  869. petersexday = 0
  870. klismaday1 = 0
  871. !! Resetting relationships that go over the max
  872. :toptemprel
  873. if temprel < aarraynumber:
  874. temprel +=1
  875. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  876. jump 'toptemprel'
  877. end
  878. killvar 'temprel'
  879. !!------------------------------------------------------------------------------------------------------------
  880. !! Banking
  881. !!------------------------------------------------------------------------------------------------------------
  882. !!MJ: Add some (daily) interest to the bank account.
  883. !!Not very realistic but won''t make anyone too rich.
  884. if bankAccount = 1:
  885. kartatotal = karta
  886. :kartaloop
  887. if kartatotal > 20000000:
  888. kartacount += 1
  889. largekarta[kartacount] = 20000000
  890. kartatotal -= 20000000
  891. jump 'kartaloop'
  892. else
  893. largekarta[0] = kartatotal
  894. end
  895. if karta >= 2000000:
  896. !! yearly interest of 2.3% recalculated into daily interest = 0.006% daily
  897. intrate = 60
  898. elseif karta >= 0:
  899. !! yearly interest of 1.15% recalculated into daily interest = 0.003% daily
  900. intrate = 30
  901. else
  902. !! yearly overdraft interest of 20% recalculated into daily interest = 0.055% daily
  903. intrate = 550
  904. end
  905. :intloop
  906. if kartacount > 0:
  907. smallmoneypos += (largekarta[kartacount] * intrate)
  908. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000: karta += smallmoneypos / 1000000 & smallmoneypos = smallmoneypos mod 1000000
  909. largekarta[kartacount] = 0
  910. kartacount -= 1
  911. jump 'intloop'
  912. else
  913. smallmoneypos += (largekarta[0] * intrate)
  914. largekarta[0] = 0
  915. if kartacount ! 0: kartacount = 0
  916. end
  917. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000:
  918. karta += smallmoneypos / 1000000
  919. smallmoneypos = smallmoneypos mod 1000000
  920. end
  921. if atmDeposit > 0 and atmDepositDate <= daystart:
  922. karta += atmDeposit
  923. atmDeposit = 0
  924. end
  925. end
  926. !!------------------------------------------------------------------------------------------------------------
  927. !! Payments
  928. !!------------------------------------------------------------------------------------------------------------
  929. if day = 25:
  930. !! meynold payment
  931. if mey_vika['mey_vika_qw'] >= 35 and mey_tamara['help_count'] < 10 and mey_tamara['qw_end'] = 0:
  932. karta += 10000
  933. '<b><font color=green>For your efforts aunt Tamara gave you 10,000 rubles</font></b>'
  934. mey_tamara['help_count'] = 0
  935. elseif mey_vika['mey_vika_qw'] >= 35 and mey_tamara['help_count'] >= 10 and mey_tamara['qw_end'] = 0:
  936. karta += 15000
  937. '<b><font color=green>For your efforts aunt Tamara gave you 15,000 rubles</font></b>'
  938. mey_tamara['help_count'] = 0
  939. end
  940. if PersSecWork = 1 and PersSecWorkTimes > 0 and paydaybistrosec = 0:
  941. Pay = PersSecWorkTimes * 1250
  942. PersSecWorkTimes = 0
  943. karta += Pay
  944. paydaybistrosec = 1
  945. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a secretary.</font></b>'
  946. end
  947. if workKafe = 1 and paydayKafe = 0:
  948. paydayKafe = 1
  949. pay = smenaKafe * 600
  950. karta += pay
  951. smenaKafe = 0
  952. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a waitress in a cafe.</font></b>'
  953. end
  954. if workhosp = 1 and nopaypoly = 0:
  955. pay = smena * 1000
  956. karta += pay
  957. smena = 0
  958. nopaypoly = 1
  959. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your work in the clinic.</font></b>'
  960. end
  961. if worksalon = 1 and nopaysalon = 0:
  962. pay = smenaSalon * 1560
  963. karta += pay
  964. smenaSalon = 0
  965. nopaysalon = 1
  966. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your work in a beauty salon.</font></b>'
  967. end
  968. if tanwork = 1 and nopaytanwork = 0:
  969. nopaytanwork = 1
  970. karta += 10000
  971. '<b><font color="green">Your salary of 10,000 <b>₽</b> has been paid into your bank account for your work as a house maid.</font></b>'
  972. end
  973. if workSec = 1 and paydaySec = 0:
  974. paydaySec = 1
  975. pay = sekDay * 800
  976. if officebestslut >= 3:pay += 10000
  977. karta += pay
  978. sekDay = 0
  979. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a secretary.</font></b>'
  980. end
  981. if workFabrika = 1:
  982. pay = smenaFabrika * 600
  983. smenaFabrika = 0
  984. karta += pay
  985. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job at the garment factory.</font></b>'
  986. end
  987. if husband > 0 and paydayHusb = 0:
  988. paydayHusb = 1
  989. if husbFin = 0:huspay = 20000
  990. if husbFin = 1:huspay = 30000
  991. if husbFin = 2:huspay = 40000
  992. karta += huspay
  993. '<b><font color="green">Your husband has paid <<huspay>> <b>₽</b> into your bank account.</font></b>'
  994. end
  995. if stipuha = 1 and stipuhaday = 0:stipuhaday = 1 & karta += 1200 & '<b><font color="green">You have received 1,200 <b>₽</b> scholarship.</font></b>'
  996. ! Utilities for all apartments.
  997. if (home_owned[1] = 1 or home_owned[1] = 2 or home_owned[4] > 0 or home_owned[5] = 2) and electroday = 0:
  998. gs 'housing', 'util'
  999. if bankAccount = 1 and karta >= elektro:
  1000. '<b><font color="green"><<elektro>> <b>₽</b> for utilities, has been automatically deducted from your bank account.</font></b>'
  1001. electroday = 1
  1002. if elektro >= 2000:
  1003. elektro = 2000 + rand(0, 100)
  1004. karta -= elektro * hcount_util
  1005. end
  1006. elseif bankAccount = 1 and karta + bankDebtLimit >= elektro:
  1007. '<b><font color="green"><<elektro>> <b>₽</b> for utilities, has been automatically deducted from your bank account and overdraw facility. Please contact your bank.</font></b>'
  1008. electroday = 1
  1009. if elektro >= 2000:
  1010. elektro = 2000 + rand(0, 100)
  1011. karta -= elektro * hcount_util
  1012. end
  1013. elseif bankAccount = 0 and money >= elektro:
  1014. '<b><font color="red">You currently do not have a bank account setup for automatic utilities payments. <<elektro>> <b>₽</b> has been deducted from your cash holdings.</font></b>'
  1015. electroday = 1
  1016. if elektro >= 2000:
  1017. elektro = 2000 + rand(0, 100)
  1018. money -= elektro * hcount_util
  1019. end
  1020. else
  1021. '<b><font color="red">Your card was declined during automatic debit of <<elektro>> <b>₽</b>, for automatic utilities payment.</font></b>'
  1022. end
  1023. end
  1024. ! Cable for all apartments
  1025. if kabel > 0 and kabelday = 0:
  1026. gs 'housing', 'cable'
  1027. if bankAccount = 1 and karta >= (300 * hcount_cable):
  1028. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account, for you cable TV subscription.</font></b>'
  1029. kabelday = 1
  1030. karta -= 300 * hcount_cable
  1031. elseif bankAccount = 1 and karta + bankDebtLimit >= (300 * hcount_cable):
  1032. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account and overdraw facility, for you cable TV subscription.</font></b>'
  1033. kabelday = 1
  1034. karta -= 300 * hcount_cable
  1035. elseif bankAccount = 0 and money >= (300 * hcount_cable):
  1036. '<b><font color="red">You currently do not have a bank account setup for automatic payment of your cable TV subscription. 300 <b>₽</b> has been deducted from your cash holdings.</font></b>'
  1037. kabelday = 1
  1038. money -= 300 * hcount_cable
  1039. else
  1040. '<b><font color="red">Your card was declined during automatic debit of 300 <b>₽</b> for cable TV subscription.</font></b>'
  1041. end
  1042. end
  1043. end
  1044. if day ! 25:
  1045. if paydayHusb = 1:paydayHusb = 0
  1046. if workKafe = 1 and paydayKafe = 1:paydayKafe = 0
  1047. if workSec = 1 and paydaySec = 1:paydaySec = 0
  1048. if (home_owned[1] = 1 or home_owned[4] > 0) and haday = 1:haday = 0
  1049. if (home_owned[1] > 0 or home_owned[4] > 0 or home_owned[5] = 2) and electroday = 1:electroday = 0
  1050. if (home_owned[1] > 0 or home_owned[4] > 0 or home_owned[5] = 3) and kabel > 0 and kabelday = 1:kabelday = 0
  1051. if stipuhaday = 1:stipuhaday = 0
  1052. if nopaytanwork = 1:nopaytanwork = 0
  1053. if nopaypoly = 1:nopaypoly = 0
  1054. if nopaysalon = 1:nopaysalon = 0
  1055. if paydaybistrosec = 1:paydaybistrosec = 0
  1056. end
  1057. if sdaday = day and sdamonth = month and home_owned[1] = 3:
  1058. home_owned[1] = 2
  1059. '<b><font color="red">Your tenants have moved out and your apartment is now vacant.</font></b>'
  1060. !msg 'Your tenants have moved out and your apartment is now vacant.'
  1061. end
  1062. !!----------------------------------------
  1063. !! Rent
  1064. !!----------------------------------------
  1065. if home_owned[1] = 1 or home_owned[4] > 0:
  1066. gs 'housing', 'rent'
  1067. ! Rent for the city apartment
  1068. if home_owned[1] = 1:
  1069. if ArendHouseSL <= 2:
  1070. !From bank
  1071. if bankAccount = 1 and karta >= home_rent[1]:
  1072. '<b><font color="green">Your rent payment of <<home_rent[1]>> <b>₽</b> for your city apartment, has automatically been deducted from your bank account.</font></b>'
  1073. karta -= home_rent[1]
  1074. ArendHouseSL += ArendHouseSL_due
  1075. elseif bankAccount = 1 and karta + bankDebtLimit >= home_rent[1]:
  1076. '<b><font color="green">Your rent payment of <<home_rent[1]>> <b>₽</b> for your city apartment, has automatically been deducted from your bank account and overdraw facility. Please contact your bank regarding your overdraw repayment.</font></b>'
  1077. karta -= home_rent[1]
  1078. ArendHouseSL += ArendHouseSL_due
  1079. elseif bankAccount = 0:
  1080. '<b><font color="red">You currently do not have a bank account setup for automatic rent deduction of <<home_rent[1]>> <b>₽</b> for your city apartment. To avoid eviction, please make manual payment as soon as possible.</font></b>'
  1081. else
  1082. nl
  1083. '<b><b><font color="red">Your card was declined during automatic rent deduction of <<home_rent[1]>> <b>₽</b> for your city apartment. To avoid eviction, please rectify as soon as possible.</font></b>'
  1084. end
  1085. end
  1086. end
  1087. ! Rent for the Pushkin apartment
  1088. if home_owned[4] > 0:
  1089. if ArendHouseSL4 <= 2:
  1090. !From bank
  1091. if bankAccount = 1 and karta >= home_rent[4]:
  1092. '<b><font color="green">Your rent payment of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment, has automatically been deducted from your bank account.</font></b>'
  1093. karta -= home_rent[4]
  1094. ArendHouseSL4 += ArendHouseSL4_due
  1095. elseif bankAccount = 1 and karta + bankDebtLimit >= home_rent[4]:
  1096. '<b><font color="green">Your rent payment of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment, has automatically been deducted from your bank account and overdraw facility. Please contact your bank regarding your overdraw repayment.</font></b>'
  1097. karta -= home_rent[4]
  1098. ArendHouseSL4 += ArendHouseSL4_due
  1099. elseif bankAccount = 0:
  1100. '<b><font color="red">You currently do not have a bank account setup for automatic rent deduction of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment. To avoid eviction, please make manual payment as soon as possible.</font></b>'
  1101. else
  1102. nl
  1103. '<b><b><font color="red">Your card was declined during automatic rent deduction of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment. To avoid eviction, please rectify as soon as possible.</font></b>'
  1104. end
  1105. end
  1106. end
  1107. end
  1108. if home_owned[1] = 1 and ArendHouseSL <= 0: ArendHouseSL = 0 & home_owned[1] = 0
  1109. if home_owned[4] > 0 and ArendHouseSL4 <= 0: ArendHouseSL4 = 0 & home_owned[4] = 0
  1110. if home_owned[1] = 1: ArendHouseSL -= 1
  1111. if home_owned[4] > 0: ArendHouseSL4 -= 1
  1112. !!------------------------------------------------------------------------------------------------------------
  1113. killvar 'holyday'
  1114. killvar 'kanikuli'
  1115. killvar 'pcs_ate'
  1116. killvar 'pcs_drank'
  1117. !! 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
  1118. !!sisboyparty
  1119. !!-1 - don''t go to the party
  1120. !!0 - don''t know about parties
  1121. !!1 - knows about the parties
  1122. !!2 - agreed to go to the party
  1123. !!3 - Missed the party
  1124. if storyline = 1:
  1125. !!Party refresh if you didn''t see sis
  1126. if week = 1 and sisboyparty ! 2:
  1127. if sisterQW['party'] = -1: sisterQW['party'] = 0
  1128. if sisboypartyQW >= 2 and sisboyparty > 0:
  1129. sisboyparty_day = daystart + rand(3,5)
  1130. end
  1131. end
  1132. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  1133. if SchoolAtestat = 0:
  1134. if month = 12 and day > 25:
  1135. if day < 31:
  1136. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  1137. else
  1138. $holyday = '<b>Winter Break starts tomorrow.</b>'
  1139. end
  1140. elseif month = 1 and day <= 15:
  1141. kanikuli = 2
  1142. if day < 13:
  1143. $holyday = '<b>Winter Break.</b>'
  1144. elseif day < 15:
  1145. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  1146. else
  1147. $holyday = '<b>Last day of Winter Break.</b>'
  1148. end
  1149. elseif month = 3 and day > 13:
  1150. if day < 19:
  1151. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  1152. elseif day = 19:
  1153. $holyday = '<b>Spring Break starts tomorrow.</b>'
  1154. elseif day >= 20 and day <= 26:
  1155. kanikuli = 3
  1156. if day < 24:
  1157. $holyday = '<b>Spring Break.</b>'
  1158. elseif day < 26:
  1159. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  1160. else
  1161. $holyday = '<b>Last day of Spring Break.</b>'
  1162. end
  1163. end
  1164. elseif month = 5:
  1165. if (school_year = 2000 and year = 2017) or (school_year = 2001 and year = 2018):
  1166. if day = 25:
  1167. kanikuli = 6
  1168. SchoolAtestat = -1
  1169. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  1170. elseif day = 24:
  1171. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  1172. elseif day >= 19:
  1173. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  1174. end
  1175. elseif day >= 25:
  1176. if day = 31:
  1177. $holyday = '<b>Summer Break starts tomorrow.</b>'
  1178. else
  1179. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  1180. end
  1181. end
  1182. elseif month = 6 or month = 7 or month = 8:
  1183. kanikuli = 4
  1184. if month = 8 and day >= 25:
  1185. if day = 31:
  1186. $holyday = '<b>Last day of Summer Break.</b>'
  1187. else
  1188. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  1189. end
  1190. else
  1191. $holyday = '<b>Summer Break.</b>'
  1192. end
  1193. elseif month = 10 and day >= 29:
  1194. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  1195. elseif month = 11:
  1196. if day < 3:
  1197. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  1198. elseif day = 3:
  1199. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  1200. elseif day < 6:
  1201. kanikuli = 1
  1202. $holyday = '<b>Autumn Break.</b>'
  1203. elseif day < 11:
  1204. kanikuli = 1
  1205. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  1206. elseif day = 11:
  1207. kanikuli = 1
  1208. $holyday = '<b>Last day of Autumn Break.</b>'
  1209. end
  1210. end
  1211. if kanikuli = 0 and week < 6:
  1212. if week = 1:
  1213. !!The start and end values for i have to be changed if more female schoolgirl npcs are added to the game
  1214. i = 11
  1215. :hotcat_calc_jump
  1216. i += 1
  1217. if hotcat_rating['A<<i>>'] = 0: jump 'hotcat_calc_jump'
  1218. switch_rand = rand(1,100)
  1219. if hotcat_movement['A<<i>>'] = 0 and switch_rand < 21:
  1220. hotcat_rating['A<<i>>'] -= 1
  1221. hotcat_movement['A<<i>>'] -= 1
  1222. elseif hotcat_movement['A<<i>>'] = 0 and switch_rand > 80:
  1223. hotcat_rating['A<<i>>'] += 1
  1224. hotcat_movement['A<<i>>'] += 1
  1225. elseif hotcat_movement['A<<i>>'] = 1 and switch_rand > 40:
  1226. hotcat_rating['A<<i>>'] -= 1
  1227. hotcat_movement['A<<i>>'] -= 1
  1228. elseif hotcat_movement['A<<i>>'] = -1 and switch_rand > 40:
  1229. hotcat_rating['A<<i>>'] += 1
  1230. hotcat_movement['A<<i>>'] += 1
  1231. end
  1232. if i < 145: jump 'hotcat_calc_jump'
  1233. killvar 'i'
  1234. killvar 'switch_rand'
  1235. end
  1236. !! Resetting the late flag
  1237. if late = 1: late = 0
  1238. !!Maximum increase for grupvalues is 7/8
  1239. if oldgrupvalue_set = 0:
  1240. oldgrupvalue_set = 1
  1241. old_grupvalue[1] = grupvalue[1]
  1242. old_grupvalue[2] = grupvalue[2]
  1243. old_grupvalue[3] = grupvalue[3]
  1244. old_grupvalue[4] = grupvalue[4]
  1245. else
  1246. if old_grupvalue[1] + 8 < grupvalue[1]: grupvalue[1] = old_grupvalue[1] + 8
  1247. if old_grupvalue[2] + 8 < grupvalue[2]: grupvalue[2] = old_grupvalue[2] + 8
  1248. if old_grupvalue[3] + 8 < grupvalue[3]: grupvalue[3] = old_grupvalue[3] + 8
  1249. if old_grupvalue[4] + 8 < grupvalue[4]: grupvalue[4] = old_grupvalue[4] + 8
  1250. end
  1251. !!Limit to max school group values
  1252. if grupvalue[1] > 100: grupvalue[1] = 100
  1253. if grupvalue[2] > 100: grupvalue[2] = 100
  1254. if grupvalue[3] > 100: grupvalue[3] = 100
  1255. if grupvalue[4] > 100: grupvalue[4] = 100
  1256. !!Decay for the school groups
  1257. if grupvalue[1] > 0:
  1258. grupvalue[1] -= rand(0,1)
  1259. else
  1260. grupvalue[1] = 0
  1261. end
  1262. if grupvalue[2] > 0:
  1263. grupvalue[2] -= rand(0,1)
  1264. else
  1265. grupvalue[2] = 0
  1266. end
  1267. if grupvalue[3] > 0:
  1268. grupvalue[3] -= rand(0,1)
  1269. else
  1270. grupvalue[3] = 0
  1271. end
  1272. if grupvalue[4] > 0:
  1273. grupvalue[4] -= rand(0,1)
  1274. else
  1275. grupvalue[4] = 0
  1276. end
  1277. old_grupvalue[1] = grupvalue[1]
  1278. old_grupvalue[2] = grupvalue[2]
  1279. old_grupvalue[3] = grupvalue[3]
  1280. old_grupvalue[4] = grupvalue[4]
  1281. end
  1282. elseif SchoolAtestat = -1:
  1283. if home_owned[2] = 0:
  1284. $holyday = '<b>You missed your graduation. You could pick up your diploma at the school.</b>'
  1285. else
  1286. $holyday = '<b>You missed your graduation. Maybe your mother picked up your diploma.</b>'
  1287. end
  1288. end
  1289. !!Brother''s dick growth as he gets older
  1290. !Commented out till some future time
  1291. !if kolka_dick_day + 30 < daystart and npc_dick['A34'] < 26:
  1292. ! kolka_dick_day = daystart
  1293. ! npc_dick['A34'] += 1
  1294. !end
  1295. !if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  1296. ! $npc_thdick['A34'] = 'well proportioned'
  1297. !elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  1298. ! $npc_thdick['A34'] = 'thick'
  1299. !end
  1300. end
  1301. killvar 'natholi'
  1302. if month = 1 and day >= 1 and day <= 8:
  1303. $natholi = 'New Year holidays'
  1304. natholi = 1
  1305. if day = 1:$natholi += ', New Year'
  1306. if day = 7:$natholi += ', Christmas'
  1307. end
  1308. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  1309. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  1310. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  1311. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  1312. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  1313. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  1314. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  1315. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  1316. if natholi = 1:
  1317. if $holyday ! '': $holyday += '<br>'
  1318. $holiday += $natholi
  1319. end
  1320. if bcream_used >= 1:
  1321. bcream_used = 0
  1322. temp = rand(0,max(nbsize-genbsize+5,5)) / max(nbsize-genbsize,1)
  1323. if temp > 0: temp = 1
  1324. nbsize += temp
  1325. if temp > 0:'Feels like your breasts have grown slightly.'
  1326. end
  1327. if steroid_dose >= 1:
  1328. if lashair < 1:
  1329. pcs_pubes += steroid_dose
  1330. pcs_leghair += steroid_dose
  1331. end
  1332. steroid_dose = 0
  1333. end
  1334. if aphrodisiac_overdose = 1:aphrodisiac_overdose = 0
  1335. if aphrodisiac_timer ! 0:aphrodisiac_timer = 0
  1336. if mentats_dose = 1:
  1337. mentats_dose = 0
  1338. elseif mentats_dose > 1:
  1339. pain['head'] += 20 * mentats_dose
  1340. mentats_dose = 0
  1341. end
  1342. !!Appearance base calculation call
  1343. gs 'body_shape', 'basebeautycalc'
  1344. !! vovan, from 1.2.5
  1345. hunters_check = 0
  1346. mushroom_pickers = 0
  1347. mira_go_river = 0
  1348. forestpicnic = 0
  1349. if Mira_no > 0: Mira_no -= 1
  1350. if Mira_no < 0: Mira_no = 0
  1351. !! new grandparent chore stuff, for 0.8.0
  1352. if gadstay = 1 and lost_girl = 0:
  1353. if daystart > (grandmaQW['last_day_helped'] + 3) and daystart > (grandpaQW['last_day_helped'] + 3):
  1354. if (daystart - grandmaQW['last_day_helped']) <= (daystart - grandpaQW['last_day_helped']):
  1355. 'You haven''t helped your grandparents with any chores in <<daystart - grandmaQW[''last_day_helped'']>> days. You should help out more regularly to stay on your grandparents'' good side.'
  1356. else
  1357. 'You haven''t helped your grandparents with any chores in <<daystart - grandpaQW[''last_day_helped'']>> days. You should help out more regularly to stay on your grandparents'' good side.'
  1358. end
  1359. grandmaQW['help_amount'] -= 1
  1360. end
  1361. end
  1362. !! disappointing grandma
  1363. if grandmaQW['chore_clean_floor'] = 1 or grandmaQW['chore_clean_floor'] = 2:
  1364. grandmaQW['chore_clean_floor'] = 0
  1365. grandmaQW['disappointment'] = 1
  1366. elseif grandmaQW['chore_wash_clothes'] = 1 or grandmaQW['chore_wash_clothes'] = 2:
  1367. grandmaQW['chore_wash_clothes'] = 0
  1368. grandmaQW['disappointment'] = 1
  1369. elseif grandmaQW['chore_milk_cow'] = 1 or grandmaQW['chore_milk_cow'] = 2:
  1370. grandmaQW['chore_milk_cow'] = 0
  1371. grandmaQW['disappointment'] = 1
  1372. elseif grandmaQW['chore_groceries'] = 1 or grandmaQW['chore_groceries'] = 2:
  1373. grandmaQW['chore_groceries'] = 0
  1374. grandmaQW['disappointment'] = 1
  1375. elseif grandmaQW['chore_can_mushrooms'] = 1 or grandmaQW['chore_can_mushrooms'] = 2:
  1376. grandmaQW['chore_can_mushrooms'] = 0
  1377. grandmaQW['disappointment'] = 1
  1378. elseif grandmaQW['chore_can_berries'] = 1 or grandmaQW['chore_can_berries'] = 2:
  1379. grandmaQW['chore_can_berries'] = 0
  1380. grandmaQW['disappointment'] = 1
  1381. elseif grandmaQW['chore_can_veggies'] = 1 or grandmaQW['chore_can_veggies'] = 2:
  1382. grandmaQW['chore_can_veggies'] = 0
  1383. grandmaQW['disappointment'] = 1
  1384. elseif grandmaQW['chore_feed_chickens'] = 1 or grandmaQW['chore_feed_chickens'] = 2:
  1385. grandmaQW['chore_feed_chickens'] = 0
  1386. grandmaQW['disappointment'] = 1
  1387. elseif grandmaQW['chore_work_in_garden'] = 1 or grandmaQW['chore_work_in_garden'] = 2:
  1388. grandmaQW['chore_work_in_garden'] = 0
  1389. grandmaQW['disappointment'] = 1
  1390. elseif grandmaQW['chore_water_garden'] = 1 or grandmaQW['chore_water_garden'] = 2:
  1391. grandmaQW['chore_water_garden'] = 0
  1392. grandmaQW['disappointment'] = 1
  1393. elseif grandmaQW['chore_collect_strawberries'] = 1 or grandmaQW['chore_collect_strawberries'] = 2:
  1394. grandmaQW['chore_collect_strawberries'] = 0
  1395. grandmaQW['disappointment'] = 1
  1396. elseif grandmaQW['chore_collect_fruit'] = 1 or grandmaQW['chore_collect_fruit'] = 2:
  1397. grandmaQW['chore_collect_fruit'] = 0
  1398. grandmaQW['disappointment'] = 1
  1399. elseif grandmaQW['chore_harvest_garden'] = 1 or grandmaQW['chore_harvest_garden'] = 2:
  1400. grandmaQW['chore_harvest_garden'] = 0
  1401. grandmaQW['disappointment'] = 1
  1402. elseif grandmaQW['chore_gather_mushrooms'] = 1 or grandmaQW['chore_gather_mushrooms'] = 2:
  1403. grandmaQW['chore_gather_mushrooms'] = 0
  1404. grandmaQW['chore_mushroom_quantity'] = 0
  1405. grandmaQW['disappointment'] = 1
  1406. elseif grandmaQW['chore_gather_berries'] = 1 or grandmaQW['chore_gather_berries'] = 2:
  1407. grandmaQW['chore_gather_berries'] = 0
  1408. grandmaQW['chore_berry_quantity'] = 0
  1409. grandmaQW['disappointment'] = 1
  1410. elseif grandmaQW['chore_gather_both'] = 1 or grandmaQW['chore_gather_both'] = 2:
  1411. grandmaQW['chore_gather_both'] = 0
  1412. grandmaQW['chore_mushroom_quantity'] = 0
  1413. grandmaQW['chore_berry_quantity'] = 0
  1414. grandmaQW['disappointment'] = 1
  1415. end
  1416. !! disappointing grandpa
  1417. if grandpaQW['chore_fetch_firewood'] = 1 or grandpaQW['chore_fetch_firewood'] = 2:
  1418. grandpaQW['chore_fetch_firewood'] = 0
  1419. grandpaQW['disappointment'] = 1
  1420. elseif grandpaQW['chore_feed_horse'] = 1 or grandpaQW['chore_feed_horse'] = 2:
  1421. grandpaQW['chore_feed_horse'] = 0
  1422. grandpaQW['disappointment'] = 1
  1423. elseif grandpaQW['chore_feed_cow'] = 1 or grandpaQW['chore_feed_cow'] = 2:
  1424. grandpaQW['chore_feed_cow'] = 0
  1425. grandpaQW['disappointment'] = 1
  1426. elseif grandpaQW['chore_clean_yard'] = 1 or grandpaQW['chore_clean_yard'] = 2:
  1427. grandpaQW['chore_clean_yard'] = 0
  1428. grandpaQW['disappointment'] = 1
  1429. elseif grandpaQW['chore_feed_boar'] = 1 or grandpaQW['chore_feed_boar'] = 2:
  1430. grandpaQW['chore_feed_boar'] = 0
  1431. grandpaQW['disappointment'] = 1
  1432. elseif grandpaQW['chore_bathe_horse'] = 1 or grandpaQW['chore_bathe_horse'] = 2:
  1433. grandpaQW['chore_bathe_horse'] = 0
  1434. grandpaQW['chore_bathe_horse_prog'] = 0
  1435. grandpaQW['disappointment'] = 1
  1436. elseif grandpaQW['chore_brush_horse'] = 1 or grandpaQW['chore_brush_horse'] = 2:
  1437. grandpaQW['chore_brush_horse'] = 0
  1438. grandpaQW['disappointment'] = 1
  1439. elseif grandpaQW['chore_lead_horse_to_field'] = 1 or grandpaQW['chore_lead_horse_to_field'] = 2:
  1440. grandpaQW['chore_lead_horse_to_field'] = 0
  1441. grandpaQW['disappointment'] = 1
  1442. elseif grandpaQW['chore_herd_cattle'] = 1 or grandpaQW['chore_herd_cattle'] = 2:
  1443. grandpaQW['chore_herd_cattle'] = 0
  1444. grandpaQW['disappointment'] = 1
  1445. elseif grandpaQW['chore_lead_cow_to_field'] = 1 or grandpaQW['chore_lead_cow_to_field'] = 2:
  1446. grandpaQW['chore_lead_cow_to_field'] = 0
  1447. grandpaQW['disappointment'] = 1
  1448. elseif grandpaQW['chore_gather_mushrooms'] = 1 or grandpaQW['chore_gather_mushrooms'] = 2:
  1449. grandpaQW['chore_gather_mushrooms'] = 0
  1450. grandpaQW['chore_mushroom_quantity'] = 0
  1451. grandpaQW['disappointment'] = 1
  1452. elseif grandpaQW['chore_gather_berries'] = 1 or grandpaQW['chore_gather_berries'] = 2:
  1453. grandpaQW['chore_gather_berries'] = 0
  1454. grandpaQW['chore_berry_quantity'] = 0
  1455. grandpaQW['disappointment'] = 1
  1456. elseif grandpaQW['chore_gather_both'] = 1 or grandpaQW['chore_gather_both'] = 2:
  1457. grandpaQW['chore_gather_both'] = 0
  1458. grandpaQW['chore_mushroom_quantity'] = 0
  1459. grandpaQW['chore_berry_quantity'] = 0
  1460. grandpaQW['disappointment'] = 1
  1461. elseif grandpaQW['chore_bale_hay'] = 1 or grandpaQW['chore_bale_hay'] = 2:
  1462. grandpaQW['chore_bale_hay'] = 0
  1463. grandpaQW['disappointment'] = 1
  1464. end
  1465. !! grandparents use root cellar
  1466. if boletus_stored > 0: boletus_stored -= rand(0,1)
  1467. if bilberry_stored > 0: bilberry_stored -= rand(0,1)
  1468. if boletus_stored < 0: boletus_stored = 0
  1469. if bilberry_stored < 0: bilberry_stored = 0
  1470. !! end of new grandparent chore stuff, for 0.8.0
  1471. if catout ! 0: catout = 0
  1472. if feedcat ! 0: feedcat = 0
  1473. loc_count = ARRSIZE('$CloLosLoc')
  1474. i = loc_count - 1
  1475. :loopCloLoc
  1476. $CloLoc = $CloLosLoc[i]
  1477. CloLostOn = CloLosDay[$CloLoc]
  1478. if CloLostOn + RAND(7,14) < daystart :
  1479. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  1480. end
  1481. i -=1
  1482. if i > -1 :jump 'loopCloLoc'
  1483. if vidageday > 1080: vidageday = 1080
  1484. if blizoruk < 10: blizoruk -= 1
  1485. if blizoruk < 100: blizoruk -= rand(0,1)
  1486. if blizoruk < 0: blizoruk = 0
  1487. !!------------------------------------------------------------------------------------------------------------------------
  1488. !!array cleaning moving potential fathers from C to B array and cleaning C array
  1489. !First look is there any cum in the womb,when womb is empty random genereted npc record are cleaningare deleted
  1490. ! mid($npclastgenerated[0],2,9) number of the last random created npcs
  1491. norandomdads = 1
  1492. !checking if Sveta have children or babies
  1493. if arrsize('$ChildFath') > 0:
  1494. !Yes she have... cheking if random NPC is the dady
  1495. !'Sveta have <<$ChildFath>> children'
  1496. childtmp = 0
  1497. :childloop
  1498. if mid($ChildFath[childtmp],1,1) = 'C':
  1499. !yes child is from random genereted npc
  1500. norandomdads = 0
  1501. else
  1502. !child is not from random genereted npc
  1503. childtmp += 1
  1504. if childtmp < arrsize('$ChildFath'): jump 'childloop'
  1505. end
  1506. end
  1507. number = 0
  1508. !checking if there is some cum in womb.
  1509. if arrsize('$cumarrnam') > 0:
  1510. !there is cum in womb
  1511. :cleaning_records_cum
  1512. $tmp = 'C' + '<<number>>'
  1513. cum_number = 0
  1514. :cumloop
  1515. !look if cum in womb is from random created npc
  1516. if($tmp = $cumarrnam[cum_number]):
  1517. !'cum from <<$tmp>> is in the womb'
  1518. number +=1
  1519. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_records_cum'
  1520. else
  1521. cum_number += 1
  1522. if cum_number < arrsize('$cumarrnam'):
  1523. jump 'cumloop'
  1524. else
  1525. !'no cum in woomb from <<$tmp>>'
  1526. if norandomdads = 1:
  1527. !no random dads
  1528. If npc_pers[$tmp] ! '': gs 'npccleanc',$tmp
  1529. else
  1530. !some children are from random genereted npc
  1531. !checking if selected npc is a dady
  1532. childtmp = 0
  1533. :childloop3
  1534. if $ChildFath[childtmp] = $tmp:
  1535. !selected npc is father of the child, he will stay in record or now
  1536. !moving npc from C array to B array,
  1537. gs 'npcpreservec',$tmp
  1538. number += 1
  1539. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_records_cum'
  1540. else
  1541. !child is not from random genereted npc
  1542. childtmp += 1
  1543. if childtmp < arrsize('$ChildFath'):
  1544. jump 'childloop3'
  1545. else
  1546. !children are not from seleted random npc, we are cleaning his redords
  1547. gs 'npccleanc',$tmp
  1548. number += 1
  1549. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_records_cum'
  1550. end
  1551. end
  1552. end
  1553. end
  1554. end
  1555. else
  1556. !there is no cum in womb, cleaning random created npc redords
  1557. if norandomdads = 0:
  1558. :cleaning_with_babies
  1559. $tmp = 'C' + '<<number>>'
  1560. !cheking if random NPC is the dady
  1561. childtmp2 = 0
  1562. :childloop2
  1563. if $ChildFath[childtmp2] = $tmp:
  1564. !selected random NPC is dady selected child
  1565. gs 'npcpreservec', $tmp
  1566. number +=1
  1567. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_with_babies'
  1568. else
  1569. !selected random NPC is not dady selected child
  1570. childtmp2 += 1
  1571. if childtmp2 < arrsize('$ChildFath'):
  1572. jump 'childloop2'
  1573. else
  1574. !selected random npc is not any child dady
  1575. gs 'npccleanc',$tmp
  1576. number += 1
  1577. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_with_babies'
  1578. end
  1579. end
  1580. else
  1581. !she have no children or babies, and no cum freom random npc
  1582. !'cleaning random NPC records'
  1583. :cleaning_no_babies
  1584. $tmp = 'C' + '<<number>>'
  1585. !'clining <<$tmp>>'
  1586. gs 'npccleanc',$tmp
  1587. number += 1
  1588. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_no_babies'
  1589. end
  1590. end
  1591. killvar '$tmp'
  1592. killvar 'number'
  1593. killvar 'childtmp2'
  1594. killvar 'childtmp'
  1595. killvar 'norandomdads'
  1596. !!------------------------------------------------------------------------------------------------------------
  1597. --- cikl ---------------------------------