cikl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. # cikl
  2. day += 1
  3. daystart += 1
  4. week += 1
  5. hour -= 24
  6. if BuyHous = 2 and ArendHouseSL <= 0:ArendHouseSL = 0 & BuyHous = 0 & housr = 0
  7. if BuyHous = 2 and ArendHouseSL > 0:ArendHouseSL -= 1
  8. vidageday -= 1
  9. if workDolgDay > 0:workDolgDay -= 1
  10. if QWdogreiqTimer > 0:QWdogreiqTimer -= 1
  11. if husband > 0:husbanday += 1
  12. if husband > 10 and husbanday > 0:husband -= 15
  13. if fingal > 0:fingal -= 1
  14. if husbandMark = 1 and husband <= 10:
  15. husbizvradd = 0
  16. husbharmin = 0
  17. husbandMark = 0
  18. husband = 0
  19. divorced += 1
  20. if KFOnLineReaga > 0:KFOnLineReaga -= 1
  21. '<b><font color="red">Your husband has filed for a divorce.</font></b>'
  22. end
  23. if year_start ! year and katjaPreg = 0 and month >= 2:katjaPreg = 1
  24. !Clothing stock and price randomizers
  25. Clothingstock = rand (0,23)
  26. i = 1
  27. :loopprice
  28. Clothingstock[i] = rand (0,500)
  29. i += 1
  30. if i <= 147:jump 'loopprice'
  31. !!SECTION: Bimbo (daily status update checks)
  32. if bimbo < 0:
  33. bimbo = 0
  34. elseif bimbo < 10:
  35. bimbolevel = 0
  36. bimbo -= 1
  37. elseif bimbo < 20:
  38. bimbolevel = 1
  39. elseif bimbo < 30:
  40. bimbolevel = 2
  41. elseif bimbo < 40:
  42. bimbolevel = 3
  43. else
  44. if succubusflag = 1:
  45. bimbolevel = 4
  46. else
  47. bimbolevel = 3
  48. end
  49. end
  50. if bimbo >= 50:bimbo = 50
  51. !!Bimbo levels. They use custom variables so they wont permanently change character stats
  52. if bimbolevel = 0:bimbobeauty = 0 and bimbostupidity = 0
  53. if bimbolevel = 1:bimbobeauty = (vnesh / 10) and bimbostupidity = (intel / 6)
  54. if bimbolevel = 2:bimbobeauty = (vnesh / 6) and bimbostupidity = (intel / 4)
  55. if bimbolevel = 3:bimbobeauty = (vnesh / 5) and bimbostupidity = (intel / 3)
  56. if bimbolevel = 4:bimbobeauty = (vnesh / 4) and bimbostupidity = (intel / 3)
  57. if bimbocl = 1:
  58. bimbocl = 0
  59. bimbo += 2
  60. end
  61. !!Checks how often sex has occured in the last 24 hours and for drops in bimbo score, for calculating withdrawal
  62. if bimbolevel >= 1:
  63. bimbo += ((sex + bj + anal) - snapshotX) - 3
  64. if snapshotY - bimbo <= 1 or bimbo > 40:
  65. bimbowithdrawal = 0
  66. else
  67. bimbowithdrawal += 1
  68. end
  69. end
  70. snapshotX = (sex + bj + anal)
  71. snapshotY = bimbo
  72. if curly > 0:curly -= 1
  73. ! WD: Added daily reduction of braids for Maruda Hair Mod
  74. if hbraids > 0:hbraids -= 1
  75. sweat += 1
  76. if tan > 0:tan -= 1
  77. if prezikmsg = 2: prezikmsg = 3
  78. if tabletkishot <= 0: pillcon -= 1000
  79. if pillcon < 0: pillcon = 0
  80. if tabletkicheck = 2:
  81. if tabletkishot ! 0:
  82. cycle = 1
  83. mesec = 0
  84. if rand(0,1000) = 1000:
  85. EggRH = rand(20,80)
  86. else
  87. EggRH = 0
  88. end
  89. FocH = EggRH
  90. end
  91. if tabletkishot <= 0:
  92. 'The chemicals regulating your fertility cycle are wearing off.'
  93. pillcon -= 29000
  94. tabletkicheck = 0
  95. elseif tabletkishot > 1 and tabletkishot < 5:
  96. 'You are due for a birth control shot. If you do not get one, you might get pregnant.'
  97. elseif tabletkishot = 1:
  98. 'Your birth control shot will wear off tomorrow.'
  99. end
  100. tabletkishot -= 1
  101. end
  102. tabletkipd += tabletkipi
  103. tabletkipi = 0
  104. tabletkipt = 0
  105. if tabletkicheck = 1:
  106. if tabletki <= 0:
  107. tabletkicheck = 0
  108. 'You are out of birth control pills.'
  109. tabletkipi = -5
  110. elseif tabletki < 5:
  111. 'You are running out of birth control pills. You only have a few left.'
  112. end
  113. end
  114. if tabletkicheck = 1 and tabletkichday < daystart:
  115. tabletkichday = daystart
  116. tabletkimm = ((100-(willpower / (intel * 5 + will * 5))) + (100-(manna / (intel * magik + magik * 100 + vital * 10 + rikudo))))
  117. if son < 10:
  118. tabletkimm += (100- (son * 10))
  119. end
  120. if willpower < ((intel * 5 + will * 5) * 25 / 100):
  121. tabletkimm = tabletkimm * 4
  122. elseif manna < ((intel * magik + magik * 100 + vital * 10 + rikudo) * 10 / 100):
  123. tabletkimm = tabletkimm * 2
  124. end
  125. tabletkiap = tabletkimm
  126. tabletkiap += (((100-intel)*4)+((100-will)*2)+((50-age)*3))
  127. tabletkiap -= ((kid*30)+(abort*2)+(tabletkipd*(age/10)))
  128. temprand = rand(0,(200+(tabletkimm-(will*3))))
  129. if temprand = 0:
  130. tabletkioddp = 1
  131. end
  132. tabletkiap += temprand
  133. if tabletkiap < 600:
  134. if tabletkipd > -10:
  135. if willpower < ((intel * 5 + will * 5) * 25 / 100):
  136. 'You stare at your bottle of birth control pills. You know you should take one, but you can''t quite work up enough effort to care.'
  137. elseif manna < ((intel * magik + magik * 100 + vital * 10 + rikudo) * 10 / 100):
  138. 'You stare at your bottle of birth control pills, but don''t open it.'
  139. elseif son < 10:
  140. 'You fumble with the cap on your birth control pills, trying to get it open. You finally give up, too tired to manage it.'
  141. else
  142. 'You just realized you forgot to take your birth control pill today.'
  143. end
  144. end
  145. tabletkipt = 2
  146. tabletkipi = -4
  147. else
  148. if tabletkiap < 650:
  149. temprand = rand(0,5)
  150. else
  151. temprand = rand(0,1000)
  152. end
  153. if temprand = 0:
  154. temprand = rand(0,1)
  155. if temprand = 0:
  156. tabletki -= 1
  157. skinvan += 1
  158. tabletkipt = -2
  159. tabletkipi = 1
  160. else
  161. tabletkipt = 3
  162. tabletkipi = -3
  163. end
  164. if tabletkipd > -10:
  165. 'You find yourself holding the bottle of birth control pills. You cannot remember if you took one or not.'
  166. end
  167. if tabletkipd > 10:
  168. if rand(0,9) = 0:
  169. if tabletkipt < 0:
  170. 'You don''t think you have taken it today.'
  171. else
  172. 'You think you have taken it today.'
  173. end
  174. else
  175. if tabletkipt > 0:
  176. 'You don''t think you have taken it today.'
  177. else
  178. 'You think you have taken it today.'
  179. end
  180. end
  181. end
  182. else
  183. 'You take your birth control pill for the day.'
  184. tabletki -= 1
  185. skinvan += 1
  186. if tabletkioddp = 0:
  187. pillcon += ((pillcon+15000)/40)+1000
  188. if pillcon > 40000: pillcon = 40000
  189. else
  190. if vitaminday ! daystart:
  191. vitaminday = daystart
  192. skinvan += 1
  193. end
  194. end
  195. tabletkiday = daystart
  196. tabletkipt = 0
  197. tabletkipi = 0
  198. end
  199. end
  200. end
  201. if skinvan >= 20:skinvan -= 20 & skin += 1
  202. if lashair ! 1:
  203. leghair += 1
  204. lobok += 1
  205. end
  206. if suhbelo > 0:suhbelo2 = suhbelo & suhbelo = 0
  207. if fbreath = 1:fbreath = 0
  208. if cheatNoEat = 1:fat += 15
  209. manna -= 10
  210. if beg >= 2000:
  211. beg -= 4
  212. elseif beg >= 1500:
  213. beg -= 3
  214. elseif beg >= 1000:
  215. beg -= 2
  216. elseif beg >= 100:
  217. beg -= 1
  218. end
  219. !'
  220. if salo > fat:
  221. salo -= 1
  222. fat += 1
  223. else
  224. salo += 1
  225. fat -= 1
  226. end
  227. if strenbuf > stren:strenbuf -= 1
  228. if strenbuf < stren:strenbuf += 1
  229. if vitalbuf > vital:vitalbuf -= 1
  230. if vitalbuf < vital:vitalbuf += 1
  231. if agilbuf > agil:agilbuf -= 1
  232. if agilbuf < agil:agilbuf += 1
  233. '!
  234. !STD check
  235. if SifacOnce = 1:Sifilis += 1
  236. if GerpesOnce = 1:Gerpes += 1
  237. if TriperOnce = 1:Triper += 1
  238. if KandidozOnce = 1:Kandidoz += 1
  239. VeneraN = 0
  240. if VeneraOnce > 0:VeneraOnce = 0
  241. if SifacOnce = 1:VeneraN += 1
  242. if GerpesOnce = 1:VeneraN += 1
  243. if TriperOnce = 1:VeneraN += 1
  244. Venera = VeneraN
  245. !Appearance age
  246. if vidageday <= 0:
  247. vidageday = 360
  248. vidage += 1
  249. end
  250. if anus > 1 and ashrink > 0 and analplugIN = 0:
  251. if anusK < 0:anusK = 0
  252. if anusK < ashrinkdays:anusK += 1
  253. if anusK >= ashrinkdays:anus -= ashrink & anusK = 0
  254. if anus < 0: anus = 0
  255. end
  256. if vagina > 10 and vshrink > 0:
  257. if vaginaK < 0:vaginaK = 0
  258. if vaginaK < vshrinkdays:vaginaK += 1
  259. if vaginaK >= vshrinkdays:vaginaK = 0 & vagina -= vshrink
  260. end
  261. lipkoef -= 1
  262. !!!!!!!!!!!!
  263. !!!jobs!!!
  264. !!!!!!!!!!!!
  265. if Enable_autotampon = 0 and isprok = 1:isprok = 0 & 'You threw away your used tampon.'
  266. if Enable_autotampon = 0 and isprokp = 1:isprokp = 0 & 'You threw away your used sanitary pad.'
  267. if preg = 1 and pregtime < 280:
  268. pregtime += 1
  269. if pregtimes = 0:pregtimes = 1
  270. elseif preg = 1 and pregtime = 280 and hourpreg ! hour:
  271. hourpreg = hour
  272. '<center><b>A sharp pain runs through your stomach, and something flows down your legs. Snap, your water broke! You have to get to the clinic fast!</b></center>'
  273. elseif preg = 1 and pregtime > 280:
  274. cla
  275. *clr
  276. over = 4
  277. '<center><b>A horrible pain shoots through your body.</b></center>'
  278. xgt 'gameover'
  279. exit
  280. end
  281. if StoryLine = 0 or altQS = 1:
  282. if horny < 100:horny += vagina
  283. else
  284. if vagina = 0:
  285. razeba = 0
  286. if horny > 0 and horny <= 50:horny -= 10
  287. if horny > 50:horny -= 25
  288. elseif vagina > 0:
  289. if pregtimes = 0:
  290. if age < 18:
  291. razeba = 1
  292. if horny > 0 and horny <= 50:horny -= 5
  293. if horny > 50 and horny < 80:horny -= 10
  294. if horny >= 80:horny -= 20
  295. elseif age >= 18 and age < 21:
  296. razeba = 2
  297. if horny > 0 and horny <= 50:horny -= 1
  298. if horny > 50 and horny < 80:horny -= 5
  299. if horny >= 80:horny -= 10
  300. elseif age >= 21 and age < 25:
  301. razeba = 3
  302. if horny > 0 and horny <= 50:horny += 1
  303. if horny > 50 and horny < 80:horny -= 1
  304. if horny >= 80:horny -= 5
  305. elseif age >= 25 and age < 30:
  306. razeba = 4
  307. if horny > 0 and horny <= 50:horny += 5
  308. if horny > 50 and horny < 80:horny += 1
  309. if horny >= 80:horny -= 5
  310. elseif age >= 30:
  311. razeba = 5
  312. if horny > 0 and horny <= 50:horny += 10
  313. if horny > 50 and horny < 80:horny += 5
  314. if horny >= 80:horny += 1
  315. end
  316. elseif pregtimes > 0:
  317. if preg = 0:
  318. razeba = 5
  319. if horny > 0 and horny <= 50:horny += 10
  320. if horny > 50 and horny < 80:horny += 5
  321. if horny >= 80:horny += 1
  322. elseif preg > 0:
  323. razeba = 6
  324. if horny < 100:horny += pregtime / 10
  325. end
  326. end
  327. end
  328. end
  329. if horny < 0:horny = 0
  330. if musle >= salo and stren >= 10 and vital >= 10 and dounspell = 0:
  331. !!Fall muscularity
  332. if downmusl >= 5:
  333. downmusl = 0
  334. stren -= 1
  335. vital -= 1
  336. fat += 4
  337. salo += 4
  338. else
  339. downmusl += 1
  340. end
  341. end
  342. !counter for Dimka avoidance
  343. if nodimka = 1:
  344. nodimkaK += 1
  345. if dimaRudeBlock = 1: nodimka = 0
  346. end
  347. !!! Maruda Hair Mod
  348. !!! Max. Hair length 600mm, or 60cm, which should be somewhere in the lower back area.
  349. !!! Hair grows 1mm each day, it takes 20 months (1 month = 30 days) to regrow the hair from 0.
  350. if hairlength < 601:hairlength += 1
  351. if hscrunch > 0:
  352. hscrunchrand = rand(1, 100)
  353. if hscrunchrand <= 8:hscrunch -= 1
  354. end
  355. !!! Maruda Hair Mod
  356. gs 'starenie'
  357. if nark > 60:
  358. nark = 60
  359. elseif nark > 30:
  360. nark -= 3
  361. elseif nark > 0:
  362. nark -= 1
  363. end
  364. if pregtime > 10:fat += 1
  365. if pain['head'] > 0:pain['head'] -= 1
  366. if pain['hair'] > 0:pain['hair'] -= 1
  367. if pain['ears'] > 0:pain['ears'] -= 1
  368. if pain['eyebrows'] > 0:pain['eyebrows'] -= 1
  369. if pain['eyes'] > 0:pain['eyes'] -= 1
  370. if pain['cheeks'] > 0:pain['cheeks'] -= 1
  371. if pain['nose'] > 0:pain['nose'] -= 1
  372. if pain['mouth'] > 0:pain['mouth'] -= 1
  373. if pain['lips'] > 0:pain['lips'] -= 1
  374. if pain['tongue'] > 0:pain['tongue'] -= 1
  375. if pain['throat'] > 0:pain['throat'] -= 1
  376. if pain['neck'] > 0:pain['neck'] -= 1
  377. if pain['back'] > 0:pain['back'] -= 1
  378. if pain['asscheeks'] > 0:pain['asscheeks'] -= 1
  379. if pain['asshole'] > 0:pain['asshole'] -= 1
  380. if pain['hips'] > 0:pain['hips'] -= 1
  381. if pain['thighs'] > 0:pain['thighs'] -= 1
  382. if pain['legL'] > 0:pain['legL'] -= 1
  383. if pain['legR'] > 0:pain['legR'] -= 1
  384. if pain['feet'] > 0:pain['feet'] -= 1
  385. if pain['toes'] > 0:pain['toes'] -= 1
  386. if pain['shoulders'] > 0:pain['shoulders'] -= 1
  387. if pain['armL'] > 0:pain['armL'] -= 1
  388. if pain['armR'] > 0:pain['armR'] -= 1
  389. if pain['hands'] > 0:pain['hands'] -= 1
  390. if pain['fingers'] > 0:pain['fingers'] -= 1
  391. if pain['chest'] > 0:pain['chest'] -= 1
  392. if pain['breasts'] > 0:pain['breasts'] -= 1
  393. if pain['nipples'] > 0:pain['nipples'] -= 1
  394. if pain['ribs'] > 0:pain['ribs'] -= 1
  395. if pain['tummy'] > 0:pain['tummy'] -= 1
  396. if pain['pubic'] > 0:pain['pubic'] -= 1
  397. if pain['vaginal'] > 0:pain['vaginal'] -= 1
  398. if pain['clitoris'] > 0:pain['clitoris'] -= 1
  399. if pain['urethra'] > 0:pain['urethra'] -= 1
  400. if pain['cervix'] > 0:pain['cervix'] -= 1
  401. if painpub = 2:
  402. if painpubday + 5 < daystart:
  403. $painpub = 'Your vulva is painfully sore.'
  404. painpub = 1
  405. painpubday = daystart
  406. elseif painpubday + 5 >= daystart:
  407. $painpub = 'Your vulva is painfully sore.'
  408. end
  409. elseif painpub = 1:
  410. if painpubday + 5 < daystart:
  411. $painpub = ''
  412. painpub = 0
  413. painpubday = daystart
  414. elseif painpubday + 5 >= daystart:
  415. $painpub = 'Your vulva is a little sore.'
  416. end
  417. end
  418. prezikProver += 1
  419. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  420. if brow > 0 and browper = 0:brow -= 1
  421. if shorthair = 1:
  422. shorthairday += 1
  423. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  424. end
  425. if KatjaOTN > 0:
  426. if KatjaHorny > 0 and KatjaLust < 40:KatjaHorny -= rand(1, 3)
  427. if KatjaLust >= 40:KatjaHorny += rand(1, 3)
  428. if KatjaHorny < 0:KatjaHorny = 0
  429. if KatjaHorny >= 100:KatjaHorny = 0 & KatjaMastr += 1 & KatjaLust += 1
  430. end
  431. if trenerepa > 20:trenerepa -= 1
  432. if birthday = day and birthmonth = month:
  433. !!birthday
  434. age += 1
  435. vidage += 1
  436. end
  437. !!!!!!!!!!!!!!!
  438. !!!generation!!!
  439. !!!!!!!!!!!!!!!
  440. if NPCnum < 290:
  441. NPCnow = NPCnum
  442. NPCnum += rand(1, 3)
  443. gs 'npc'
  444. elseif NPCnum < 300:
  445. NPCnow = NPCnum
  446. NPCnum += 1
  447. gs 'npc'
  448. end
  449. !!!!!!!!!!!!!!!
  450. if kanikuli = 0:Suspeh -= 1
  451. dmishaevent = 0
  452. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  453. if GspravkaT = 1:Gspravka -= 1
  454. if IvanPodstavaQW = 2 and PodpiskaNeviezd = 30:IvanPodstavaQW = 3
  455. if IvanPodstavaQW = 2 and PodpiskaNeviezd > 0 and PodpiskaNeviezd < 30:PodpiskaNeviezd += 1
  456. if salo > (fat + 40):
  457. salo -= 3
  458. fat += 3
  459. elseif salo > (fat + 20):
  460. salo -= 1
  461. fat += 1
  462. elseif salo > (fat + 10):
  463. fatD2roll = rand(0,1)
  464. salo -= fatD2roll
  465. fat += fatD2roll
  466. end
  467. if fat > (salo + 40):
  468. salo += 3
  469. fat -= 3
  470. elseif fat > (salo + 20):
  471. salo += 1
  472. fat -= 1
  473. elseif fat > (salo + 10):
  474. fatD2roll = rand(0,1)
  475. salo += fatD2roll
  476. fat -= fatD2roll
  477. end
  478. if salo > 240:
  479. salo = 240
  480. elseif salo > 180:
  481. salo -= 3
  482. elseif salo > 120:
  483. salo -= 2
  484. elseif salo > 60:
  485. salo -= 1
  486. elseif salo < 30:
  487. salo += 3
  488. elseif salo < 60:
  489. salo += 2
  490. end
  491. if fat > 240:
  492. fat = 240
  493. elseif fat > 180:
  494. fat -= 3
  495. elseif fat > 120:
  496. fat -= 2
  497. elseif fat > 60:
  498. fat -= 1
  499. elseif fat < 30:
  500. fat += 3
  501. elseif fat < 60:
  502. fat += 2
  503. end
  504. if strenbuf > 90:
  505. strenbuf -= 2
  506. elseif strenbuf > 80:
  507. strenbuf -= 1
  508. end
  509. if vitalbuf > 90:
  510. vitalbuf -= 2
  511. elseif vitalbuf > 80:
  512. vitalbuf -= 1
  513. end
  514. if strenbuf > stren:strenbuf -= 1
  515. if strenbuf < stren:strenbuf += 1
  516. if vitalbuf > vital:vitalbuf -= 1
  517. if vitalbuf < vital:vitalbuf += 1
  518. if agilbuf > agil:agilbuf -= 1
  519. if agilbuf < agil:agilbuf += 1
  520. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  521. inWorkYoungShop = 0
  522. husbandsexday = 0
  523. borsexkol = 0
  524. givisexday = 0
  525. if shantsr > 0:
  526. pay = shantsr * 5000
  527. karta += pay
  528. shantsr = 0
  529. end
  530. if shantbog > 0:
  531. :shantftb
  532. shantftbgrand = rand(0, 10)
  533. if shantftbgrand > 2:
  534. shantpopala += 1
  535. shantbog -= 1
  536. if shantbog > 0:jump 'shantftb'
  537. elseif shantftbgrand <= 2:
  538. karta += 30000
  539. shantbog -= 1
  540. if shantbog > 0:jump 'shantftb'
  541. end
  542. end
  543. petersexday = 0
  544. klismaday1 = 0
  545. !MJ: Add some (daily) interest to the bank account.
  546. !Not very realistic but wont make anyone too rich.
  547. if bankAccount = 1:
  548. if karta >= 2000000:
  549. !yearly interest of 2.3% recalculated into daily interest = 0.006% daily
  550. smallmoneypos += (karta * 60)
  551. elseif karta >= 0 and karta < 2000000:
  552. !yearly interest of 0.4% recalculated into daily interest = 0.0011% daily
  553. smallmoneypos += (karta * 11)
  554. else
  555. !yearly overdraft interest of 20% recalculated into daily interest = 0.055% daily
  556. smallmoneydebt += (karta * 550)
  557. end
  558. :kopeckloop
  559. if smallmoneypos > 10000:
  560. karta += 1
  561. smallmoneypos -= 10000
  562. jump 'kopeckloop'
  563. else
  564. kartakop += smallmoneypos
  565. if kartakop >= 10000: karta += 1 & kartakop -= 10000
  566. end
  567. :kopeckloop2
  568. if smallmoneydebt < -10000:
  569. karta -= 1
  570. smallmoneydebt += 10000
  571. jump 'kopeckloop2'
  572. else
  573. kartakop += smallmoneydebt
  574. if kartakop < 0: karta -= 1 & kartakop += 10000
  575. end
  576. smallmoneypos = 0
  577. smallmoneydebt = 0
  578. if atmDeposit > 0 and atmDepositDate <= daystart:
  579. karta += atmDeposit
  580. atmDeposit = 0
  581. end
  582. end
  583. !!payments
  584. if day = 25:
  585. if PersSecWork = 1 and PersSecWorkTimes > 0 and paydaybistrosec = 0:
  586. Pay = PersSecWorkTimes * 2500
  587. PersSecWorkTimes = 0
  588. money += Pay
  589. paydaybistrosec = 1
  590. '<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>'
  591. end
  592. if workKafe = 1 and paydayKafe = 0:
  593. paydayKafe = 1
  594. pay = smenaKafe * 600
  595. money += pay
  596. smenaKafe = 0
  597. '<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>'
  598. end
  599. if workhosp = 1 and nopaypoly = 0:
  600. pay = smena * 1000
  601. money += pay
  602. smena = 0
  603. nopaypoly = 1
  604. '<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>'
  605. end
  606. if worksalon = 1 and nopaysalon = 0:
  607. pay = smena * 800
  608. money += pay
  609. smena = 0
  610. nopaysalon = 1
  611. '<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>'
  612. end
  613. if tanwork = 1 and nopaytanwork = 0:
  614. nopaytanwork = 1
  615. money += 25000
  616. '<b><font color="green">Your salary of 25,000 <b>₽</b> has been paid into your bank account for your work as a house maid.</font></b>'
  617. end
  618. if workSec = 1 and paydaySec = 0:
  619. paydaySec = 1
  620. pay = sekDay * 800
  621. if officebestslut >= 3:pay += 20000
  622. karta += pay
  623. sekDay = 0
  624. '<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>'
  625. end
  626. if husband > 0 and paydayHusb = 0:
  627. paydayHusb = 1
  628. if husbFin = 0:huspay = 15000
  629. if husbFin = 1:huspay = 25000
  630. if husbFin = 2:huspay = 40000
  631. money += huspay
  632. '<b><font color="green">Your husband has paid <<huspay>> <b>₽</b> into your bank account.</font></b>'
  633. end
  634. if stipuha = 1 and stipuhaday = 0:stipuhaday = 1 & money += 1200 & '<b><font color="green">You have received 1,200 <b>₽</b> scholarship.</font></b>'
  635. if housr = 1 and haday = 0:haday = 1 & money -= 3000 & '<b><font color="red">You paid 3,000 <b>₽</b> for your apartment.</font></b>'
  636. if housr = 1 and electroday = 0:
  637. electroday = 1
  638. if elektro >= 800:elektro = 800 + rand(0, 100)
  639. money -= elektro
  640. '<b><font color="red">You paid <<elektro>> for electricity.</font></b>'
  641. end
  642. if housr = 1 and kabel > 0 and kabelday = 0:kabelday = 1 & money -= 300 & '<b><font color="red">You have paid 300 <b>₽</b> for cable TV.</font></b>'
  643. end
  644. if day ! 25:
  645. if paydayHusb = 1:paydayHusb = 0
  646. if workKafe = 1 and paydayKafe = 1:paydayKafe = 0
  647. if workSec = 1 and paydaySec = 1:paydaySec = 0
  648. if housr = 1 and haday = 1:haday = 0
  649. if housr = 1 and electroday = 1:electroday = 0
  650. if housr = 1 and kabel > 0 and kabelday = 1:kabelday = 0
  651. if stipuhaday = 1:stipuhaday = 0
  652. if nopaytanwork = 1:nopaytanwork = 0
  653. if nopaypoly = 1:nopaypoly = 0
  654. if nopaysalon = 1:nopaysalon = 0
  655. if paydaybistrosec = 1:paydaybistrosec = 0
  656. end
  657. if sdaday = day and sdamonth = month and housr = 0:
  658. housr = 1
  659. '<b><font color="red">Your tenants have moved out and your apartment is now vacant.</font></b>'
  660. !msg 'Your tenants have moved out and your apartment is now vacant.'
  661. end
  662. if day > monthsEnd[month]:
  663. day -= monthsEnd[month]
  664. month += 1
  665. if month > 12: month = 1
  666. !MJ: Dont think that one is needed. But it was in the original loop.
  667. if month < 1: month = 1
  668. $month = $monthName[month]
  669. end
  670. !MJ: Dont think that one is needed. But it was here already.
  671. if day <= 0:day = 1
  672. if week > 7:
  673. :loopweek
  674. week -= 7
  675. husbandrink = 0
  676. if military = 1:military = 0
  677. if week > 7:jump 'loopweek'
  678. end
  679. if week = 1:$week = 'Monday'
  680. if week = 2:$week = 'Tuesday'
  681. if week = 3:$week = 'Wednesday'
  682. if week = 4:$week = 'Thursday'
  683. if week = 5:$week = 'Friday'
  684. if week = 6:$week = 'Saturday'
  685. if week = 7:$week = 'Sunday'
  686. if storyline = 1 and SchoolAtestat = 0:
  687. $holyday = ''
  688. kanikuli = 0
  689. !holiday countdown (kanicont) by illume. countdown in [cikl], summer vacation pre-set in [startalt]
  690. if (month = 10 and day >= 27) or (month = 11 and day <= 4):
  691. if month = 11:
  692. kanicont = 5 - day
  693. else
  694. kanicont = monthsEnd[10] - day + 1 + 4
  695. end
  696. if month = 10 and day = 27:kanicont = 9
  697. $holyday = '<b>Autumn holidays</b>'
  698. kanikuli = 1
  699. if month = 11 and day = 4:$holyday += ' <b>Back to school tomorrow.</b>'
  700. elseif (month = 12 and day >= 29) or (month = 1 and day <= 13):
  701. if month = 1:
  702. kanicont = 14 - day
  703. else
  704. kanicont = monthsEnd[12] - day + 1 + 13
  705. end
  706. $holyday = '<b>Winter Break</b>'
  707. kanikuli = 2
  708. if month = 1 and day = 13:$holyday += ' <b>Back to school tomorrow.</b>'
  709. elseif (month = 3 and day >= 25):
  710. if kanicount = 0:kanicont = monthsEnd[3] - day + 1
  711. $holyday = '<b>Spring Break</b>'
  712. kanikuli = 3
  713. if month = 3 and day = 31:$holyday += ' <b>Back to school tomorrow.</b>'
  714. elseif (month = 5 and day >= 25) or month = 6 or month = 7 or month = 8:
  715. if month = 5 and day = 25 and age = 17:
  716. $holyday = '<b>Your graduation is today. Be there by 8h.</b>'
  717. kanikuli = 6
  718. else
  719. if month = 8:
  720. kanicont = monthsEnd[8] - day + 1
  721. elseif month = 7:
  722. kanicont = monthsEnd[7] - day + 1 + monthsEnd[8]
  723. elseif month = 6:
  724. kanicont = monthsEnd[6] - day + 1 + monthsEnd[7] + monthsEnd[8]
  725. else
  726. kanicont = monthsEnd[5] - day + 1 + monthsEnd[6] + monthsEnd[7] + monthsEnd[8]
  727. end
  728. $holyday = '<b>Summer holidays</b>'
  729. kanikuli = 4
  730. if month = 8 and day = 31:$holyday += ' <b>Back to school tomorrow.</b>'
  731. end
  732. elseif month = 1 and day = 1:
  733. $holyday = '<b>New Year!</b>'
  734. kanikuli = 5
  735. else
  736. kanicount = 0
  737. !cleanup if not holidays.
  738. end
  739. if kanikuli > 0 and kanikuli < 5:$holyday += ', <<kanicont>> days left.</b>'
  740. end
  741. --- cikl ---------------------------------