1
0

cikl.qsrc 47 KB

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