stat 26 KB

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