cikl.qsrc 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569
  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. !counter for Dimka avoidance
  614. if dimaFilm = 1 and dimaRudeBlock = 0:
  615. nodimkaK += 1
  616. DimkaWarnedToday = 0
  617. end
  618. !!------------------------------------------------------------------------------------------------------------
  619. !!Fame degradation
  620. gs 'fame', 'deg'
  621. !!Traits
  622. gs 'traits', 'overnight'
  623. !!------------------------------------------------------------------------------------------------------------
  624. !! Maruda hair mod
  625. !!------------------------------------------------------------------------------------------------------------
  626. !! Max. Hair length 600mm, or 60cm, which should be somewhere in the lower back area.
  627. !! Hair grows 1mm each day, it takes 20 months (1 month = 30 days) to regrow the hair from 0.
  628. if pcs_hairlng < 1001 and hairgrowcht = 0:pcs_hairlng += 1
  629. if pcs_haircol ! nathcol:
  630. dyefade -=1
  631. if dyefade < 0: dyefade = 0
  632. if dyefade > 0 and dyefade < 7: dyevmod = 5
  633. if dyefade = 0: dyevmod = 15
  634. end
  635. if hscrunch > 0:
  636. hscrunchrand = rand(1, 100)
  637. if hscrunchrand <= 8:hscrunch -= 1
  638. end
  639. !!------------------------------------------------------------------------------------------------------------
  640. !! Clothing wear and tear
  641. gs 'starenie'
  642. !!cocaine reduction
  643. if nark > 60:
  644. nark = 60
  645. elseif nark > 30:
  646. nark -= 3
  647. elseif nark > 0:
  648. nark -= 1
  649. end
  650. if pregtime > 10:fat += 1
  651. !!------------------------------------------------------------------------------------------------------------
  652. !! Pain
  653. !!------------------------------------------------------------------------------------------------------------
  654. if pain['head'] > 0:pain['head'] -= rand(1,3)
  655. if pain['hair'] > 0:pain['hair'] -= rand(1,3)
  656. if pain['ears'] > 0:pain['ears'] -= rand(1,3)
  657. if pain['eyebrows'] > 0:pain['eyebrows'] -= rand(1,3)
  658. if pain['eyes'] > 0:pain['eyes'] -= rand(1,3)
  659. if pain['cheeks'] > 0:pain['cheeks'] -= rand(1,3)
  660. if pain['nose'] > 0:pain['nose'] -= rand(1,3)
  661. if pain['mouth'] > 0:pain['mouth'] -= rand(1,3)
  662. if pain['lips'] > 0:pain['lips'] -= rand(1,3)
  663. if pain['tongue'] > 0:pain['tongue'] -= rand(1,3)
  664. if pain['throat'] > 0:pain['throat'] -= rand(1,3)
  665. if pain['neck'] > 0:pain['neck'] -= rand(1,3)
  666. if pain['back'] > 0:pain['back'] -= rand(1,3)
  667. if pain['asscheeks'] > 0:pain['asscheeks'] -= rand(1,3)
  668. if pain['asshole'] > 0:pain['asshole'] -= rand(1,3)
  669. if pain['hips'] > 0:pain['hips'] -= rand(1,3)
  670. if pain['thighs'] > 0:pain['thighs'] -= rand(1,3)
  671. if pain['legL'] > 0:pain['legL'] -= rand(1,3)
  672. if pain['legR'] > 0:pain['legR'] -= rand(1,3)
  673. if pain['feet'] > 0:pain['feet'] -= rand(1,3)
  674. if pain['toes'] > 0:pain['toes'] -= rand(1,3)
  675. if pain['shoulders'] > 0:pain['shoulders'] -= rand(1,3)
  676. if pain['armL'] > 0:pain['armL'] -= rand(1,3)
  677. if pain['armR'] > 0:pain['armR'] -= rand(1,3)
  678. if pain['hands'] > 0:pain['hands'] -= rand(1,3)
  679. if pain['fingers'] > 0:pain['fingers'] -= rand(1,3)
  680. if pain['chest'] > 0:pain['chest'] -= rand(1,3)
  681. if pain['breasts'] > 0:pain['breasts'] -= rand(1,3)
  682. if pain['nipples'] > 0:pain['nipples'] -= rand(1,3)
  683. if pain['ribs'] > 0:pain['ribs'] -= rand(1,3)
  684. if pain['tummy'] > 0:pain['tummy'] -= rand(1,3)
  685. if pain['pubic'] > 0:pain['pubic'] -= rand(1,3)
  686. if pain['vaginal'] > 0:pain['vaginal'] -= rand(1,3)
  687. if pain['labia'] > 0:pain['labia'] -= rand(1,3)
  688. if pain['clitoris'] > 0:pain['clitoris'] -= rand(1,3)
  689. if pain['urethra'] > 0:pain['urethra'] -= rand(1,3)
  690. if pain['cervix'] > 0:pain['cervix'] -= rand(1,3)
  691. if painpub = 2:
  692. if painpubday + 5 < daystart:
  693. $painpub = 'Your vulva is painfully sore.'
  694. painpub = 1
  695. painpubday = daystart
  696. elseif painpubday + 5 >= daystart:
  697. $painpub = 'Your vulva is painfully sore.'
  698. end
  699. elseif painpub = 1:
  700. if painpubday + 5 < daystart:
  701. $painpub = ''
  702. painpub = 0
  703. painpubday = daystart
  704. elseif painpubday + 5 >= daystart:
  705. $painpub = 'Your vulva is a little sore.'
  706. end
  707. end
  708. !!---- Calculation of lash extension degradation and false lash removal
  709. if pcs_lashes > 2:
  710. if lashextensionstyle >= 1:
  711. lashextensionduration -= 1
  712. if lashextensionduration >= 1 and lashextensionduration <= 4:
  713. '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.'
  714. end
  715. if lashextensionduration <= 0:
  716. 'You waited too long to do maintenance on your lash extensions; there''s too little there to notice or work with at this point.'
  717. pcs_lashes = pcs_naturallashes
  718. killvar 'lashextensionstyle'
  719. killvar 'lashextensionduration'
  720. killvar 'lashextensionnew'
  721. end
  722. end
  723. if false_lashes > 0:
  724. false_lashes -= 1
  725. if false_lashes = 0:
  726. 'Your false lashes came off in the night; there''s no recovering them now.'
  727. pcs_lashes = pcs_naturallashes
  728. else
  729. 'Somehow, your lashes managed to stay attached throughout the night. You might be able to get away with wearing them another day straight.'
  730. end
  731. end
  732. end
  733. prezikProver += 1
  734. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  735. if shorthair = 1:
  736. shorthairday += 1
  737. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  738. end
  739. !!------------------------------------------------------------------------------------------------------------
  740. if KatjaOTN > 0:
  741. if KatjaHorny > 0 and KatjaLust < 40:KatjaHorny -= rand(1, 3)
  742. if KatjaLust >= 40:KatjaHorny += rand(1, 3)
  743. if KatjaHorny < 0:KatjaHorny = 0
  744. if KatjaHorny >= 100:KatjaHorny = 0 & KatjaMastr += 1 & KatjaLust += 1
  745. end
  746. if npc_rel['A69'] > 60 and rand(0,3) = 0:npc_rel['A69'] -= 1
  747. !!Counter for dimka/igor date
  748. if igor_DimaNos = 2 or igor_DimaNos = 3: $igor_DimaNos_day += 1
  749. !!------------------------------------------------------------------------------------------------------------
  750. !! Generation
  751. !!------------------------------------------------------------------------------------------------------------
  752. if NPCnum < 290:
  753. NPCnow = NPCnum
  754. NPCnum += rand(1, 3)
  755. gs 'npc'
  756. elseif NPCnum < 300:
  757. NPCnow = NPCnum
  758. NPCnum += 1
  759. gs 'npc'
  760. end
  761. !!------------------------------------------------------------------------------------------------------------
  762. if kanikuli = 0:pcs_grades -= 1
  763. dmishaevent = 0
  764. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  765. if GspravkaT = 1:Gspravka -= 1
  766. if IvanPodstavaQW = 2 and PodpiskaNeviezd = 30:IvanPodstavaQW = 3
  767. if IvanPodstavaQW = 2 and PodpiskaNeviezd > 0 and PodpiskaNeviezd < 30:PodpiskaNeviezd += 1
  768. !!remove degradation for inhibition
  769. inhib_flr = inhib_lvl
  770. gs 'stat_sklattrib', 'daycall'
  771. if dounspell = 1:
  772. if strenbuf > 90:
  773. strenbuf -= 2
  774. elseif strenbuf > 80:
  775. strenbuf -= 1
  776. end
  777. if vitalbuf > 90:
  778. vitalbuf -= 2
  779. elseif vitalbuf > 80:
  780. vitalbuf -= 1
  781. end
  782. if strenbuf > pcs_stren: strenbuf -= 1
  783. if strenbuf < pcs_stren: strenbuf += 1
  784. if vitalbuf > pcs_vital: vitalbuf -= 1
  785. if vitalbuf < pcs_vital: vitalbuf += 1
  786. if agilbuf > pcs_agil: agilbuf -= 1
  787. if agilbuf < pcs_agil: agilbuf += 1
  788. else
  789. gs 'body_shape'
  790. end
  791. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  792. !!Pussy_Kats job settings
  793. inWorkYoungShop = 0
  794. if week = 1 and young_shop_work = 100: young_shop_work = 1
  795. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  796. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  797. husbandsexday = 0
  798. borsexkol = 0
  799. givisexday = 0
  800. if shantsr > 0:
  801. pay = shantsr * 5000
  802. karta += pay
  803. shantsr = 0
  804. end
  805. if shantbog > 0:
  806. :shantftb
  807. shantftbgrand = rand(0, 10)
  808. if shantftbgrand > 2:
  809. shantpopala += 1
  810. shantbog -= 1
  811. if shantbog > 0:jump 'shantftb'
  812. elseif shantftbgrand <= 2:
  813. karta += 30000
  814. shantbog -= 1
  815. if shantbog > 0:jump 'shantftb'
  816. end
  817. end
  818. petersexday = 0
  819. klismaday1 = 0
  820. !! Resetting relationships that go over the max
  821. :toptemprel
  822. if temprel < 250:
  823. temprel +=1
  824. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  825. jump 'toptemprel'
  826. end
  827. killvar 'temprel'
  828. !!------------------------------------------------------------------------------------------------------------
  829. !! Banking
  830. !!------------------------------------------------------------------------------------------------------------
  831. !!MJ: Add some (daily) interest to the bank account.
  832. !!Not very realistic but won''t make anyone too rich.
  833. if bankAccount = 1:
  834. kartatotal = karta
  835. :kartaloop
  836. if kartatotal > 20000000:
  837. kartacount += 1
  838. largekarta[kartacount] = 20000000
  839. kartatotal -= 20000000
  840. jump 'kartaloop'
  841. else
  842. largekarta[0] = kartatotal
  843. end
  844. if karta >= 2000000:
  845. !! yearly interest of 2.3% recalculated into daily interest = 0.006% daily
  846. intrate = 60
  847. elseif karta >= 0:
  848. !! yearly interest of 1.15% recalculated into daily interest = 0.003% daily
  849. intrate = 30
  850. else
  851. !! yearly overdraft interest of 20% recalculated into daily interest = 0.055% daily
  852. intrate = 550
  853. end
  854. :intloop
  855. if kartacount > 0:
  856. smallmoneypos += (largekarta[kartacount] * intrate)
  857. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000: karta += smallmoneypos / 1000000 & smallmoneypos = smallmoneypos mod 1000000
  858. largekarta[kartacount] = 0
  859. kartacount -= 1
  860. jump 'intloop'
  861. else
  862. smallmoneypos += (largekarta[0] * intrate)
  863. largekarta[0] = 0
  864. if kartacount ! 0: kartacount = 0
  865. end
  866. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000:
  867. karta += smallmoneypos / 1000000
  868. smallmoneypos = smallmoneypos mod 1000000
  869. end
  870. if atmDeposit > 0 and atmDepositDate <= daystart:
  871. karta += atmDeposit
  872. atmDeposit = 0
  873. end
  874. end
  875. !!------------------------------------------------------------------------------------------------------------
  876. !! Payments
  877. !!------------------------------------------------------------------------------------------------------------
  878. if day = 25:
  879. !! meynold payment
  880. if mey_vika['mey_vika_qw'] >= 35 and mey_tamara['help_count'] < 10 and mey_tamara['qw_end'] = 0:
  881. karta += 10000
  882. '<b><font color=green>For your efforts aunt Tamara gave you 10,000 rubles</font></b>'
  883. mey_tamara['help_count'] = 0
  884. elseif mey_vika['mey_vika_qw'] >= 35 and mey_tamara['help_count'] >= 10 and mey_tamara['qw_end'] = 0:
  885. karta += 15000
  886. '<b><font color=green>For your efforts aunt Tamara gave you 15,000 rubles</font></b>'
  887. mey_tamara['help_count'] = 0
  888. end
  889. if PersSecWork = 1 and PersSecWorkTimes > 0 and paydaybistrosec = 0:
  890. Pay = PersSecWorkTimes * 1250
  891. PersSecWorkTimes = 0
  892. karta += Pay
  893. paydaybistrosec = 1
  894. '<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>'
  895. end
  896. if workKafe = 1 and paydayKafe = 0:
  897. paydayKafe = 1
  898. pay = smenaKafe * 600
  899. karta += pay
  900. smenaKafe = 0
  901. '<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>'
  902. end
  903. if workhosp = 1 and nopaypoly = 0:
  904. pay = smena * 1000
  905. karta += pay
  906. smena = 0
  907. nopaypoly = 1
  908. '<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>'
  909. end
  910. if worksalon = 1 and nopaysalon = 0:
  911. pay = smenaSalon * 1560
  912. karta += pay
  913. smenaSalon = 0
  914. nopaysalon = 1
  915. '<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>'
  916. end
  917. if tanwork = 1 and nopaytanwork = 0:
  918. nopaytanwork = 1
  919. karta += 10000
  920. '<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>'
  921. end
  922. if workSec = 1 and paydaySec = 0:
  923. paydaySec = 1
  924. pay = sekDay * 800
  925. if officebestslut >= 3:pay += 10000
  926. karta += pay
  927. sekDay = 0
  928. '<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>'
  929. end
  930. if workFabrika = 1:
  931. pay = smenaFabrika * 420
  932. smenaFabrika = 0
  933. karta += pay
  934. '<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>'
  935. end
  936. if husband > 0 and paydayHusb = 0:
  937. paydayHusb = 1
  938. if husbFin = 0:huspay = 20000
  939. if husbFin = 1:huspay = 30000
  940. if husbFin = 2:huspay = 40000
  941. karta += huspay
  942. '<b><font color="green">Your husband has paid <<huspay>> <b>₽</b> into your bank account.</font></b>'
  943. end
  944. if stipuha = 1 and stipuhaday = 0:stipuhaday = 1 & karta += 1200 & '<b><font color="green">You have received 1,200 <b>₽</b> scholarship.</font></b>'
  945. ! Utilities for all apartments.
  946. if (home_owned[1] = 1 or home_owned[1] = 2 or home_owned[4] > 0 or home_owned[5] = 2) and electroday = 0:
  947. gs 'housing', 'util'
  948. if bankAccount = 1 and karta >= elektro:
  949. '<b><font color="green"><<elektro>> <b>₽</b> for utilities, has been automatically deducted from your bank account.</font></b>'
  950. electroday = 1
  951. if elektro >= 2000:
  952. elektro = 2000 + rand(0, 100)
  953. karta -= elektro * hcount_util
  954. end
  955. elseif bankAccount = 1 and karta + bankDebtLimit >= elektro:
  956. '<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>'
  957. electroday = 1
  958. if elektro >= 2000:
  959. elektro = 2000 + rand(0, 100)
  960. karta -= elektro * hcount_util
  961. end
  962. elseif bankAccount = 0 and money >= elektro:
  963. '<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>'
  964. electroday = 1
  965. if elektro >= 2000:
  966. elektro = 2000 + rand(0, 100)
  967. money -= elektro * hcount_util
  968. end
  969. else
  970. '<b><font color="red">Your card was declined during automatic debit of <<elektro>> <b>₽</b>, for automatic utilities payment.</font></b>'
  971. end
  972. end
  973. ! Cable for all apartments
  974. if kabel > 0 and kabelday = 0:
  975. gs 'housing', 'cable'
  976. if bankAccount = 1 and karta >= (300 * hcount_cable):
  977. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account, for you cable TV subscription.</font></b>'
  978. kabelday = 1
  979. karta -= 300 * hcount_cable
  980. '<b><font color="red">Your card was declined during automatic debit of 300 <b>₽</b> for cable TV subscription.</font></b>'
  981. elseif bankAccount = 1 and karta + bankDebtLimit >= (300 * hcount_cable):
  982. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account and overdraw facility, for you cable TV subscription.</font></b>'
  983. kabelday = 1
  984. karta -= 300 * hcount_cable
  985. elseif bankAccount = 0 and money >= (300 * hcount_cable):
  986. '<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>'
  987. kabelday = 1
  988. money -= 300 * hcount_cable
  989. else
  990. '<b><font color="red">Your card was declined during automatic debit of 300 <b>₽</b> for cable TV subscription.</font></b>'
  991. end
  992. end
  993. end
  994. if day ! 25:
  995. if paydayHusb = 1:paydayHusb = 0
  996. if workKafe = 1 and paydayKafe = 1:paydayKafe = 0
  997. if workSec = 1 and paydaySec = 1:paydaySec = 0
  998. if (home_owned[1] = 1 or home_owned[4] > 0) and haday = 1:haday = 0
  999. if (home_owned[1] > 0 or home_owned[4] > 0 or home_owned[5] = 2) and electroday = 1:electroday = 0
  1000. if (home_owned[1] > 0 or home_owned[4] > 0 or home_owned[5] = 3) and kabel > 0 and kabelday = 1:kabelday = 0
  1001. if stipuhaday = 1:stipuhaday = 0
  1002. if nopaytanwork = 1:nopaytanwork = 0
  1003. if nopaypoly = 1:nopaypoly = 0
  1004. if nopaysalon = 1:nopaysalon = 0
  1005. if paydaybistrosec = 1:paydaybistrosec = 0
  1006. end
  1007. if sdaday = day and sdamonth = month and home_owned[1] = 3:
  1008. home_owned[1] = 2
  1009. '<b><font color="red">Your tenants have moved out and your apartment is now vacant.</font></b>'
  1010. !msg 'Your tenants have moved out and your apartment is now vacant.'
  1011. end
  1012. !!----------------------------------------
  1013. !! Rent
  1014. !!----------------------------------------
  1015. if home_owned[1] = 1 or home_owned[4] > 0:
  1016. gs 'housing', 'rent'
  1017. ! Rent for the city apartment
  1018. if home_owned[1] = 1:
  1019. if ArendHouseSL <= 2:
  1020. !From bank
  1021. if bankAccount = 1 and karta >= home_rent[1]:
  1022. '<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>'
  1023. karta -= home_rent[1]
  1024. ArendHouseSL += ArendHouseSL_due
  1025. elseif bankAccount = 1 and karta + bankDebtLimit >= home_rent[1]:
  1026. '<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>'
  1027. karta -= home_rent[1]
  1028. ArendHouseSL += ArendHouseSL_due
  1029. elseif bankAccount = 0:
  1030. '<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>'
  1031. else
  1032. nl
  1033. '<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>'
  1034. end
  1035. end
  1036. end
  1037. ! Rent for the Pushkin apartment
  1038. if home_owned[4] > 0:
  1039. if ArendHouseSL4 <= 2:
  1040. !From bank
  1041. if bankAccount = 1 and karta >= home_rent[4]:
  1042. '<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>'
  1043. karta -= home_rent[4]
  1044. ArendHouseSL4 += ArendHouseSL4_due
  1045. elseif bankAccount = 1 and karta + bankDebtLimit >= home_rent[4]:
  1046. '<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>'
  1047. karta -= home_rent[4]
  1048. ArendHouseSL4 += ArendHouseSL4_due
  1049. elseif bankAccount = 0:
  1050. '<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>'
  1051. else
  1052. nl
  1053. '<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>'
  1054. end
  1055. end
  1056. end
  1057. end
  1058. if home_owned[1] = 1 and ArendHouseSL <= 0: ArendHouseSL = 0 & home_owned[1] = 0
  1059. if home_owned[4] > 0 and ArendHouseSL4 <= 0: ArendHouseSL4 = 0 & home_owned[4] = 0
  1060. if home_owned[1] = 1: ArendHouseSL -= 1
  1061. if home_owned[4] > 0: ArendHouseSL4 -= 1
  1062. !!------------------------------------------------------------------------------------------------------------
  1063. killvar 'holyday'
  1064. killvar 'kanikuli'
  1065. killvar 'pcs_ate'
  1066. killvar 'pcs_drank'
  1067. !!sisboyparty
  1068. !!-1 - don''t go to the party
  1069. !!0 - don''t know about parties
  1070. !!1 - knows about the parties
  1071. !!2 - agreed to go to the party
  1072. !!3 - Missed the party
  1073. if storyline = 1:
  1074. !!Party refresh if you didn''t see sis
  1075. if week = 1 and sisboyparty ! 2:
  1076. if sisboyparty = -1: sisboyparty = 1
  1077. if sisboypartyQW >= 2 and sisboyparty > 0:
  1078. sisboyparty_day = daystart + rand(3,5)
  1079. end
  1080. end
  1081. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  1082. !!missed graduation
  1083. if month = 5 and day = 26:
  1084. if school_year = 2001 and year = 2018 and kanikuli ! 7:
  1085. grad_miss = daystart + 1
  1086. elseif school_year = 2000 and year = 2017 and kanikuli ! 7:
  1087. grad_miss = daystart + 1
  1088. end
  1089. end
  1090. if SchoolAtestat = 0:
  1091. if month = 12 and day > 25:
  1092. if day < 31:
  1093. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  1094. else
  1095. $holyday = '<b>Winter Break starts tomorrow.</b>'
  1096. end
  1097. elseif month = 1 and day <= 15:
  1098. kanikuli = 2
  1099. if day < 13:
  1100. $holyday = '<b>Winter Break.</b>'
  1101. elseif day < 15:
  1102. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  1103. else
  1104. $holyday = '<b>Last day of Winter Break.</b>'
  1105. end
  1106. elseif month = 3 and day > 13:
  1107. if day < 19:
  1108. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  1109. elseif day = 19:
  1110. $holyday = '<b>Spring Break starts tomorrow.</b>'
  1111. elseif day >= 20 and day <= 26:
  1112. kanikuli = 3
  1113. if day < 24:
  1114. $holyday = '<b>Spring Break.</b>'
  1115. elseif day < 26:
  1116. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  1117. else
  1118. $holyday = '<b>Last day of Spring Break.</b>'
  1119. end
  1120. end
  1121. elseif month = 5:
  1122. if ( (school_year = 2000 and year = 2017) or (school_year = 2001 and year = 2018) ) and day >= 19 and day <= 25:
  1123. if day = 25:
  1124. kanikuli = 6
  1125. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  1126. elseif day = 24:
  1127. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  1128. else
  1129. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  1130. end
  1131. elseif day >= 25:
  1132. if day = 31:
  1133. $holyday = '<b>Summer Break starts tomorrow.</b>'
  1134. else
  1135. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  1136. end
  1137. end
  1138. elseif month = 6 or month = 7 or month = 8:
  1139. kanikuli = 4
  1140. if month = 8 and day >= 25:
  1141. if day = 31:
  1142. $holyday = '<b>Last day of Summer Break.</b>'
  1143. else
  1144. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  1145. end
  1146. else
  1147. $holyday = '<b>Summer Break.</b>'
  1148. end
  1149. elseif month = 10 and day >= 29:
  1150. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  1151. elseif month = 11:
  1152. if day < 3:
  1153. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  1154. elseif day = 3:
  1155. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  1156. elseif day < 6:
  1157. kanikuli = 1
  1158. $holyday = '<b>Autumn Break.</b>'
  1159. elseif day < 11:
  1160. kanikuli = 1
  1161. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  1162. elseif day = 11:
  1163. kanikuli = 1
  1164. $holyday = '<b>Last day of Autumn Break.</b>'
  1165. end
  1166. end
  1167. end
  1168. !!Brother''s dick growth as he gets older
  1169. kolka_dick_month = daystart/30
  1170. if kolka_dick_month > daystart/30 and npc_dick['A34'] < 26: npc_dick['A34'] += 1
  1171. if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  1172. $npc_thdick['A34'] = 'well proportioned'
  1173. elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  1174. $npc_thdick['A34'] = 'thick'
  1175. end
  1176. end
  1177. killvar 'natholi'
  1178. if month = 1 and day >= 1 and day <= 8:
  1179. $natholi = 'New Year holidays'
  1180. natholi = 1
  1181. if day = 1:$natholi += ', New Year'
  1182. if day = 7:$natholi += ', Christmas'
  1183. end
  1184. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  1185. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  1186. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  1187. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  1188. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  1189. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  1190. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  1191. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  1192. if natholi = 1:
  1193. if $holyday ! '': $holyday += '<br>'
  1194. $holiday += $natholi
  1195. end
  1196. if bcream_used >= 1:
  1197. bcream_used = 0
  1198. temp = rand(0,max(nbsize-genbsize+5,5)) / max(nbsize-genbsize,1)
  1199. if temp > 0: temp = 1
  1200. nbsize += temp
  1201. if temp > 0:'Feels like your breasts have grown slightly.'
  1202. end
  1203. if steroid_dose >= 1:
  1204. if lashair < 1:
  1205. pcs_pubes += steroid_dose
  1206. pcs_leghair += steroid_dose
  1207. end
  1208. steroid_dose = 0
  1209. end
  1210. if aphrodisiac_overdose = 1:aphrodisiac_overdose = 0
  1211. if aphrodisiac_timer ! 0:aphrodisiac_timer = 0
  1212. if mentats_dose = 1:
  1213. mentats_dose = 0
  1214. elseif mentats_dose > 1:
  1215. pain['head'] += 20 * mentats_dose
  1216. mentats_dose = 0
  1217. end
  1218. !!Appearance base calculation call
  1219. gs 'body_shape', 'basebeautycalc'
  1220. !! vovan, from 1.2.5
  1221. hunters_check = 0
  1222. mushroom_pickers = 0
  1223. horse_river = 0
  1224. haying_time = 0
  1225. mira_go_river = 0
  1226. forestpicnic = 0
  1227. if Mira_no > 0: Mira_no -= 1
  1228. if Mira_no < 0: Mira_no = 0
  1229. if catout ! 0: catout = 0
  1230. if feedcat ! 0: feedcat = 0
  1231. loc_count = ARRSIZE('$CloLosLoc')
  1232. i = loc_count - 1
  1233. :loopCloLoc
  1234. $CloLoc = $CloLosLoc[i]
  1235. CloLostOn = CloLosDay[$CloLoc]
  1236. if CloLostOn + RAND(7,14) < daystart :
  1237. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  1238. end
  1239. i -=1
  1240. if i > -1 :jump 'loopCloLoc'
  1241. if vidageday > 1080: vidageday = 1080
  1242. if blizoruk < 10: blizoruk -= 1
  1243. if blizoruk < 100: blizoruk -= rand(0,1)
  1244. if blizoruk < 0: blizoruk = 0
  1245. !!------------------------------------------------------------------------------------------------------------------------
  1246. !!array cleaning moving potential fathers from C to B array and cleaning C array
  1247. !First look is there any cum in the womb,when womb is empty random genereted npc record are cleaningare deleted
  1248. ! mid($npclastgenerated[0],2,9) number of the last random created npcs
  1249. norandomdads = 1
  1250. !checking if Sveta have children or babies
  1251. if arrsize('$ChildFath') > 0:
  1252. !Yes she have... cheking if random NPC is the dady
  1253. !'Sveta have <<$ChildFath>> children'
  1254. childtmp = 0
  1255. :childloop
  1256. if mid($ChildFath[childtmp],1,1) = 'C':
  1257. !yes child is from random genereted npc
  1258. norandomdads = 0
  1259. else
  1260. !child is not from random genereted npc
  1261. childtmp += 1
  1262. if childtmp < arrsize('$ChildFath'): jump 'childloop'
  1263. end
  1264. end
  1265. number = 0
  1266. !checking if there is some cum in womb.
  1267. if arrsize('$cumarrnam') > 0:
  1268. !there is cum in womb
  1269. :cleaning_records_cum
  1270. $tmp = 'C' + '<<number>>'
  1271. cum_number = 0
  1272. :cumloop
  1273. !look if cum in womb is from random created npc
  1274. if($tmp = $cumarrnam[cum_number]):
  1275. !'cum from <<$tmp>> is in the womb'
  1276. number +=1
  1277. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_records_cum'
  1278. else
  1279. cum_number += 1
  1280. if cum_number < arrsize('$cumarrnam'):
  1281. jump 'cumloop'
  1282. else
  1283. !'no cum in woomb from <<$tmp>>'
  1284. if norandomdads = 1:
  1285. !no random dads
  1286. gs 'npccleanc',$tmp
  1287. else
  1288. !some children are from random genereted npc
  1289. !checking if selected npc is a dady
  1290. childtmp = 0
  1291. :childloop3
  1292. if $ChildFath[childtmp] = $tmp:
  1293. !selected npc is father of the child, he will stay in record or now
  1294. !moving npc from C array to B array,
  1295. gs 'npcpreservec',$tmp
  1296. !updating the childs data about the father
  1297. $ChildFath[childtmp] = $npclastsaved
  1298. !cleaining unnecessary data
  1299. gs 'npccleanc',$tmp
  1300. number += 1
  1301. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_records_cum'
  1302. else
  1303. !child is not from random genereted npc
  1304. childtmp += 1
  1305. if childtmp < arrsize('$ChildFath'):
  1306. jump 'childloop3'
  1307. else
  1308. !children are not from seleted random npc, we are cleaning his redords
  1309. gs 'npccleanc',$tmp
  1310. number += 1
  1311. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_records_cum'
  1312. end
  1313. end
  1314. end
  1315. end
  1316. end
  1317. else
  1318. !there is no cum in womb, cleaning random created npc redords
  1319. if norandomdads = 0:
  1320. :cleaning_with_babies
  1321. $tmp = 'C' + '<<number>>'
  1322. !cheking if random NPC is the dady
  1323. childtmp2 = 0
  1324. :childloop2
  1325. if $ChildFath[childtmp2] = $tmp:
  1326. !selected random NPC is dady selected child
  1327. number +=1
  1328. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_with_babies'
  1329. else
  1330. !selected random NPC is not dady selected child
  1331. childtmp2 += 1
  1332. if childtmp2 < arrsize('$ChildFath'):
  1333. jump 'childloop2'
  1334. else
  1335. !selected random npc is not any child dady
  1336. gs 'npccleanc',$tmp
  1337. number += 1
  1338. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_with_babies'
  1339. end
  1340. end
  1341. else
  1342. !she have no children or babies, and no cum freom random npc
  1343. !'cleaning random NPC records'
  1344. :cleaning_no_babies
  1345. $tmp = 'C' + '<<number>>'
  1346. !'clining <<$tmp>>'
  1347. gs 'npccleanc',$tmp
  1348. number += 1
  1349. if number < mid($npclastgenerated[0],2,9): jump 'cleaning_no_babies'
  1350. end
  1351. end
  1352. killvar '$tmp'
  1353. killvar 'number'
  1354. killvar 'childtmp2'
  1355. killvar 'childtmp'
  1356. killvar 'norandomdads'
  1357. !!------------------------------------------------------------------------------------------------------------
  1358. --- cikl ---------------------------------