stat 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. # stat
  2. clr
  3. !!This is error catching to prevent stat from running too early
  4. if opPRE > 0: exit
  5. if Enable_Android = 0:
  6. if oldobjmenu = 0:
  7. gs 'obj_din', 'new'
  8. else
  9. gs 'obj_din', 'old'
  10. end
  11. end
  12. if daystart_start < 100:
  13. pl '<BR>Did you start at the <a href="exec:daystart_start = 241 & gs''daystart'' & gs''stat''">end of August</a> or <a href="exec:daystart_start = 152 & gs''daystart'' & gs''stat''">beginning of June</a>?'
  14. exit
  15. end
  16. view
  17. rand1 = rand(0,100)
  18. $stat_msg=''
  19. if MagikDostup = 0: magik_exp = orgasm
  20. if insleep = 0: gs 'stat_sklattrib'
  21. if cheatHealth = 1: dynamic $cheatmenu['std_cure']
  22. if analplay >= 2 and pcs_ass <= 10: pcs_ass += 1 & analplay = 0
  23. if analplay >= 4 and pcs_ass <= 15: pcs_ass += 1 & analplay = 0
  24. if analplay >= 8 and pcs_ass <= 20: pcs_ass += 1 & analplay = 0
  25. !!The following seems to be part of the combat system.
  26. musle[1] = musle
  27. flex[1] = pcs_agil
  28. stamina[1] = pcs_vital * 3
  29. wipo[1] = pcs_sprt
  30. intel[1] = pcs_intel - bimbostupidity
  31. krasota[1] = pcs_apprnc
  32. pcs_hgt[1] = pcs_hgt
  33. salo[1] = salo
  34. fat[1] = fat
  35. Bteh[1] = bteh
  36. Uteh[1] = uteh
  37. Zteh[1] = zteh
  38. !!This is a temporary stop-gap measure for the accomadation skill and will be removed
  39. if succubusflag = 1 and sucskill >= 4:
  40. if pain['throat'] > 0: pain['throat'] = 0 & sucexcess -= 1
  41. if pain['asshole'] > 0: pain['asshole'] = 0 & sucexcess -= 1
  42. if pain['vaginal'] > 0: pain['vaginal'] = 0 & sucexcess -= 1
  43. if vgape > 0: vgape = 0 & vgapetime = 0 & sucexcess -= 1
  44. if agape > 0: agape = 0 & agapetime = 0 & sucexcess -= 1
  45. end
  46. !!!CHEATS!!!
  47. if cheatWork = 1:work = 0
  48. if cheatWorkKiskis = 1:young_shop_miss = 0
  49. if cheatHapri = 1:pcs_hairbsh = 1
  50. if cheatKlisma = 1:klismaday = daystart & klismaday1 = 1
  51. if cheatNomakeup = 1:
  52. if pcs_makeup = 0: pcs_makeup = 1
  53. end
  54. if cheatNosweat = 1 and pcs_sweat > 0: pcs_sweat = 0
  55. if cheatNoEat = 1:
  56. if pcs_energy < 35: pcs_energy = 35
  57. end
  58. if cheatBandit = 1 and npc_horny['A66'] < 19: npc_horny['A66'] = 19
  59. if CheatNoSleep = 1 and pcs_sleep < 35: pcs_sleep = 35
  60. if alko > 0 and frost > 0:frost = 0
  61. if StrongNarkota >= 20:
  62. if alko > 0:alko = 0
  63. end
  64. if lernSkill >= 8: intel_exp += 1 & lernSkill = 0
  65. if lern >= 10: intel_exp += 1 & lern = 0
  66. if pav_sex >= 25:KatjaKnowBJ = 1
  67. if pav_sex >= 50 or preg > 0:KatjaKnowSex = 1
  68. if film > 0:
  69. !pornoaktrissa
  70. $kompromatFoto = 'The photo is a screenshot from one of your porn movies.'
  71. elseif fotoyousuck = 1:
  72. !!sucked in a couple of guys and was sfotografirovanna
  73. $kompromatFoto = 'The picture shows you sucking two cocks at the same time.'
  74. elseif fotoCFNMsex > 0:
  75. $kompromatFoto = 'In the photo you see yourself getting fucked from behind by a random guy. This must have been taken in the stripclub.'
  76. elseif fotoCFNMblowjobCum > 0:
  77. !!cum on face in the strip club
  78. $kompromatFoto = 'In the photo you are sitting infront of a guy, kissing his cock. There seems to be cum on your face. This photo must have been taken in the stripclub.'
  79. elseif fotoCFNMblowjob > 0:
  80. !!sucked in front of everyone
  81. $kompromatFoto = 'In the photo you are giving a guy a blowjob. You can spot a group of women in the background and it seems like this photo was taken in the stripclub.'
  82. elseif stripdancesum > 0:
  83. !!stripper
  84. $kompromatFoto = 'In the photo you are dancing on a pole. Obviously someone photographed you, while you were on stage at the stripclub.'
  85. elseif modelfoto > 0:
  86. !!photo model
  87. $kompromatFoto = 'The photo shows you naked, it is very well taken and must be from a shoot at the modeling agency.'
  88. end
  89. shameless = guy + stat['bj'] + stat['anal'] + stat['hj'] + ((slutty + gang) * 2)
  90. moneySUM = money + karta + stolmoney
  91. cumSUM = cumsumbod/40
  92. if husbizvradd > 5:izvratH = 1
  93. if husbharmin > 10:harakHusb = 0
  94. if clrbelo < 0:clrbelo = 0 & tanga = 0
  95. if husband = 0:
  96. husbizvradd = 0
  97. husbharmin = 0
  98. husbandMark = 0
  99. houseslut = 0
  100. end
  101. if SNarkvnesh = 0:SNarkvnesh = 1
  102. if SNarkTimes >= SNarkvnesh * 25:
  103. SNarkvnesh += 1
  104. vidage += 1
  105. end
  106. if gopota >= 20 and gnewQW = 1:gnewQW = 2
  107. if workDisk = 4 and week > 5:workDisk = 1
  108. if workDisk = 3 and week > 5:workDiskAtkPlayer = 1
  109. if bfa < 0: bfa = 0
  110. if pcs_vag > 36: pcs_vag = 36
  111. if pcs_throat > 36: pcs_throat = 36
  112. if pcs_ass > 36: pcs_ass = 36
  113. if NarkImmune = 1:
  114. if narkoman ! 0:narkoman = 0
  115. elseif nark >= 30 and narkoman = 0 and NarkImmune = 0:
  116. narkoman = 1
  117. elseif nark = 0 and narkoman = 1:
  118. narkoman = 0
  119. end
  120. if CheatSlut = 1 or succubusflag = 1:
  121. !!Succubus cannot get pregnant
  122. mesec = 0
  123. FocH = 0
  124. EggRH = 0
  125. Ovulate = 0
  126. fertegg = 0
  127. UnfertEgg = 0
  128. PregChem = 0
  129. preg = 0
  130. LutH = 0
  131. RecovH = 0
  132. babyembryo = 0
  133. cycle = 1
  134. if pcs_horny < 50 and CheatSlut = 1: pcs_horny = 50
  135. end
  136. !!These will be made obsolete with the combat system overhaul
  137. boxing = pcs_jab + pcs_punch + pcs_kick + pcs_def
  138. if boxing > 100: boxing = 100
  139. if MagikDostup = 0:
  140. if pcs_magik > magikhigh:
  141. magikhigh += 1
  142. rikudo += pcs_magik * 100
  143. $stat_msg += '<BR><b>You feel like a strength has been revealed within you and you gush with magic, lifting you to a new energy level.</b>'
  144. !! This will be replaced when a more advanced physical system is made
  145. if (pcs_magik mod 2 ! 0) and pcs_eyesize < 2: pcs_eyesize += 1
  146. if (pcs_magik mod 2 = 0) and pcs_lashes < 2: pcs_lashes += 1
  147. end
  148. else
  149. !!This is for error catching
  150. killvar 'pcs_magik'
  151. killvar 'rikudo'
  152. killvar 'pcs_splcstng'
  153. end
  154. if pcs_dom > 100: pcs_dom = 100
  155. if SUB > 100: SUB = 100
  156. if VAF > 200: VAF = 200
  157. if SUB >= pcs_dom and pcs_dom > 0:SUB = SUB - pcs_dom & pcs_dom = 0
  158. if pcs_dom >= SUB and SUB > 0:pcs_dom = pcs_dom - SUB & SUB = 0
  159. if pcs_horny < 0: pcs_horny = 0
  160. if pcs_exhibition < 0:
  161. pcs_exhibition = 0
  162. elseif pcs_exhibition > 100:
  163. pcs_exhibition = 100
  164. end
  165. healthmax = (pcs_vital * 10 + pcs_stren * 5)
  166. willpowermax = (pcs_intel * 5 + pcs_sprt * 5)
  167. stammax = 5 * (2 * pcs_vital + pcs_agil + pcs_stren) / 2
  168. mannamax = (pcs_intel * pcs_magik) + pcs_magik * 100 + pcs_vital * 10 + rikudo
  169. speed = (2 * (pcs_stren + pcs_agil) + pcs_vital) / 5
  170. if healthmax < 1: healthmax = 1
  171. if willpowermax < 1: willpowermax = 1
  172. if stammax < 1: stammax = 1
  173. if mannamax < 1: mannamax = 1
  174. !pre-calc max value for later display
  175. if fairycurse >= daystart and fairyshoo > 0: pcs_horny = 90
  176. if min_arousal > pcs_horny: pcs_horny = min_arousal
  177. if Enable_lockhorny > 0 and pcs_horny < Enable_lockhorny - 1: pcs_horny = Enable_lockhorny - 1
  178. if pcs_horny < 0: pcs_horny = 0
  179. if pcs_health > healthmax: pcs_health = healthmax
  180. if pcs_willpwr > willpowermax: pcs_willpwr = willpowermax
  181. if pcs_stam > stammax: pcs_stam = stammax
  182. if pcs_manna > mannamax: pcs_manna = mannamax
  183. if pcs_mood > 100: pcs_mood = 100
  184. if hypnoAddict = 1 and pcs_horny < 30:
  185. pcs_horny = 30
  186. elseif hypnoAddict = 2 and pcs_horny < 50:
  187. pcs_horny = 50
  188. end
  189. if spdirtyi = 1 or hypnoAddict = 0:missCum = 0
  190. if missCum >= timeTresh:
  191. if pcs_horny < 90: pcs_horny = 90
  192. if preziktype = 0: prezikcount = prezik
  193. if preziktype = 2: preziksabo = prezik
  194. prezik = 0
  195. preziktype = 1
  196. end
  197. !!!!!!!!!!!
  198. !!!TIME!!!
  199. !!!!!!!!!!!
  200. if nminut ! minut:
  201. ! Zero totminut will be at New Years Eve of 2015
  202. ! Years since 2015 in days
  203. totminut = (year - 2015) * 365
  204. ! Days this year
  205. if month > 1 : totminut += 31 & ! Jan
  206. if month > 2 : totminut += 28 & ! Feb
  207. if month > 3 : totminut += 31 & ! Mar
  208. if month > 4 : totminut += 30 & ! Apr
  209. if month > 5 : totminut += 31 & ! May
  210. if month > 6 : totminut += 30 & ! Jun
  211. if month > 7 : totminut += 31 & ! Jul
  212. if month > 8 : totminut += 31 & ! Aug
  213. if month > 9 : totminut += 30 & ! Sep
  214. if month > 10: totminut += 31 & ! Oct
  215. if month > 11: totminut += 30 & ! Nov
  216. if month > 12: totminut += 31 & ! Dec
  217. if month > 13: totminut += 31 & ! Jan rollover sanity check
  218. totminut += day
  219. ! Hours
  220. totminut = totminut * 24 + hour
  221. ! Minutes
  222. totminut = totminut * 60 + minut + sec / 60
  223. nminut = minut
  224. end
  225. !!painkiller
  226. if pain['killer'] > 0:
  227. if pain['killer'] = 1: pain_timer = totminut - 2
  228. pain['killer'] = totminut - pain_timer
  229. if pain['killer'] >= 243: pain['killer'] = 0
  230. end
  231. ! WD: 'daystart' Should start at 1
  232. if daystart = 0: daystart = 1
  233. !!Gaping of vagina recovery time
  234. if vgape > 0:
  235. if vgapetime = 0: vgapetime = totminut
  236. if (vgapetime + 60) <= totminut:vgape -= 1 & vgapetime = 0
  237. end
  238. !!Gaping of anus recovery time
  239. if agape > 0:
  240. if agapetime = 0: agapetime = totminut
  241. if (agapetime + 90) <= totminut:agape -= 1 & agapetime = 0
  242. end
  243. !!Recovery from spanking - will be superseded by pain system
  244. if spanked > 0:
  245. if spankedtime = 0: spankedtime = totminut
  246. if (spankedtime + 2040) <= totminut:spanked -= 1 & spankedtime = 0
  247. end
  248. !! Orgasmic cooldown
  249. if orgasmic ! 0:
  250. if orgasmic < totminut - 30: orgasmic = 0 & pcs_horny = 0
  251. end
  252. if sec >= 60:
  253. :loopsec
  254. minut += 1
  255. sec -= 60
  256. if sec >= 60:jump 'loopsec'
  257. end
  258. if minut >= 60:
  259. :loopmin
  260. hour += 1
  261. minut -= 60
  262. if SbrosNerdism = 1:pcs_nerd = pcs_sprt / 10 - orgasm
  263. if pcs_nerd < 0:pcs_nerd = 0
  264. if obkvsdam > 0:obkvsdam = rand(2, 5)
  265. if scpopt > 1: scpopt = 0
  266. if insleep = 1:
  267. pcs_energy -= (4 + succublvl/2)
  268. pcs_stam += stammax / 10
  269. pcs_sleep -= 4
  270. else
  271. pcs_energy -= (8 + succublvl)
  272. pcs_stam += stammax / 20
  273. pcs_sleep -= 4
  274. end
  275. if pcs_stam > stammax: pcs_stam = stammax
  276. gs 'femcyc'
  277. if hypnoAddict > 0:dynamic $hypnoAddiction
  278. !!manna regen
  279. pcs_manna += mannamax / 20
  280. if alko > 0 and alkoblock = 0:
  281. if alko >= 4:
  282. if pcs_run > 0: run_deg -= 1
  283. if vball_lvl >= 50: vball_deg -= 1
  284. if alko >= 6:
  285. if pcs_stren > 10: stren_deg -= 1
  286. if pcs_vital > 10: vital_deg -= 1
  287. if pcs_intel > 10: intel_deg -= 1
  288. alko -= rand (1, 2)
  289. end
  290. end
  291. alko -= 1
  292. end
  293. !!!!!!!!!!!!!
  294. !!!Avtoboy!!!
  295. !!!!!!!!!!!!!
  296. if hour >= 8 and hour <= 23 and NPCnum > 10 and insleep = 0:
  297. :markturnirotbort
  298. xf = 0
  299. :markturnirotbortt
  300. xf += 1
  301. turnirFighter[xf] = rand(2, NPCnum)
  302. if xf < 2:jump 'markturnirotbortt'
  303. if turnirFighter[1] = turnirFighter[2]:jump 'markturnirotbort'
  304. a = turnirFighter[1]
  305. i = turnirFighter[2]
  306. NoView = 1
  307. gs 'Autofight'
  308. end
  309. !!!!!!!!!!!!!
  310. if shame > 0:shame -= 1 & pcs_mood -= 5
  311. if smoker >= 20:smokerNeed += 1
  312. if smokerNeed > 10 and InSleep = 0 and pcs_mood > 20:pcs_mood -= pcs_mood / 10
  313. if smokerNeed > 300:smokerNeed = 0 & smoker = 0
  314. if StrongNarkota > 0:StrongNarkota -= 1
  315. if SLomka > 0 and pcs_mood > 10:SLomka += 1 & pcs_mood -= pcs_mood / 10
  316. if SLomka > 100 and StrongNarkota <= 0:SLomka = 0 & SNarkTimes = 0
  317. if narkoman = 1 and narkday ! daystart:
  318. pcs_health -= 5
  319. pcs_willpwr -= 5
  320. pcs_mood -= 10
  321. end
  322. if tanga = 0 and PCloPants > 0 and $clothingworntype ! 'nude':mosolpred += 1
  323. if mosolpred >= 10:
  324. mosol += 1
  325. mosolpred -= 10
  326. end
  327. if mosol >= 50:
  328. pcs_mood -= 5
  329. end
  330. if pcs_energy > 100:
  331. fat += (pcs_energy - 100) / 4
  332. pcs_energy = 100
  333. end
  334. if mosol > 0:
  335. if tanga = 1 or $clothingworntype = 'nude':mosol -= 1
  336. end
  337. if pcs_lipbalm > 0:pcs_lipbalm -= 1
  338. if sickstage = 1:sick += 1 & sicktimer += 1
  339. if sickstage = 1 and sicktimer >= 80:sicktimer = 0 & sickstage = 2
  340. if sickstage = 2 and sick > 0:sick -= 1
  341. if sickstage = 2 and sick <= 0:sick = 0 & sickstage = 0
  342. if perkice > 0:perkice -= 1
  343. if frost > 0:frost -= 1
  344. if KGOLpers > 0:
  345. if KGHP < KGHPMAX:KGHP += 10
  346. if KGManna < KGMannaMax:KGManna += 10
  347. end
  348. if pain['head'] > 0:pain['head'] -= rand(0,1)
  349. if pain['hair'] > 0:pain['hair'] -= rand(0,1)
  350. if pain['ears'] > 0:pain['ears'] -= rand(0,1)
  351. if pain['eyebrows'] > 0:pain['eyebrows'] -= rand(0,1)
  352. if pain['eyes'] > 0:pain['eyes'] -= rand(0,1)
  353. if pain['cheeks'] > 0:pain['cheeks'] -= rand(0,1)
  354. if pain['nose'] > 0:pain['nose'] -= rand(0,1)
  355. if pain['mouth'] > 0:pain['mouth'] -= rand(0,1)
  356. if pain['lips'] > 0:pain['lips'] -= rand(0,1)
  357. if pain['tongue'] > 0:pain['tongue'] -= rand(0,1)
  358. if pain['throat'] > 0:pain['throat'] -= rand(0,1)
  359. if pain['neck'] > 0:pain['neck'] -= rand(0,1)
  360. if pain['back'] > 0:pain['back'] -= rand(0,1)
  361. if pain['asscheeks'] > 0:pain['asscheeks'] -= rand(0,1)
  362. if pain['asshole'] > 0:pain['asshole'] -= rand(0,1)
  363. if pain['hips'] > 0:pain['hips'] -= rand(0,1)
  364. if pain['thighs'] > 0:pain['thighs'] -= rand(0,1)
  365. if pain['legL'] > 0:pain['legL'] -= rand(0,1)
  366. if pain['legR'] > 0:pain['legR'] -= rand(0,1)
  367. if pain['feet'] > 0:pain['feet'] -= rand(0,1)
  368. if pain['toes'] > 0:pain['toes'] -= rand(0,1)
  369. if pain['shoulders'] > 0:pain['shoulders'] -= rand(0,1)
  370. if pain['armL'] > 0:pain['armL'] -= rand(0,1)
  371. if pain['armR'] > 0:pain['armR'] -= rand(0,1)
  372. if pain['hands'] > 0:pain['hands'] -= rand(0,1)
  373. if pain['fingers'] > 0:pain['fingers'] -= rand(0,1)
  374. if pain['chest'] > 0:pain['chest'] -= rand(0,1)
  375. if pain['breasts'] > 0:pain['breasts'] -= rand(0,1)
  376. if pain['nipples'] > 0:pain['nipples'] -= rand(0,1)
  377. if pain['ribs'] > 0:pain['ribs'] -= rand(0,1)
  378. if pain['tummy'] > 0:pain['tummy'] -= rand(0,1)
  379. if pain['pubic'] > 0:pain['pubic'] -= rand(0,1)
  380. if pain['vaginal'] > 0:pain['vaginal'] -= rand(0,1)
  381. if pain['clitoris'] > 0:pain['clitoris'] -= rand(0,1)
  382. if pain['urethra'] > 0:pain['urethra'] -= rand(0,1)
  383. if pain['cervix'] > 0:pain['cervix'] -= rand(0,1)
  384. ! fix for pain going into negatives and "increasing"
  385. if pain['head'] < 0:pain['head'] = 0
  386. if pain['hair'] < 0:pain['hair'] = 0
  387. if pain['ears'] < 0:pain['ears'] = 0
  388. if pain['eyebrows'] < 0:pain['eyebrows'] = 0
  389. if pain['eyes'] < 0:pain['eyes'] = 0
  390. if pain['cheeks'] < 0:pain['cheeks'] = 0
  391. if pain['nose'] < 0:pain['nose'] = 0
  392. if pain['mouth'] < 0:pain['mouth'] = 0
  393. if pain['lips'] < 0:pain['lips'] = 0
  394. if pain['tongue'] < 0:pain['tongue'] = 0
  395. if pain['throat'] < 0:pain['throat'] = 0
  396. if pain['neck'] < 0:pain['neck'] = 0
  397. if pain['back'] < 0:pain['back'] = 0
  398. if pain['asscheeks'] < 0:pain['asscheeks'] = 0
  399. if pain['asshole'] < 0:pain['asshole'] = 0
  400. if pain['hips'] < 0:pain['hips'] = 0
  401. if pain['thighs'] < 0:pain['thighs'] = 0
  402. if pain['legL'] < 0:pain['legL'] = 0
  403. if pain['legR'] < 0:pain['legR'] = 0
  404. if pain['feet'] < 0:pain['feet'] = 0
  405. if pain['toes'] < 0:pain['toes'] = 0
  406. if pain['shoulders'] < 0:pain['shoulders'] = 0
  407. if pain['armL'] < 0:pain['armL'] = 0
  408. if pain['armR'] < 0:pain['armR'] = 0
  409. if pain['hands'] < 0:pain['hands'] = 0
  410. if pain['fingers'] < 0:pain['fingers'] = 0
  411. if pain['chest'] < 0:pain['chest'] = 0
  412. if pain['breasts'] < 0:pain['breasts'] = 0
  413. if pain['nipples'] < 0:pain['nipples'] = 0
  414. if pain['ribs'] < 0:pain['ribs'] = 0
  415. if pain['tummy'] < 0:pain['tummy'] = 0
  416. if pain['pubic'] < 0:pain['pubic'] = 0
  417. if pain['vaginal'] < 0:pain['vaginal'] = 0
  418. if pain['clitoris'] < 0:pain['clitoris'] = 0
  419. if pain['urethra'] < 0:pain['urethra'] = 0
  420. if pain['cervix'] < 0:pain['cervix'] = 0
  421. if aphrodisiac_timer >= 1:
  422. if pcs_horny < 80:
  423. pcs_horny = 80
  424. else
  425. pcs_horny += 10
  426. end
  427. aphrodisiac_timer -= 1
  428. end
  429. if tanga = 1 and clit_size >= 25:pcs_horny += 20
  430. if insleep = 0:
  431. pcs_sweat += rand(0,1)
  432. if temper >= 20: pcs_sweat += rand(0,1)
  433. end
  434. ! vovan edition, from 1.2.5
  435. if clearclothes > 0: clearclothes -= 1
  436. if hantersAndreisex > 0: hantersAndreisex -= 1
  437. if hantersSergeisex > 0: hantersSergeisex -= 1
  438. if hantersIgorsex > 0: hantersIgorsex -= 1
  439. if hantslutsex > 0: hantslutsex -= 1
  440. if mira_go_blok > 0: mira_go_blok -= 1
  441. if mira_no_home > 0: mira_no_home -= 1
  442. gs 'outdoors', 'weather'
  443. if minut >= 60:jump 'loopmin'
  444. end
  445. if hour >= 24: gs 'cikl'
  446. if minut < 10:
  447. $nilmin = '0'
  448. else
  449. $nilmin = ''
  450. end
  451. if kid > 0:
  452. i = arrsize('yearkid')
  453. :LoopKidAgeCounter
  454. if i >= 0:
  455. if yearkid[i] = year + 1 and monthkid[i] = month and daykid[i] = day: msg'It is <<$kidname[i]>>''s birthday today.'
  456. i -= 1
  457. jump 'LoopKidAgeCounter'
  458. end
  459. end
  460. if pcs_nerd > 0:
  461. if lastreadday = daystart:
  462. !!<font color="green">You are completely healthy shine and a healthy glow.</font>
  463. pcs_mood = 100
  464. SbrosNerdism = 0
  465. $mudnerd = '<font color="green">You are lost in a fantasy after reading a book.</font>'
  466. end
  467. if lastreadday + 1 = daystart:
  468. SbrosNerdism = 0
  469. $mudnerd = '<font color="black">You are a little bored and want to plunge into a book.</font>'
  470. end
  471. if lastreadday + 2 = daystart:
  472. SbrosNerdism = 0
  473. if pcs_mood > 50:pcs_mood -= 10
  474. $mudnerd = '<font color="red">You really want to read something.</font>'
  475. end
  476. if lastreadday + 3 <= daystart:
  477. if pcs_mood > 10:pcs_mood -= 10
  478. SbrosNerdism = 1
  479. $mudnerd = '<font color="red"><b>You have an incredibly strong desire to read!!!</b></font>'
  480. end
  481. else
  482. SbrosNerdism = 0
  483. $mudnerd = ''
  484. end
  485. if bimbolevel > 0:
  486. if bimbowithdrawal = 0:
  487. $bimbostatus = '<font color = #FF1493>You''re, like, super hawt today.</font>'
  488. elseif bimbowithdrawal = 1:
  489. $bimbostatus = '<font color="green">You feel, like, kind of lame today.</font>'
  490. elseif bimbowithdrawal < 4:
  491. $bimbostatus = '<font color="black">You feel, like, totally lame today.</font>'
  492. elseif bimbowithdrawal < 6:
  493. if pcs_mood > 50: pcs_mood -= 10
  494. $bimbostatus = '<font color="red">You really feel, like, awful today.</font>'
  495. elseif bimbowithdrawal >= 6:
  496. if pcs_mood > 10: pcs_mood -= 10
  497. $bimbostatus= '<font color="red"><b>You feel that, like, horrible today!</b></font>'
  498. end
  499. if bimbowithdrawal > 30:
  500. bimbowithdrawal = 0
  501. bimbo = 0
  502. bimbolevel = 0
  503. $stat_msg += '<BR>You suddenly feel as if your head is clear, instead of filled with pink thoughts.'
  504. end
  505. else
  506. bimbowithdrawal = 0
  507. $bimbostatus = ''
  508. end
  509. !
  510. ! WD: Triggers every 15 minutes if not sleeping
  511. ! Update to remove long iterations on loading saves from previous versions
  512. ! Do Nothing if sleeping, invalid Trig15Minute value or more than 6 hours 16 minute pass
  513. if InSleep ! 0 or Trig15Minute > totminut or (totminut - Trig15Minute) >= 376:
  514. set Trig15Minute = totminut
  515. ! More than 15 minutes since last check
  516. else
  517. if (totminut - Trig15Minute) >= 15:
  518. ! begin Loop
  519. :Trig15MinuteLoop
  520. ! Horny Actions
  521. if pcs_horny > 100:
  522. set Trig15Minute = totminut
  523. else
  524. set Trig15Minute += 15
  525. ! WD: Fix vibrator arousal to trigger every 15 minutes, moved from 'time' location
  526. if vibratorin = 1:pcs_horny += rand(1, 5)
  527. ! WD: Fixed Piecing arousal to trigger every 15 minutes, instead of once per day
  528. if pcs_horny < 70:
  529. hornystat = 0
  530. if pirsF = 1:hornystat += 1
  531. if pirsG = 1:hornystat += 1
  532. if pirsGL = 1:hornystat += 1
  533. hornyStat = hornystat * 4
  534. if pirsA = 1:hornystat += 1
  535. if pirsB = 1:hornystat += 1
  536. if pirsC = 1:hornystat += 1
  537. if pirsD = 1:hornystat += 1
  538. if pirsE = 1:hornystat += 1
  539. if pirsN = 1:hornystat += 1
  540. set pcs_horny += hornyStat / 4 + rand(1,4) <= hornyStat mod 4 & ! Apply 1/4 of value on average
  541. end
  542. ! WD: Clothing
  543. if CloStyle = 4 and pcs_horny < 70:set pcs_horny += rand(0, 2)
  544. if (PCloSkirt > 5 or PCloPants > 5) and pcs_horny < 50:set pcs_horny += rand(0, 1)
  545. if PCloTopCut = 4 and pcs_horny < 50:set pcs_horny += rand(0, 1)
  546. end
  547. !!SECTION: Bimbo (15 minute interval update checks)
  548. if bimbolevel = 2:
  549. if pcs_mood < 100:pcs_mood += ((pcs_mood / 100) * (rand(0,1)))
  550. if pcs_horny < 25:pcs_horny = 25
  551. if pcs_horny < 100:pcs_horny += 1
  552. end
  553. if bimbolevel = 3:
  554. if (pcs_mood < 100):pcs_mood += ((pcs_mood / 100) * (rand(0,2)))
  555. if pcs_horny < 50:pcs_horny = 50
  556. if pcs_horny < 100:pcs_horny += 2
  557. end
  558. !! This is the Succubus non-direct injection (pun intented) sex to sexnutrition and the sexnutrition conversion handling
  559. if succubusflag = 1:
  560. if pcs_horny < 50: pcs_horny = 50
  561. if pcs_horny < 100: pcs_horny += succublvl
  562. if succhungry > 0:
  563. pcs_energy -= succhungry * succublvl
  564. pcs_sleep -= succhungry * succublvl
  565. end
  566. cumres_idx = arrpos('sparrloc',12)
  567. if cumres_idx >= 0 and sparrvol[cumres_idx] > 0:sexnutrition += 4 & gs 'cum_cleanup', 'cleanloc', 12
  568. cumres_idx = arrpos('sparrloc',0)
  569. if cumres_idx >= 0 and cumsumvag > 0:sexnutrition += cumsumvag * 4 & gs 'cum_cleanup', 'cleanloc', 0
  570. if cumres_idx >= 0 and cumsumass > 0:sexnutrition += cumsumass * 4 & gs 'cum_cleanup', 'cleanloc', 3
  571. if arrsize('sparrvol') > 0:
  572. suctempi = -1
  573. :SuccAbsorbLoop
  574. suctempi += 1
  575. if suctempi <= 1 or suctempi = 4 or suctempi >= 8:
  576. if suctempi = 12: jump 'SuccAbsorbLoop'
  577. suctemparr = arrpos('sparrloc',suctempi)
  578. if suctemparr >= 0 and sparrloc[suctemparr] = suctempi and sparrvol[suctemparr] > 0:
  579. sexnutrition += succublvl * 5
  580. cumsumbod -= sparrvol[suctemparr]
  581. succubxp += 2
  582. sucabscum = 1
  583. gs 'cum_cleanup', 'cleandeposit', suctemparr
  584. cumloc[suctempi] = 0
  585. spdirty = 0
  586. spdirtyn = 0
  587. spdirtyv = 0
  588. spdirtyf = 0
  589. !! debug code $stat_msg += '<BR>Absorb ext <<sexnutrition>>'
  590. end
  591. end
  592. if suctempi < 17:jump 'SuccAbsorbLoop'
  593. end
  594. if suclezsex < lesbian:
  595. sexnutrition += succublvl * 20
  596. suclezsex = lesbian
  597. succubxp += 3
  598. sucabslez = 1
  599. end
  600. if sexnutrition > 0:
  601. if sucskill >= 3 and succublvl >= 2: sexnutrition += (sexnutrition * 2) / 10
  602. if sucabslez = 1 and sucabscum = 1:
  603. $sucabs1 = 'absorbed energy from the woman you had sex with'
  604. $sucabs2 = ' and you '
  605. $sucabs3 = 'absorb the semen in your body'
  606. elseif sucabscum = 1:
  607. $sucabs3 = 'absorb the semen in your body'
  608. elseif sucabslez = 1:
  609. $sucabs1 = 'absorbed energy from the woman you had sex with'
  610. else
  611. !!Debug code
  612. $stat_msg += '<BR>SOMETHING HAPPENED!'
  613. end
  614. $stat_msg += '<BR>You <<$sucabs1>><<$sucabs2>><<$sucabs3>>, gaining nourishment.'
  615. sucabslez = 0 & sucabscum = 0
  616. $sucabs1 = '' & $sucabs2 = '' & $sucabs3 = ''
  617. if (pcs_mood < 100): pcs_mood += ((pcs_mood / 100) * 5)
  618. if pcs_energy > 100: entemp = (pcs_energy - 100)
  619. if sucexcess < 0 and sexnutrition > 20 and pcs_energy > 30:
  620. if sexnutrition - 20 >= (0 - sucexcess) * 2:
  621. sexnutrition += sucexcess * 2
  622. sucexcess = 0
  623. else
  624. sucexcess += (sexnutrition - 20) / 2
  625. sexnutrition = 20
  626. end
  627. end
  628. pcs_energy += sexnutrition / 2
  629. pcs_sleep += sexnutrition / 20
  630. if succhungry > 0: succhungry = 0
  631. sexnutrition = 0
  632. if pcs_energy > 100: sucexcess += (pcs_energy - entemp - 100) & pcs_energy = 100 + entemp & killvar 'entemp'
  633. end
  634. end
  635. !! safeguards to prevent bimbolevel from going above or below its intended limits
  636. if bimbolevel > 3: bimbolevel = 3
  637. if bimbolevel < 0: bimbolevel = 0
  638. ! do loop
  639. if (totminut - Trig15Minute) >= 15:jump 'Trig15MinuteLoop'
  640. end
  641. end
  642. !!!!!!!!!!!!!
  643. !!!ENERGY!!!
  644. !!!!!!!!!!!!!
  645. if succubusflag = 1:
  646. if pcs_energy < 0:
  647. if fat >= 1:
  648. fat -= 2
  649. pcs_energy += 8 + succublvl
  650. else
  651. pcs_energy += 8 + succublvl
  652. sucexcess -= (8 + succublvl) * (6 - succublvl)
  653. end
  654. end
  655. if pcs_health < 0:
  656. pcs_health = 10
  657. sucexcess -= 25 * (9 - succublvl)
  658. end
  659. if pcs_willpwr < 0:
  660. pcs_willpwr = 10
  661. sucexcess -= 20 * (9 - succublvl)
  662. sucpowzeroed = 4
  663. end
  664. end
  665. if pcs_sleep < 0:
  666. pcs_sleep = 0
  667. pcs_mood -= 5
  668. end
  669. if pcs_energy < 0:
  670. pcs_energy = 0
  671. pcs_health -= 5
  672. if fat = 0 and pcs_stren + pcs_vital > 0:
  673. stren_deg -= 1
  674. vital_deg -= 1
  675. pcs_energy += 8
  676. elseif fat = 0 and pcs_stren + pcs_vital <= 0:
  677. if Enable_nogameover = 0 :
  678. over = 3
  679. gt'gameover'
  680. exit
  681. else
  682. $stat_msg += '<BR><font color=red><B>You starved to death, but Cheat Mode keeps you Alive.</B></font>'
  683. fat = 1
  684. end
  685. elseif fat > 0:
  686. fat -= 1
  687. pcs_energy += 8
  688. end
  689. end
  690. if pcs_mood <= 0:
  691. pcs_mood = 1
  692. pcs_health -= 5
  693. pcs_willpwr -= 5
  694. end
  695. if pcs_health < 0:
  696. if Enable_nogameover = 0 :
  697. over = 1
  698. gt'gameover'
  699. exit & !nogameover by illume
  700. else
  701. $stat_msg += '<BR><font color=red><B>You died from injuries, but Cheat Mode keeps you Alive.</B></font>'
  702. pcs_health = 0
  703. end
  704. end
  705. if pcs_willpwr <= 0 :
  706. !this will set willpower to 0 correctly; then check mana =1 for insane-gameover(pcs_willpwr=0&mana=1).
  707. if pcs_mood <= 1:
  708. if Enable_nogameover = 0 :
  709. over = 2
  710. gt'gameover'
  711. exit & !nogameover by illume
  712. else
  713. $stat_msg += '<BR><font color=red><B>You are insane, but Cheat Mode keeps you Alive.</B></font>'
  714. !pcs_mood already checked for >=1 in line 1113 if pcs_mood <= 0, no need to set another one
  715. end
  716. end
  717. pcs_willpwr = 0
  718. end
  719. !!cars-increase/depressed mood after orgasm/rape
  720. if rape > 0 and rape ! rape_count and orgasm = orgasm_count:
  721. pcs_mood = 10
  722. rape_count = rape
  723. elseif orgasm > 0 and orgasm ! orgasm_count:
  724. pcs_mood = 100
  725. orgasm_count = orgasm
  726. elseif rape > 0 and rape ! rape_count and orgasm > 0 and orgasm ! orgasm_count:
  727. pcs_mood = 100
  728. orgasm_count = orgasm
  729. rape_count = rape
  730. end
  731. gs 'body'
  732. !!!!!!!!!!!!!
  733. if pcs_health >= healthmax:
  734. $pcs_health = '<font color="green">You are very healthy.</font>'
  735. elseif pcs_health >= healthmax * 75 / 100:
  736. $pcs_health = '<font color="blue">You are healthy.</font>'
  737. elseif pcs_health >= healthmax * 50 / 100:
  738. $pcs_health = '<font color="brown">You are not healthy.</font>'
  739. elseif pcs_health >= healthmax * 25 / 100:
  740. $pcs_health = '<font color="red">You are sick.</font>'
  741. else
  742. $pcs_health = '<font color="red">You are on the verge of death.</font>'
  743. end
  744. if pcs_willpwr >= willpowermax:
  745. $pcs_willpwr = '<font color="green">Your mind is clear.</font>'
  746. elseif pcs_willpwr >= willpowermax * 75 / 100:
  747. $pcs_willpwr = '<font color="blue">You are mostly clear of mind.</font>'
  748. elseif pcs_willpwr >= willpowermax * 50 / 100:
  749. $pcs_willpwr = '<font color="brown">You are depressed.</font>'
  750. elseif pcs_willpwr >= willpowermax * 25 / 100:
  751. $pcs_willpwr = '<font color="red">You have depression.</font>'
  752. else
  753. $pcs_willpwr = '<font color="red">You are on the verge of madness.</font>'
  754. end
  755. if pcs_mood >= 100:
  756. $pcs_mood = '<font color="green">You are in a good mood.</font>'
  757. elseif pcs_mood >= 75:
  758. $pcs_mood = '<font color="blue">You have a normal mood.</font>'
  759. elseif pcs_mood >= 50:
  760. $pcs_mood = '<font color="brown">You are in a bad mood.</font>'
  761. elseif pcs_mood >= 25:
  762. $pcs_mood = '<font color="red">You are in a terrible mood.</font>'
  763. else
  764. $pcs_mood = '<font color="red">Your mood is stuck in the gutter.</font>'
  765. end
  766. if pcs_energy >= 80:
  767. $pcs_energy = '<font color="green">You couldn''t eat one more bite.</font>'
  768. elseif pcs_energy >= 40:
  769. $pcs_energy = '<font color="blue">You''re not really hungry, but a small snack would be very welcome.</font>'
  770. elseif pcs_energy >= 8:
  771. $pcs_energy = '<font color="brown">You are hungry.</font>'
  772. else
  773. $pcs_energy = '<font color="red">You are very hungry.</font>'
  774. end
  775. if pcs_sleep >= 80:
  776. $pcs_sleep = '<font color="green">You are well rested.</font>'
  777. elseif pcs_sleep >= 40:
  778. $pcs_sleep = '<font color="blue">You are slightly tired.</font>'
  779. elseif pcs_sleep >= 8:
  780. $pcs_sleep = '<font color="brown">You are tired.</font>'
  781. else
  782. $pcs_sleep = '<font color="red">You are very tired.</font>'
  783. end
  784. !!Mood
  785. maxmood = 100 - moodmodifier
  786. if pcs_mood > 100:
  787. pcs_mood = 100
  788. $pcs_mood = 'You feel buoyed.'
  789. elseif pcs_mood < 0:
  790. pcs_mood = 0
  791. !! Asylum: basically this means clinically insane, like court-ordered committed, saliva dripping, blubbering... Ordinarily irreversible at this stage meaning Game Over, but cheat can help
  792. end
  793. if workFabrika = 1 and week => 1 and week <= 5 and hour > 8 and age => 16 and age < 18 and FabrikaProgulDay ! day or workFabrika = 1 and week => 1 and week <= 5 and hour > 16 and age > 18 and FabrikaProgulDay ! day:
  794. !absence from work in a factory in Pavlovsk
  795. FabrikaProgul += 1
  796. FabrikaProgulDay = day
  797. end
  798. if hotelroom > 0:
  799. if hotelroom1day = daystart: $stat_msg += '<BR>You have 1 night left on your hotel booking.'
  800. if hotelroom1day < daystart and hour <= 11: $stat_msg += '<BR>Your hotel booking has expired and you cannot return to your room after 11:00'
  801. if hotelroom1day < daystart and hour > 11: hotelroom = 0
  802. end
  803. if hour >= 8 and hour < 14 and week < 6 and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0 and schoolProgulDay ! daystart:
  804. !!absence from school
  805. schoolprogul += 1
  806. schoolProgulDay = daystart
  807. end
  808. if insleep = 0: gs 'stat_display'
  809. if cumcondslip <= 0: cumcondslip_deep = 0
  810. --- stat ---------------------------------