cikl.qsrc 63 KB

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