stat.qsrc 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315
  1. # stat
  2. !!This is error catching to prevent stat from running too early
  3. if opPRE > 0: exit
  4. if Enable_Android = 0:
  5. clr
  6. !only clear status and renew object in non-Android mode
  7. gs 'obj_din', 'old'
  8. end
  9. if daystart_start < 100:
  10. 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>?'
  11. exit
  12. end
  13. view
  14. rand1 = rand(0,100)
  15. $stat_msg=''
  16. if $start_type[1] ! 'nomagic': magik_exp = orgasm
  17. if insleep = 0: gs 'stat_sklattrib'
  18. if cheatHealth = 1: dynamic $cheatmenu['std_cure']
  19. if stat['vaginal'] = 0 and stat['vaginal_fist'] = 0 and stat['vaginal_dildo'] = 0 and stat['vaginal_strap'] = 0:
  20. stat['think_virgin'] = 1
  21. else
  22. stat['think_virgin'] = 0
  23. end
  24. if (analplay >= 2 and pcs_ass <= 10) or (analplay >= 4 and pcs_ass <= 15) or (analplay >= 8 and pcs_ass <= 20): pcs_ass += 1 & analplay = 0
  25. !!This is a temporary stop-gap measure for the accomadation skill and will be removed
  26. if succubusflag = 1 and sucskill >= 4:
  27. if pain['throat'] > 0: pain['throat'] = 0 & sucexcess -= 1
  28. if pain['asshole'] > 0: pain['asshole'] = 0 & sucexcess -= 1
  29. if pain['vaginal'] > 0: pain['vaginal'] = 0 & sucexcess -= 1
  30. if vgape > 0: vgape = 0 & vgapetime = 0 & sucexcess -= 1
  31. if agape > 0: agape = 0 & agapetime = 0 & sucexcess -= 1
  32. end
  33. !!mouth cleaning for drinks
  34. if pcs_hydra > hydra_check:
  35. cumspclnt = 2
  36. gs 'cum_cleanup'
  37. end
  38. !!cosmetic tattoo
  39. if cosmetic_tattoo > 0:
  40. if pcs_makeup ! (cosmetic_tattoo+1): pcs_makeup = (cosmetic_tattoo+1)
  41. end
  42. !!!CHEATS!!!
  43. if cheatWork = 1:work = 0
  44. if cheatWorkKiskis = 1:young_shop_miss = 0
  45. if cheatHapri = 1:pcs_hairbsh = 1
  46. ! Moved from cheats to settings under 'Enema realism'
  47. if cheatKlisma = 0:klismaday = daystart & klismaday1 = 1
  48. if cheatNomakeup = 1 and cosmetic_tattoo = 0:
  49. if pcs_makeup = 0: pcs_makeup = 1
  50. end
  51. if cheatNoSweat = 1 and pcs_sweat > 0: pcs_sweat = 0
  52. if cheatNoEat = 1:
  53. if pcs_energy < 60: pcs_energy = 60
  54. end
  55. if cheatShaveLegs = 1:
  56. if pcs_leghair > 0: pcs_leghair = 0
  57. end
  58. if cheatNoDrink = 1:
  59. if pcs_hydra < 60: pcs_hydra = 60
  60. end
  61. if cheatNoSleep = 1:
  62. if pcs_sleep < 35: pcs_sleep = 35
  63. end
  64. if cheatBandit = 1 and npc_horny['A66'] < 19: npc_horny['A66'] = 19
  65. if alko > 0 and frost > 0:frost = 0
  66. if StrongNarkota >= 20:
  67. if alko > 0:alko = 0
  68. end
  69. if lernSkill >= 8: gs 'exp_gain', 'intel', 1 & lernSkill = 0
  70. if lern >= 10: gs 'exp_gain', 'intel', 1 & lern = 0
  71. !! Katja learnign about you sexual experience from other sources because you are a slut.
  72. if fame['pav_slut'] >= 150 and stat['bj'] > 0 and katjaQW['knows_BJ'] ! 1: katjaQW['knows_BJ'] = 1
  73. if fame['pav_slut'] >= 250 or preg > 0 and stat['vaginal'] > 0 and katjaQW['knows_sex'] ! 1: katjaQW['knows_sex'] = 1
  74. shameless = guy + stat['bj'] + stat['anal'] + stat['hj'] + ((slutty + gang) * 2)
  75. moneySUM = money + karta + stolmoney
  76. cumSUM = cumsumbod/40
  77. if husbizvradd > 5:izvratH = 1
  78. if husbharmin > 10:harakHusb = 0
  79. if husband = 0:
  80. husbizvradd = 0
  81. husbharmin = 0
  82. husbandMark = 0
  83. houseslut = 0
  84. end
  85. if SNarkvnesh = 0:SNarkvnesh = 1
  86. if SNarkTimes >= SNarkvnesh * 25:
  87. SNarkvnesh += 1
  88. vidage += 1
  89. end
  90. if gopota >= 20 and gnewQW = 1:gnewQW = 2
  91. if workDisk = 4 and week > 5:workDisk = 1
  92. if workDisk = 3 and week > 5:workDiskAtkPlayer = 1
  93. if bfa < 0: bfa = 0
  94. if pcs_vag > 36: pcs_vag = 36
  95. if pcs_throat > 36: pcs_throat = 36
  96. if pcs_ass > 36: pcs_ass = 36
  97. if NarkImmune = 1:
  98. if narkoman ! 0:narkoman = 0
  99. elseif nark >= 30 and narkoman = 0 and NarkImmune = 0:
  100. narkoman = 1
  101. elseif nark = 0 and narkoman = 1:
  102. narkoman = 0
  103. end
  104. if cheatSlut = 1 or succubusflag = 1:
  105. !!Succubus cannot get pregnant
  106. mesec = 0
  107. FocH = 0
  108. EggRH = 0
  109. Ovulate = 0
  110. fertegg = 0
  111. UnfertEgg = 0
  112. PregChem = 0
  113. preg = 0
  114. LutH = 0
  115. RecovH = 0
  116. babyembryo = 0
  117. cycle = 1
  118. end
  119. if succubusflag = 1 and succublvl > 2 and rape > rape_count:
  120. !!High Level Succubus cannot get raped
  121. orgasm += 1
  122. rape = rape_count
  123. pcs_mood = 100
  124. end
  125. if pcs_horny < 50 and cheatHorny = 1: pcs_horny = 50
  126. !!These will be made obsolete with the combat system overhaul
  127. boxing = pcs_jab + pcs_punch + pcs_kick + pcs_def
  128. if boxing > 100: boxing = 100
  129. manamax = (pcs_intel * pcs_magik) + pcs_magik * 100 + pcs_vital * 10 + rikudo
  130. !! Set the massage displayed each time the magik attribute is increased.
  131. if $start_type[1] ! 'nomagic':
  132. if pcs_magik > magikhigh:
  133. magikhigh = pcs_magik
  134. rikudo += pcs_magik * 100
  135. $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>'
  136. !! This will be replaced when a more advanced physical system is made
  137. if (pcs_magik mod 2 ! 0) and pcs_eyesize < 2: pcs_eyesize += 1
  138. if (pcs_magik mod 2 = 0) and pcs_lashes < 2: pcs_lashes += 1
  139. end
  140. else
  141. !!This is for error catching but also broke manamax calc which is why its now above this
  142. killvar 'pcs_magik'
  143. killvar 'rikudo'
  144. killvar 'pcs_splcstng'
  145. end
  146. if pcs_dom < 0: SUB = SUB - pcs_dom & pcs_dom = 0
  147. if SUB < 0: pcs_dom = pcs_dom - SUB & SUB = 0
  148. if pcs_dom > 100: pcs_dom = 100
  149. if SUB > 100: SUB = 100
  150. if SUB >= pcs_dom and pcs_dom > 0:SUB = SUB - pcs_dom & pcs_dom = 0
  151. if pcs_dom >= SUB and SUB > 0:pcs_dom = pcs_dom - SUB & SUB = 0
  152. if pcs_horny < 0: pcs_horny = 0
  153. if pcs_inhib < 0:
  154. pcs_inhib = 0
  155. elseif pcs_inhib > 100:
  156. pcs_inhib = 100
  157. end
  158. healthmax = (pcs_vital * 10 + pcs_stren * 5)
  159. stammax = 5 * (2 * pcs_vital + pcs_agil + pcs_stren) / 2
  160. speed = (2 * (pcs_stren + pcs_agil) + pcs_vital) / 5
  161. if healthmax < 1: healthmax = 1
  162. if willpowermax < 50: willpowermax = 50
  163. if stammax < 1: stammax = 1
  164. if manamax < 1: manamax = 1
  165. !pre-calc max value for later display
  166. if fairycurse >= daystart and fairyshoo > 0: pcs_horny = 90
  167. if min_arousal > pcs_horny: pcs_horny = min_arousal
  168. if Enable_lockhorny > 0 and pcs_horny < Enable_lockhorny - 1: pcs_horny = Enable_lockhorny - 1
  169. if pcs_horny < 0: pcs_horny = 0
  170. if pcs_health > healthmax: pcs_health = healthmax
  171. if pcs_willpwr > willpowermax: pcs_willpwr = willpowermax
  172. if pcs_stam > stammax: pcs_stam = stammax
  173. if pcs_mana > manamax: pcs_mana = manamax
  174. if pcs_mood > 100: pcs_mood = 100
  175. !!Add mood_trauma to events to lower max mood for a period of time
  176. if mood_trauma > 0:
  177. mood_max_calc = 100 - (mood_trauma * 5)
  178. mood_max = max(10, mood_max_calc)
  179. if pcs_mood > mood_max: pcs_mood = mood_max
  180. killvar 'mood_max_calc'
  181. elseif mood_trauma < 0:
  182. mood_trauma = 0
  183. end
  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 cumloc[0] = 1 or cumloc[3] = 1 or hypnoAddict = 0:
  190. killvar 'missCum'
  191. elseif missCum > timeTresh:
  192. if pcs_horny < 90: pcs_horny = 90
  193. if preziktype = 0: prezikcount = prezik
  194. if preziktype = 2: preziksabo = prezik
  195. prezik = 0
  196. preziktype = 1
  197. end
  198. !!!!!!!!!!!
  199. !!!TIME!!!
  200. !!!!!!!!!!!
  201. if nminut ! minut or nhour ! hour:
  202. ! Zero totminut will be at New Years Eve of 2015
  203. prevtotmin = totminut
  204. ! Years since 2015 in days
  205. totminut = (year - 2015) * 365
  206. ! Days this year
  207. if month > 1 : totminut += 31 & ! Jan
  208. if month > 2 : totminut += 28 & ! Feb
  209. if month > 3 : totminut += 31 & ! Mar
  210. if month > 4 : totminut += 30 & ! Apr
  211. if month > 5 : totminut += 31 & ! May
  212. if month > 6 : totminut += 30 & ! Jun
  213. if month > 7 : totminut += 31 & ! Jul
  214. if month > 8 : totminut += 31 & ! Aug
  215. if month > 9 : totminut += 30 & ! Sep
  216. if month > 10: totminut += 31 & ! Oct
  217. if month > 11: totminut += 30 & ! Nov
  218. if month > 12: totminut += 31 & ! Dec
  219. if month > 13: totminut += 31 & ! Jan rollover sanity check
  220. totminut += day
  221. ! Hours
  222. totminut = totminut * 24 + hour
  223. ! Minutes
  224. totminut = totminut * 60 + minut + sec / 60
  225. nminut = minut
  226. nhour = hour
  227. end
  228. ! Execute time based spells
  229. gs 'spellTimer', prevtotmin, totminut
  230. ! Determine Incoming Telephone Calls
  231. gs 'telefon', 'IncomingCheck', prevtotmin, totminut
  232. !! deodorant
  233. if deodorant_on = 1 and totminut > deodorant_time: gs 'sweat', 'remove_deo'
  234. !!painkiller
  235. if pain['killer'] > 0:
  236. if pain['killer'] = 1: pain_timer = totminut - 2
  237. pain['killer'] = totminut - pain_timer
  238. if pain['killer'] >= 243: pain['killer'] = 0
  239. end
  240. ! WD: 'daystart' Should start at 1
  241. if daystart = 0: daystart = 1
  242. !!Gaping of vagina recovery time
  243. !! [1] stored gape value
  244. !! [3] timer
  245. !! [4] time between each reduction in gape
  246. if agape[4] = 0: agape[4] = 10
  247. if vgape[4] = 0: vgape[4] = 10
  248. if vgape > vgape[1]:
  249. vgape[3] = totminut
  250. vgape[1] = vgape
  251. elseif vgape > 0:
  252. if (totminut - vgape[3])/vgape[4] >= 1: vgape -= 1
  253. vgape[1] = vgape
  254. else
  255. vgape[3] = 0
  256. end
  257. !!Gaping of anus recovery time
  258. if agape > agape[1]:
  259. agape[3] = totminut
  260. agape[1] = agape
  261. elseif agape > 0:
  262. if (totminut - agape[3])/agape[4] >= 1: agape -= 1
  263. if agape = 0: agape[3] = 0
  264. agape[1] = agape
  265. else
  266. agape[3] = 0
  267. end
  268. !!Recovery from spanking - will be superseded by pain system
  269. if spanked > 0:
  270. if spankedtime = 0: spankedtime = totminut
  271. if (spankedtime + 2040) <= totminut:spanked -= 1 & spankedtime = 0
  272. elseif spankedtime ! 0:
  273. killvar 'spankedtime'
  274. end
  275. !! Orgasmic cooldown
  276. if orgasmic ! 0:
  277. if orgasmic < totminut - 30: orgasmic = 0 & pcs_horny = 0
  278. end
  279. !!!!!!!!!!!!!!! Heels pain and skill gain
  280. !! This compares the player heels skill to the skill required to wear any heels the player
  281. !! currently wears. If the skill needed is greater than the player currently possesses,
  282. !! the pain in the feet increases and the player earns heels skill. If the skill required
  283. !! is lower, the player might still get experience, depending on how much greater the
  284. !! player skill is.
  285. !! Variables
  286. !! pcs_heels is the main heels skill
  287. !! heels_exp is used when the player gains experience using heels
  288. !! heels_deg is used when the player neglects their heels
  289. !! PShoHeels tracks the height of the heels currently worn
  290. !! heelsminut tracks when the heels skill was last changed
  291. !! heelsRequiredskill substitutes PShoHeels to allow comparison with pcs_heels
  292. !! heelsSkilldiff tracks difference between the players current and skill required by heels
  293. !! Required skill for various heel sizes
  294. !! 1 flats - 0
  295. !! 2 low heel - 5
  296. !! 3 Mid heel - 15
  297. !! 4 High heel - 25
  298. !! 5 ultra high heel - 40
  299. !! 6 fetish heel - 60
  300. !! Only run if at least X minutes have passed since last time
  301. if totminut >= heelsminut + 120:
  302. heelsminut = totminut
  303. !! Only check experience and pain gain and if the player wears heels, flats give nothing
  304. if PShoHeels > 1:
  305. if PShoHeels = 2:
  306. heelsRequiredskill = 5
  307. elseif PShoHeels = 3:
  308. heelsRequiredskill = 15
  309. elseif PShoHeels = 4:
  310. heelsRequiredskill = 25
  311. elseif PShoHeels = 5:
  312. heelsRequiredskill = 40
  313. elseif PShoHeels = 6:
  314. heelsRequiredskill = 60
  315. end
  316. !! stat is called a lot, there should be a limit to how much exp and pain you can accumulate...
  317. !! If the player skill is below the required skill, give heel_exp and apply ache
  318. if pcs_heels < heelsRequiredskill:
  319. heelsSkilldiff = heelsRequiredskill - pcs_heels
  320. if heelsSkilldiff <= 5:
  321. gs 'exp_gain', 'heels', rand(3,6)
  322. if pain['feet'] < 40: gs 'pain', rand(0,1), 'feet', 'ache'
  323. elseif heelsSkilldiff <= 10:
  324. gs 'exp_gain', 'heels', rand(5,9)
  325. if pain['feet'] < 50: gs 'pain', rand(0,2), 'feet', 'ache'
  326. elseif heelsSkilldiff <= 15:
  327. gs 'exp_gain', 'heels', rand(7,12)
  328. if pain['feet'] < 60: gs 'pain', rand(1,3), 'feet', 'ache'
  329. elseif heelsSkilldiff <= 20:
  330. gs 'exp_gain', 'heels', rand(9,15)
  331. if pain['feet'] < 70: gs 'pain', rand(2,4), 'feet', 'ache'
  332. elseif heelsSkilldiff > 20:
  333. gs 'exp_gain', 'heels', rand(12,20)
  334. if pain['feet'] < 80: gs 'pain', rand(3,5), 'feet', 'ache'
  335. end
  336. !! Player skill is equal to or higher than the required skill
  337. !! Maybe have excessive skill result in no gain, or even a degrading skill?
  338. else
  339. heelsSkilldiff = pcs_heels - heelsRequiredskill
  340. if heelsSkilldiff <= 5:
  341. gs 'exp_gain', 'heels', rand(3,6)
  342. elseif heelsSkilldiff <= 10:
  343. gs 'exp_gain', 'heels', rand(2,4)
  344. elseif heelsSkilldiff <= 15:
  345. gs 'exp_gain', 'heels', rand(1,2)
  346. elseif heelsSkilldiff <= 20:
  347. gs 'exp_gain', 'heels', 0
  348. elseif heelsSkilldiff > 20:
  349. heels_deg -= rand(0,1)
  350. end
  351. end
  352. !! If not wearing heels, degrade heels skill
  353. else
  354. heels_deg -= rand(0,1)
  355. end
  356. end
  357. !!!!!!!!!!!!!!! End heels
  358. if sec >= 60:
  359. :loopsec
  360. minut += 1
  361. sec -= 60
  362. if sec >= 60:jump 'loopsec'
  363. end
  364. !! Hourly Changes
  365. if minut >= 60:
  366. :loopmin
  367. hour += 1
  368. minut -= 60
  369. if SbrosNerdism = 1 and orgasm ! 10:
  370. pcs_nerd = pcs_sprt / 10 - orgasm
  371. elseif sbrosnerdism = 1 and orgasm = 10:
  372. pcs_nerd = pcs_sprt / 9 - orgasm
  373. end
  374. if pcs_nerd < 0:pcs_nerd = 0
  375. if obkvsdam > 0:obkvsdam = rand(2, 5)
  376. if scpopt > 1: scpopt = 0
  377. if insleep = 1:
  378. if amphHigh > 0:
  379. pcs_energy -= (4 / amphetamineBonus + succublvl/2)
  380. pcs_hydra -= (8 / amphetamineBonus + succublvl/2)
  381. else
  382. pcs_energy -= (4 * amphetamineBonus + succublvl/2)
  383. pcs_hydra -= (8 * amphetamineBonus + succublvl/2)
  384. end
  385. pcs_stam += stammax / 10
  386. pcs_sleep -= 4
  387. if alko > 0: alko -= 1
  388. pcs_willpower_feeder += willpowermax*4
  389. pcs_willpwr += pcs_willpower_feeder/100
  390. pcs_willpower_feeder = pcs_willpower_feeder mod 100
  391. else
  392. if amphHigh > 0:
  393. pcs_energy -= (8 / amphetamineBonus + succublvl)
  394. pcs_hydra -= (16 / amphetamineBonus + succublvl)
  395. else
  396. pcs_energy -= (8 * amphetamineBonus + succublvl)
  397. pcs_hydra -= (16 * amphetamineBonus + succublvl)
  398. end
  399. pcs_stam += stammax / 20
  400. pcs_sleep -= 4
  401. if pcs_sleep <= 0: pcs_condition['lack_of_sleep'] += 2
  402. pcs_willpower_feeder += willpowermax*4/3
  403. pcs_willpwr += pcs_willpower_feeder/100
  404. pcs_willpower_feeder = pcs_willpower_feeder mod 100
  405. end
  406. if pcs_willpwr > willpowermax: pcs_willpwr = willpowermax
  407. if pcs_willpwr < 25: will_degrade += 1
  408. if will_degrade >= 5: willpowermax -= 1 & will_degrade = 0
  409. if pcs_willpwr >= 50 and will_degrade > 0: will_degrade -= 1
  410. if pcs_stam > stammax: pcs_stam = stammax
  411. gs 'femcyc'
  412. if Insleep = 0 and period['cramp'] = 0 and placebopart > 0 and LutH > 0 and knowpreg = 0:
  413. period['cramp'] = 1
  414. msg'Your stomach suddenly twinges, muscles tightening with involuntarily contractions, causing you to nearly double over in pain. With a grimace, you realize it''s probably a sign your period is going to start soon.'
  415. elseif mesec > 0:
  416. period['cramp'] = 0
  417. end
  418. !! code to trigger vomitting based on morning sickness, hangovers, or just plain bad luck
  419. if Insleep = 0:
  420. vomit['daily_check'] = 0
  421. end
  422. if Insleep = 1:
  423. if vomit['daily_check'] = 0:
  424. vomit['daily_check'] = 1
  425. if alko > 4:
  426. vomit['hangover'] = 1
  427. elseif pregchem > 600 and pregchem < 2160 and rand(1,4) = 4:
  428. vomit['morning_sick'] = 1
  429. elseif rand(1,100) = 100:
  430. vomit['unlucky'] = 1
  431. end
  432. end
  433. end
  434. if hypnoAddict > 0:dynamic $hypnoAddiction
  435. !!mana regen
  436. pcs_mana += manamax / 20
  437. if alko > 0 and alkoblock = 0:
  438. if alko >= 6:
  439. if pcs_run > 0: run_deg -= 1
  440. if vball_lvl >= 50: vball_deg -= 1
  441. if alko >= 10:
  442. if pcs_stren > 10: stren_deg -= 1
  443. if pcs_vital > 10: vital_deg -= 1
  444. if pcs_intel > 10: intel_deg -= 1
  445. alko -= rand (0,1)
  446. end
  447. end
  448. alko -= rand (0,1)
  449. elseif alko < 0:
  450. alko = 0
  451. end
  452. if shame > 0:shame -= 1 & pcs_mood -= 5
  453. if smoker >= 20 and NarkImmune = 0: smokerNeed += 1
  454. if smokerNeed > 10 and InSleep = 0 and pcs_mood > 20 and NarkImmune = 0: pcs_mood -= pcs_mood / 10
  455. if smokerNeed > 300:smokerNeed = 0 & smoker = 0
  456. if StrongNarkota > 0:pcs_mood -= (40 / StrongNarkota) & StrongNarkota -= 1
  457. if amphWithdrawl >= 5: amphWithdrawl += 1 & pcs_mood -= (amphWithdrawl / 5)
  458. if amphHigh > 0:
  459. if amphWithdrawl < 2: amphWithdrawl = 2
  460. amphetamineBonus = 3
  461. amphHigh -= 4
  462. pcs_mood += (2 * amphHigh)
  463. elseif amphHigh <= 0 and amphWithdrawl = 2:
  464. if amphIntake > 0:
  465. amphIntake -= 1
  466. else
  467. amphWithdrawl = 0
  468. end
  469. amphHigh = 0
  470. amphetamineBonus = 2
  471. pcs_mood -= pcs_mood / 10
  472. elseif amphIntake > 0:
  473. amphWithdrawl += 1
  474. elseif amphHigh = 0 and amphWithdrawl = 0:
  475. amphetamineBonus = 1
  476. end
  477. if amphWithdrawl > 169: amphWithdrawl = 1 & amphetamineBonus = 1 & amphCount = 0
  478. if SLomka > 0 and pcs_mood > 10:SLomka += 1 & pcs_mood -= pcs_mood / 10
  479. if SLomka > 100 and StrongNarkota <= 0:SLomka = 0 & SNarkTimes = 0
  480. if jointhigh > 0: jointhigh -= 1
  481. if narkoman = 1 and narkday ! daystart:
  482. pcs_health -= 5
  483. if pcs_mood > 40:
  484. pcs_mood -= 40
  485. else
  486. pcs_mood = 5
  487. end
  488. end
  489. if $pantyworntype = 'none' and PCloPants > 0 and PCloPanties = 0 and $clothingworntype ! 'nude' and pcs_traits['commando_lvl'] < 2:
  490. if pcs_traits['commando_lvl'] < 1:
  491. mosol += 2
  492. elseif pcs_traits['commando_lvl'] = 1:
  493. mosol += 1
  494. end
  495. if mosol >= 100: pcs_mood -= 5
  496. if mosol >= 60 and pain['pubic'] < 80: gs 'pain', 1, 'pubic', 'ache'
  497. end
  498. if pcs_energy > 100:
  499. fat += (pcs_energy - 100) / 4
  500. pcs_energy = 100
  501. elseif pcs_energy <= (10 + vitalbuf / 25) and fat > (2 + vitalbuf / 25):
  502. pcs_energy += 6
  503. fat -= 2
  504. end
  505. if pcs_hydra > 200: pcs_hydra = 200
  506. if mosol > 0:
  507. if $pantyworntype ! 'none' or $clothingworntype = 'nude' or PCloPanties = 1:mosol -= rand(0,1)
  508. end
  509. if pcs_lipbalm > 0:pcs_lipbalm -= 1
  510. if sickstage = 1:sick += 1 & sicktimer += 1
  511. if sickstage = 1 and sicktimer >= 80:sicktimer = 0 & sickstage = 2
  512. if sickstage = 2 and sick > 0:sick -= 1
  513. if sickstage = 2 and sick <= 0:sick = 0 & sickstage = 0
  514. if perkice > 0:perkice -= 1
  515. if frost > 0:frost -= 1
  516. if KGOLpers > 0:
  517. if KGHP < KGHPMAX:KGHP += 10
  518. if KGMana < KGManaMax:KGMana += 10
  519. end
  520. !! pain[0] = pain['total'] , pain[1] = pain['damage'] , pain[2] = pain['relief']
  521. i = arrsize('pain')
  522. :statpainloop
  523. if i > 0:
  524. i -= 1
  525. pain[i] -= rand(0,1)
  526. if pain[i] < 0: pain[i] = 0
  527. jump 'statpainloop'
  528. end
  529. !! Panty happiness gain
  530. if pcs_mood < 60 and $pantyworntype = 'cats': pcs_mood += 2
  531. if pcs_mood < 60 and $braworntype = 'cats': pcs_mood += 2
  532. !!Arousal adjustments
  533. if ($pantyworntype = 'exhibitionist' and $braworntype = 'exhibitionist') and pcs_horny < 25:
  534. pcs_horny += 10
  535. elseif pcs_horny < 10 and ($pantyworntype = 'exhibitionist' or $braworntype = 'exhibitionist'):
  536. pcs_horny += 5
  537. end
  538. if aphrodisiac_timer >= 1:
  539. if pcs_horny < 80:
  540. pcs_horny = 80
  541. else
  542. pcs_horny += 10
  543. end
  544. aphrodisiac_timer -= 1
  545. end
  546. if $pantyworntype ! 'none' and clit_size >= 25 and pcs_horny < 60:pcs_horny += 20
  547. if insleep = 0:
  548. gs 'sweat', 'add', rand(0,1)
  549. if temper >= 20: gs 'sweat', 'add', rand(0,1)
  550. end
  551. ! vovan edition, from 1.2.5
  552. if huntersAndreisex > 0: huntersAndreisex -= 1
  553. if huntersSergeisex > 0: huntersSergeisex -= 1
  554. if huntersIgorsex > 0: huntersIgorsex -= 1
  555. if huntslutsex > 0: huntslutsex -= 1
  556. if mira_go_blok > 0: mira_go_blok -= 1
  557. if mira_no_home > 0: mira_no_home -= 1
  558. gs 'traits', 'hourly'
  559. if (hour mod 2) = 0: gs 'outdoors', 'weather'
  560. !! I do not think that this should be here, but I put it here temporaly - rachels
  561. !! generate SMS for nerd games
  562. if rand(0,2) = 0 and hour > 10 and hour < 16 and week = 1 and grupTipe = 3 and nerd_game['invite_day'] < daystart: gs 'nerd_game_night', 'summer_invite_sms', 'Add SMS'
  563. if minut >= 60:jump 'loopmin'
  564. end
  565. !! End of Hourly Changes
  566. if hour >= 24: gs 'cikl'
  567. if minut < 10:
  568. $nilmin = '0'
  569. else
  570. $nilmin = ''
  571. end
  572. if kid > 0:
  573. i = arrsize('yearkid')
  574. :LoopKidAgeCounter
  575. if i >= 0:
  576. if yearkid[i] = year + 1 and monthkid[i] = month and daykid[i] = day: msg'It is <<$kidname[i]>>''s birthday today.'
  577. i -= 1
  578. jump 'LoopKidAgeCounter'
  579. end
  580. end
  581. if pcs_nerd > 0:
  582. if lastreadday = daystart:
  583. !!<font color="green">You are completely healthy shine and a healthy glow.</font>
  584. pcs_mood = 100
  585. SbrosNerdism = 0
  586. $mudnerd = '<font color="green">You are lost in a fantasy after reading a book.</font>'
  587. end
  588. if lastreadday + 1 = daystart:
  589. SbrosNerdism = 0
  590. $mudnerd = '<font color="black">You are a little bored and want to plunge into a book.</font>'
  591. end
  592. if lastreadday + 2 = daystart:
  593. SbrosNerdism = 0
  594. if pcs_mood > 50:pcs_mood -= 10
  595. $mudnerd = '<font color="red">You really want to read something.</font>'
  596. end
  597. if lastreadday + 3 <= daystart:
  598. if pcs_mood > 10:pcs_mood -= 10
  599. SbrosNerdism = 1
  600. $mudnerd = '<font color="red"><b>You have an incredibly strong desire to read!!!</b></font>'
  601. end
  602. else
  603. SbrosNerdism = 0
  604. $mudnerd = ''
  605. end
  606. if bimbolevel > 0:
  607. if bimbowithdrawal = 0:
  608. $bimbostatus = '<font color = #FF1493>You''re, like, super hawt today.</font>'
  609. $bimbo_tooltip = 'You''re, like, super hawt today.'
  610. elseif bimbowithdrawal = 1:
  611. $bimbostatus = '<font color="green">You feel, like, kind of lame today.</font>'
  612. $bimbo_tooltip = 'You feel, like, kind of lame today.'
  613. elseif bimbowithdrawal < 4:
  614. $bimbostatus = '<font color="grey">You feel, like, totally lame today.</font>'
  615. $bimbo_tooltip = 'You feel, like, totally lame today.'
  616. elseif bimbowithdrawal < 6:
  617. if pcs_mood > 50: pcs_mood -= 10
  618. $bimbostatus = '<font color="red">You really feel, like, awful today.</font>'
  619. $bimbo_tooltip = 'You really feel, like, awful today.'
  620. elseif bimbowithdrawal >= 6:
  621. if pcs_mood > 10: pcs_mood -= 10
  622. $bimbostatus= '<font color="red"><b>You feel that, like, horrible today!</b></font>'
  623. $bimbo_tooltip = 'You feel that, like, horrible today!'
  624. end
  625. else
  626. bimbowithdrawal = 0
  627. $bimbostatus = ''
  628. end
  629. !
  630. ! WD: Triggers every 15 minutes if not sleeping
  631. ! Update to remove long iterations on loading saves from previous versions
  632. ! Do Nothing if sleeping, invalid Trig15Minute value or more than 6 hours 16 minute pass
  633. if InSleep ! 0 or Trig15Minute > totminut or (totminut - Trig15Minute) >= 376:
  634. set Trig15Minute = totminut
  635. ! More than 15 minutes since last check
  636. else
  637. if (totminut - Trig15Minute) >= 15:
  638. ! begin Loop
  639. :Trig15MinuteLoop
  640. ! Horny Actions
  641. if pcs_horny > 100:
  642. set Trig15Minute = totminut
  643. else
  644. set Trig15Minute += 15
  645. ! WD: Fix vibrator arousal to trigger every 15 minutes, moved from 'time' location
  646. if vibratorin = 1:pcs_horny += rand(1, 5)
  647. ! WD: Fixed Piecing arousal to trigger every 15 minutes, instead of once per day
  648. if pcs_horny < 70:
  649. hornystat = 0
  650. if pirsF > 0 and pirsF < 10000:hornystat += 1
  651. if pirsG > 0 and pirsG < 10000:hornystat += 1
  652. hornyStat = hornystat * 4
  653. if pirsA > 0 and pirsA < 10000:hornystat += 1
  654. if pirsB > 0 and pirsB < 10000:hornystat += 1
  655. if pirsC > 0 and pirsC < 10000:hornystat += 1
  656. if pirsD > 0 and pirsD < 10000:hornystat += 1
  657. if pirsE > 0 and pirsE < 10000:hornystat += 1
  658. if pirsN > 0 and pirsN < 10000:hornystat += 1
  659. set pcs_horny += hornyStat / 4 + rand(1,4) <= hornyStat mod 4 & ! Apply 1/4 of value on average
  660. end
  661. ! WD: Clothing
  662. if CloStyle = 4 and pcs_horny < 70:set pcs_horny += rand(0, 2)
  663. if (PCloSkirt > 5 or PCloPants > 5) and pcs_horny < 50:set pcs_horny += rand(0, 1)
  664. if PCloTopCut = 4 and pcs_horny < 50:set pcs_horny += rand(0, 1)
  665. end
  666. !!SECTION: Bimbo (15 minute interval update checks)
  667. if bimbolevel = 2:
  668. if pcs_mood < 100:pcs_mood += ((pcs_mood / 100) * (rand(0,1)))
  669. if pcs_horny < 25:pcs_horny = 25
  670. if pcs_horny < 100:pcs_horny += 1
  671. end
  672. if bimbolevel = 3:
  673. if (pcs_mood < 100):pcs_mood += ((pcs_mood / 100) * (rand(0,2)))
  674. if pcs_horny < 50:pcs_horny = 50
  675. if pcs_horny < 100:pcs_horny += 2
  676. end
  677. !!SECTION: Commando trait (15 minute interval update checks)
  678. if $clothingworntype ! 'nude':
  679. if $pantyworntype = 'none':
  680. !! Addition to trait exp/lvls
  681. if pcs_traits['commando_lvl'] = 0:
  682. if PCloSkirt > 0:
  683. pcs_traits['commando_exp'] += 2
  684. else
  685. pcs_traits['commando_exp'] += 1
  686. end
  687. if pcs_traits['commando_exp'] >= 1000:
  688. pcs_traits['commando_exp'] = 50
  689. pcs_traits['commando_lvl'] = 1
  690. msg'You have gained the Commando trait! You have become accustomed to the idea you don''t have to wear panties all the time and can now comfortably wear skirts without panties. Pants are still a little itchy though...'
  691. end
  692. elseif pcs_traits['commando_lvl'] = 1:
  693. pcs_traits['commando_exp'] += 2
  694. if pcs_traits['commando_exp'] >= 1000:
  695. pcs_traits['commando_exp'] = 50
  696. pcs_traits['commando_lvl'] = 2
  697. msg'You have gained the 2nd level of the Commando trait! You have become very comfortable without panties and the raw insides of your pants no longer irritate your pussy.'
  698. end
  699. elseif pcs_traits['commando_lvl'] = 2:
  700. mosol = 0
  701. pcs_traits['commando_exp'] += 2
  702. if pcs_traits['commando_exp'] >= 1000:
  703. pcs_traits['commando_exp'] = 500
  704. pcs_traits['commando_lvl'] = 3
  705. msg'You have gained the 3rd level of the Commando trait! You have become so accustomed to going commando that any kind of underwear over your hips just feels <i>wrong</i>. You suffer mood penalties while wearing panties.'
  706. end
  707. elseif pcs_traits['commando_lvl'] = 3:
  708. pcs_traits['commando_exp'] += 1
  709. end
  710. elseif pcs_traits['commando_lvl'] > 0:
  711. !!Reduction from exp/lvls
  712. if pcs_traits['commando_lvl'] = 3:
  713. pcs_traits['commando_exp'] -= 1
  714. pcs_mood -= 1
  715. if pcs_traits['commando_exp'] <= 0:
  716. pcs_traits['commando_exp'] = 500
  717. pcs_traits['commando_lvl'] = 2
  718. msg'You have lost the 3rd level of the Commando trait! You are now only comfortable not wearing panties and will not suffer irritation from wearing pants while going commando.'
  719. end
  720. else
  721. pcs_traits['commando_exp'] -= 1
  722. if pcs_traits['commando_exp'] <= -0:
  723. pcs_traits['commando_exp'] = 900
  724. pcs_traits['commando_lvl'] -= 1
  725. end
  726. end
  727. end
  728. !!{
  729. if $braworntype = 'none':
  730. end}
  731. end
  732. !! This is the Succubus non-direct injection (pun intented) sex to sexnutrition and the sexnutrition conversion handling
  733. if succubusflag = 1:
  734. if hypnoAddict > 0: dynamic $RestTherapyVariables
  735. if pcs_horny < 50: pcs_horny = 50
  736. if pcs_horny < 100: pcs_horny += succublvl
  737. if succhungry > 0:
  738. pcs_energy -= succhungry * succublvl
  739. pcs_hydra -= succhungry * succublvl
  740. pcs_sleep -= succhungry * succublvl
  741. end
  742. if arrsize('sparrvol') > 0:
  743. suctempi = -1
  744. :SuccAbsorbLoop
  745. suctempi += 1
  746. if suctempi <= 1 or suctempi = 3 or suctempi = 4 or suctempi >= 8:
  747. suctemparr = arrpos('sparrloc',suctempi)
  748. if suctemparr >= 0 and sparrloc[suctemparr] = suctempi and sparrvol[suctemparr] > 0:
  749. scfeed = succublvl + rand(1,4)
  750. sexnutrition += 30 * scfeed
  751. succubxp += 5
  752. cumsumbod -= sparrvol[suctemparr]
  753. ! msg "we've got xp!" + sparrloc[suctemparr]
  754. sucabscum = 1
  755. gs 'cum_cleanup', 'cleandeposit', suctemparr
  756. cumloc[suctempi] = 0
  757. spdirty = 0
  758. !debug code $stat_msg += '<BR>Absorb ext <<sexnutrition>>'
  759. end
  760. end
  761. if suctempi < 17:jump 'SuccAbsorbLoop'
  762. cumloc[0] = 0
  763. cumloc[1] = 0
  764. cumloc[2] = 0
  765. cumloc[3] = 0
  766. cumloc[4] = 0
  767. cumloc[5] = 0
  768. cumloc[6] = 0
  769. cumloc[7] = 0
  770. cumloc[8] = 0
  771. cumloc[9] = 0
  772. cumloc[10] = 0
  773. cumloc[11] = 0
  774. cumloc[12] = 0
  775. cumloc[13] = 0
  776. cumloc[14] = 0
  777. cumloc[15] = 0
  778. cumloc[16] = 0
  779. cumloc[17] = 0
  780. end
  781. if suclezsex < lesbian:
  782. sexnutrition += succublvl * 20
  783. suclezsex = lesbian
  784. succubxp += 5
  785. sucabslez = 1
  786. end
  787. if sexnutrition > 0:
  788. if sucskill >= 3 and succublvl >= 2: sexnutrition += (sexnutrition * 2) / 10
  789. if sucabslez = 1 and sucabscum = 1:
  790. $sucabs1 = 'absorbed energy from the woman you had sex with'
  791. $sucabs2 = ' and you '
  792. $sucabs3 = 'absorb the semen in your body'
  793. elseif sucabscum = 1:
  794. $sucabs3 = 'absorb the semen in your body'
  795. elseif sucabslez = 1:
  796. $sucabs1 = 'absorbed energy from the woman you had sex with'
  797. else
  798. !!Debug code
  799. $stat_msg += '<BR>SOMETHING HAPPENED!'
  800. end
  801. $stat_msg += '<BR>You <<$sucabs1>><<$sucabs2>><<$sucabs3>>, gaining nourishment.'
  802. sucabslez = 0 & sucabscum = 0
  803. $sucabs1 = '' & $sucabs2 = '' & $sucabs3 = ''
  804. if (pcs_mood < 100): pcs_mood += ((pcs_mood / 100) * 5)
  805. if pcs_energy > 100: entemp = (pcs_energy - 100)
  806. if sucexcess < 0 and sexnutrition > 20 and pcs_energy > 30:
  807. if sexnutrition - 20 >= (0 - sucexcess) * 2:
  808. sexnutrition += sucexcess * 2
  809. sucexcess = 0
  810. else
  811. sucexcess += (sexnutrition - 20) / 2
  812. sexnutrition = 20
  813. end
  814. end
  815. pcs_energy += sexnutrition / 2
  816. pcs_hydra += sexnutrition
  817. pcs_sleep += sexnutrition / 20
  818. if succhungry > 0: succhungry = 0
  819. sexnutrition = 0
  820. if pcs_energy > 100: sucexcess += (pcs_energy - entemp - 100) & pcs_energy = 100 + entemp & killvar 'entemp'
  821. end
  822. end
  823. !! safeguards to prevent bimbolevel from going above or below its intended limits
  824. if bimbolevel > 3: bimbolevel = 3
  825. if bimbolevel < 0: bimbolevel = 0
  826. ! do loop
  827. if (totminut - Trig15Minute) >= 15:jump 'Trig15MinuteLoop'
  828. end
  829. end
  830. !!!!!!!!!!!!!
  831. !!!ENERGY!!!
  832. !!!!!!!!!!!!!
  833. if succubusflag = 1:
  834. if pcs_energy < 0:
  835. if fat >= 1:
  836. if cheatNoFat = 0: fat -= 2
  837. pcs_energy += 8 + succublvl
  838. else
  839. pcs_energy += 8 + succublvl
  840. sucexcess -= (8 + succublvl) * (6 - succublvl)
  841. end
  842. end
  843. if pcs_health < 0:
  844. pcs_health = 10
  845. sucexcess -= 25 * (9 - succublvl)
  846. end
  847. if pcs_willpwr < 0:
  848. pcs_willpwr = 10
  849. sucexcess -= 20 * (9 - succublvl)
  850. sucpowzeroed = 4
  851. end
  852. end
  853. if pcs_sleep < 0:
  854. pcs_sleep = 0
  855. pcs_mood -= 5
  856. end
  857. if pcs_energy < 0:
  858. pcs_energy = 0
  859. pcs_health -= 5
  860. if salo = 0 and pcs_stren + pcs_vital > 0:
  861. stren_deg -= 1
  862. vital_deg -= 1
  863. pcs_energy += 8
  864. elseif salo = 0 and pcs_stren + pcs_vital <= 0:
  865. if Enable_nogameover = 0 :
  866. over = 3
  867. if $loc ! 'gameover': gt 'gameover'
  868. exit
  869. else
  870. $stat_msg += '<BR><font color=red><B>You starved to death, but Cheat Mode keeps you Alive.</B></font>'
  871. fat = 1
  872. end
  873. elseif salo > 0:
  874. if cheatNoFat = 0: fat -= 1
  875. pcs_energy += 8
  876. end
  877. end
  878. if pcs_hydra <= 0:
  879. pcs_hydra = 1
  880. pcs_health -= 5
  881. end
  882. !!Set hydra_check value
  883. hydra_check = pcs_hydra
  884. if pcs_mood <= 0:
  885. pcs_mood = 1
  886. pcs_health -= 5
  887. end
  888. if pcs_health < 0:
  889. if Enable_nogameover = 0 :
  890. over = 1
  891. if $loc ! 'gameover': gt 'gameover'
  892. exit & !nogameover by illume
  893. else
  894. $stat_msg += '<BR><font color=red><B>You died from injuries, but Cheat Mode keeps you Alive.</B></font>'
  895. pcs_health = 0
  896. end
  897. end
  898. if pcs_willpwr <= 0 :
  899. !this will set willpower to 0 correctly; then check mana =1 for insane-gameover(pcs_willpwr=0&mana=1).
  900. if pcs_mood <= 1:
  901. if Enable_nogameover = 0 :
  902. over = 2
  903. if $loc ! 'gameover': gt 'gameover'
  904. exit & !nogameover by illume
  905. else
  906. $stat_msg += '<BR><font color=red><B>You are insane, but Cheat Mode keeps you Alive.</B></font>'
  907. !pcs_mood already checked for >=1 in line 1113 if pcs_mood <= 0, no need to set another one
  908. end
  909. end
  910. pcs_willpwr = 0
  911. end
  912. !!cars-increase/depressed mood after orgasm/rape
  913. if rape > 0 and rape ! rape_count and orgasm = orgasm_count:
  914. pcs_mood = 10
  915. rape_count = rape
  916. elseif orgasm > 0 and orgasm ! orgasm_count:
  917. pcs_mood = 100
  918. orgasm_count = orgasm
  919. elseif rape > 0 and rape ! rape_count and orgasm > 0 and orgasm ! orgasm_count:
  920. pcs_mood = 100
  921. orgasm_count = orgasm
  922. rape_count = rape
  923. end
  924. !! Drug stats
  925. if StrongNarkota <= 0:
  926. if SNarkTimes >= 3 and SLomka = 0:SLomka = 1
  927. end
  928. if amphCount > 3 and amphHigh <= 0:
  929. addictChance = rand(1,10)
  930. if addictChance > 8:
  931. amphWithdrawl = 2
  932. end
  933. end
  934. if StrongNarkota > 0:
  935. if SLomka > 0:SLomka = 0
  936. pcs_mood = 100
  937. end
  938. !!Health, Willpower, Auto Birth Control pregnancy check
  939. gs 'body', 'RegularUpdate'
  940. gs 'AppearanceSystem'
  941. gs 'body_desc'
  942. if pcs_health >= healthmax:
  943. $pcs_health = '<font color="green">You are very healthy.</font>'
  944. elseif pcs_health >= healthmax * 75 / 100:
  945. $pcs_health = '<font color=#0064FF>You are healthy.</font>'
  946. elseif pcs_health >= healthmax * 50 / 100:
  947. $pcs_health = '<font color="brown">You are not healthy.</font>'
  948. elseif pcs_health >= healthmax * 25 / 100:
  949. $pcs_health = '<font color="red">You are sick.</font>'
  950. else
  951. $pcs_health = '<font color="red">You are on the verge of death.</font>'
  952. end
  953. if pcs_willpwr >= willpowermax:
  954. $pcs_willpwr = '<font color="green">You feel in charge of your actions.</font>'
  955. elseif pcs_willpwr >= willpowermax * 75 / 100:
  956. $pcs_willpwr = '<font color=#0064FF>You are mostly in control.</font>'
  957. elseif pcs_willpwr >= willpowermax * 50 / 100:
  958. $pcs_willpwr = '<font color="brown">You might have to make some concessions.</font>'
  959. elseif pcs_willpwr >= willpowermax * 25 / 100:
  960. $pcs_willpwr = '<font color="red">You will have to toe the line.</font>'
  961. else
  962. $pcs_willpwr = '<font color="red">You are completely at other people''s mercy.</font>'
  963. end
  964. !!stop auto birth control pill taking if the player believes they are pregnant or are pregnant
  965. if (thinkpreg = 1 or knowpreg = 1) and tabletkicheck = 1: tabletkicheck = 0
  966. if birth_control['remind_hour'] > 0 and hour >= birth_control['remind_hour'] and hour <= birth_control['remind_hour'] + 1 and tabletkiday ! daystart:
  967. birth_control['remind_icon'] = 1
  968. else
  969. birth_control['remind_icon'] = 0
  970. end
  971. !!Mood
  972. if cheatNoMood = 0:
  973. maxmood = 100 - moodmodifier
  974. if pcs_mood > 100:
  975. pcs_mood = 100
  976. elseif pcs_mood < 0:
  977. pcs_mood = 0
  978. !! 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
  979. end
  980. else
  981. pcs_mood = 100
  982. mood_trauma = 0
  983. end
  984. if pcs_mood >= 80:
  985. $pcs_mood = '<font color="green">You are in a great mood.</font>'
  986. elseif pcs_mood >= 60:
  987. $pcs_mood = '<font color=#0064FF>You are in a good mood.</font>'
  988. elseif pcs_mood >= 40:
  989. $pcs_mood = '<font color="brown">You are in an OK mood.</font>'
  990. elseif pcs_mood >= 20:
  991. $pcs_mood = '<font color="orange">You are in a bad mood.</font>'
  992. elseif pcs_mood >= 5:
  993. $pcs_mood = '<font color="red">You are in a terrible mood.</font>'
  994. else
  995. $pcs_mood = '<font color="red">You are really depressed and need to improve your mood.</font>'
  996. end
  997. if pcs_energy >= 80:
  998. $pcs_energy = '<font color="green">You couldn''t eat one more bite.</font>'
  999. elseif pcs_energy >= 40:
  1000. $pcs_energy = '<font color=#0064FF>You''re not really hungry, but a small snack would be very welcome.</font>'
  1001. elseif pcs_energy >= 8:
  1002. $pcs_energy = '<font color="brown">You are hungry.</font>'
  1003. else
  1004. $pcs_energy = '<font color="red">You are very hungry.</font>'
  1005. end
  1006. if pcs_hydra >= 80:
  1007. $pcs_hydra = '<font color="green">You are not thirsty at all.</font>'
  1008. elseif pcs_hydra >= 40:
  1009. $pcs_hydra = '<font color=#0064FF>You are slightly thirsty.</font>'
  1010. elseif pcs_hydra >= 8:
  1011. $pcs_hydra = '<font color="brown">You are thirsty.</font>'
  1012. else
  1013. $pcs_hydra = '<font color="red">You are very thirsty.</font>'
  1014. end
  1015. if pcs_sleep >= 80:
  1016. $pcs_sleep = '<font color="green">You are well rested.</font>'
  1017. elseif pcs_sleep >= 40:
  1018. $pcs_sleep = '<font color=#0064FF>You are slightly tired.</font>'
  1019. elseif pcs_sleep >= 8:
  1020. $pcs_sleep = '<font color="brown">You are tired.</font>'
  1021. else
  1022. $pcs_sleep = '<font color="red">You are very tired.</font>'
  1023. end
  1024. 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:
  1025. !!absence from work in a factory in Pavlovsk
  1026. FabrikaProgul += 1
  1027. FabrikaProgulDay = day
  1028. end
  1029. if hotelRoom['pav_hotel'] > 0:
  1030. if hotelRoomDays['pav_hotel'] - 1 = daystart:
  1031. $stat_msg += '<BR>You have 1 night left on your pav hotel booking.'
  1032. elseif hotelRoomDays['pav_hotel'] = daystart and hour < 11:
  1033. $stat_msg += '<BR>Your room at the Pavlosk hotel has check out today at 11:00'
  1034. elseif hotelRoomDays['pav_hotel'] = daystart:
  1035. hotelRoom['pav_hotel'] = 0
  1036. end
  1037. end
  1038. if hotelRoom['city_hotel'] > 0:
  1039. if hotelRoomDays['city_hotel'] - 1 = daystart:
  1040. $stat_msg += '<BR>You have 1 night left on your pav hotel booking.'
  1041. elseif hotelRoomDays['city_hotel'] = daystart and hour < 11:
  1042. $stat_msg += '<BR>Your room at the St Petersburg hotel has check out today at 11:00'
  1043. elseif hotelRoomDays['city_hotel'] = daystart:
  1044. hotelRoom['city_hotel'] = 0
  1045. end
  1046. end
  1047. if hour >= 8 and hour < 14 and week < 6 and mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and kanikuli = 0 and schoolProgulDay ! daystart:
  1048. !!absence from school
  1049. schoolprogul += 1
  1050. schoolProgulDay = daystart
  1051. end
  1052. if cumcondslip <= 0: cumcondslip_deep = 0
  1053. !!Sex stat update
  1054. stat['mast'] += mastr & mastr = 0
  1055. stat['hj'] += hj & hj = 0
  1056. stat['bj'] += bj & bj = 0
  1057. stat['vaginal'] += sex & sex = 0
  1058. stat['anal'] += anal & anal = 0
  1059. stat['cuni'] += kuni & kuni = 0
  1060. stat['anal_strap_give'] += pegging & pegging = 0
  1061. !!Pain calculation
  1062. paintmp1 = func('shortgs','modul',pain['head'],pain['hair'],pain['ears'],pain['eyebrows'],pain['eyes'],pain['cheeks'],pain['nose'],pain['mouth'])
  1063. paintmp2 = func('shortgs','modul',pain['tummy'],pain['pubic'],pain['vaginal'],pain['labia'],pain['clitoris'],pain['urethra'],pain['cervix'],pain['lips'])
  1064. paintmp3 = func('shortgs','modul',pain['throat'],pain['asscheeks'],pain['asshole'],pain['hips'],pain['thighs'],pain['legL'],pain['legR'],pain['feet'])
  1065. paintmp4 = func('shortgs','modul',pain['toes'],pain['shoulders'],pain['armL'],pain['armR'],pain['hands'],pain['fingers'],pain['chest'],pain['breasts'])
  1066. paintmp5 = func('shortgs','modul',pain['tongue'],pain['neck'],pain['back'],pain['nipples'],pain['ribs'],vgape * 8, agape * 10,spanked * 24)
  1067. pain['total'] = func('shortgs','modul',paintmp1,paintmp2,paintmp3,paintmp4,paintmp5)
  1068. if pain['total'] > 100: pain['total'] = 100
  1069. pain['damage'] = pain['total']
  1070. pain['relief'] = 0
  1071. if alko > 9:
  1072. pain['relief'] = 70
  1073. elseif alko > 6:
  1074. pain['relief'] = 40
  1075. elseif alko > 3:
  1076. pain['relief'] = 15
  1077. end
  1078. if StrongNarkota > 0:
  1079. pain['relief'] = 90
  1080. elseif nark > 0:
  1081. pain['relief'] = 60
  1082. elseif pain['killer'] > 12 and alko <= 9:
  1083. pain['relief'] = 50
  1084. end
  1085. if pain['relief'] ! 0:
  1086. if (pain['total'] / pain['relief']) > 0:
  1087. pain['total'] = pain['total'] / pain['relief']
  1088. elseif pain['total'] > 0:
  1089. pain['total'] = 0
  1090. end
  1091. end
  1092. if pain['total'] > 80:
  1093. if (pcs_health * 5) >= healthmax: pcs_health = pcs_health * 20 / 100
  1094. if (pcs_mood * 5) >= 100: pcs_mood = pcs_mood * 20 / 100
  1095. elseif pain['total'] > 60:
  1096. if (pcs_health * 5 / 2) >= healthmax: pcs_health = pcs_health * 40 / 100
  1097. if (pcs_mood * 5 / 2) >= 100: pcs_mood = pcs_mood * 40 / 100
  1098. elseif pain['total'] > 40:
  1099. if (pcs_health * 5 / 3) >= healthmax: pcs_health = pcs_health * 60 / 100
  1100. if (pcs_mood * 5 / 3) >= 100: pcs_mood = pcs_mood * 60 / 100
  1101. elseif pain['total'] > 20:
  1102. if (pcs_health * 5 / 4) >= healthmax: pcs_health = pcs_health * 80 / 100
  1103. if (pcs_mood * 5 / 4) >= 100: pcs_mood = pcs_mood * 80 / 100
  1104. elseif pain['total'] > 0:
  1105. if (pcs_health * 10 / 9) >= healthmax: pcs_health = pcs_health * 90 / 100
  1106. if (pcs_mood * 10 / 9) >= 100: pcs_mood = pcs_mood * 90 / 100
  1107. end
  1108. !!--------------------------pain calculation end--------------------------------
  1109. !!update skills and attributes to pcs_ from there _lvl values plus adjustments based on condition
  1110. gs 'stat_sklattrib_lvlset'
  1111. !!Sleep variable cap
  1112. if pcs_sleep > 100: pcs_sleep = 100
  1113. if insleep = 0: gs 'stat_display'
  1114. gs 'family_schedule'
  1115. !!--------------------------Job Checks For Icons--------------------------------
  1116. if (acting['shoot_day'] = daystart and actress_cast = 1) or (audition['day'] = daystart):
  1117. acting['icon'] = 1
  1118. else
  1119. acting['icon'] = 0
  1120. end
  1121. if model_job_week < 2 and model['status'] = 1:
  1122. model['icon'] = 1
  1123. else
  1124. model['icon'] = 0
  1125. end
  1126. if pfilmday[0] > 0:
  1127. pornstar['icon'] = 1
  1128. else
  1129. pornstar['icon'] = 0
  1130. end
  1131. if therapistday ! daystart and remindedtherapyday ! daystart and hypnoSchedule = 1 and (hour >= 18 and (minut > 45 or hour >= 19)) and (hour < 20 and (minut < 15 or hour < 19)) and menu_off = 0:
  1132. remindedtherapyday = daystart
  1133. gt 'therapist_reminder'
  1134. end
  1135. !!--------------------------Booty Call SMSs--------------------------------
  1136. if (hour >= 15 and hour <= 20) and arrsize('$fuckbuddy') > 0 : gs 'booty_call', 'SMS raiser'
  1137. --- stat ---------------------------------