1
0

stat.qsrc 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045
  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 MagikDostup = 0: magik_exp = orgasm
  17. if insleep = 0: gs 'stat_sklattrib'
  18. if cheatHealth = 1: dynamic $cheatmenu['std_cure']
  19. 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
  20. !!The following seems to be part of the combat system.
  21. musle[1] = musle
  22. flex[1] = pcs_agil
  23. stamina[1] = pcs_vital * 3
  24. wipo[1] = pcs_sprt
  25. intel[1] = pcs_intel - bimbostupidity
  26. krasota[1] = pcs_apprnc
  27. pcs_hgt[1] = pcs_hgt
  28. salo[1] = salo
  29. fat[1] = fat
  30. Bteh[1] = bteh
  31. Uteh[1] = uteh
  32. Zteh[1] = zteh
  33. !!This is a temporary stop-gap measure for the accomadation skill and will be removed
  34. if succubusflag = 1 and sucskill >= 4:
  35. if pain['throat'] > 0: pain['throat'] = 0 & sucexcess -= 1
  36. if pain['asshole'] > 0: pain['asshole'] = 0 & sucexcess -= 1
  37. if pain['vaginal'] > 0: pain['vaginal'] = 0 & sucexcess -= 1
  38. if vgape > 0: vgape = 0 & vgapetime = 0 & sucexcess -= 1
  39. if agape > 0: agape = 0 & agapetime = 0 & sucexcess -= 1
  40. end
  41. !!mouth cleaning for drinks
  42. if pcs_hydra > hydra_check:
  43. cumspclnt = 2
  44. gs 'cum_cleanup'
  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 cheatNoDrink = 1:
  59. if pcs_hydra < 35: pcs_hydra = 35
  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: intel_exp += 1 & lernSkill = 0
  70. if lern >= 10: intel_exp += 1 & lern = 0
  71. if pav_slut >= 75 and KatjaKnowBJ ! 1: KatjaKnowBJ = 1
  72. if pav_slut >= 125 or preg > 0 and KatjaKnowSex ! 1: KatjaKnowSex = 1
  73. shameless = guy + stat['bj'] + stat['anal'] + stat['hj'] + ((slutty + gang) * 2)
  74. moneySUM = money + karta + stolmoney
  75. cumSUM = cumsumbod/40
  76. if husbizvradd > 5:izvratH = 1
  77. if husbharmin > 10:harakHusb = 0
  78. if husband = 0:
  79. husbizvradd = 0
  80. husbharmin = 0
  81. husbandMark = 0
  82. houseslut = 0
  83. end
  84. if SNarkvnesh = 0:SNarkvnesh = 1
  85. if SNarkTimes >= SNarkvnesh * 25:
  86. SNarkvnesh += 1
  87. vidage += 1
  88. end
  89. if gopota >= 20 and gnewQW = 1:gnewQW = 2
  90. if workDisk = 4 and week > 5:workDisk = 1
  91. if workDisk = 3 and week > 5:workDiskAtkPlayer = 1
  92. if bfa < 0: bfa = 0
  93. if pcs_vag > 36: pcs_vag = 36
  94. if pcs_throat > 36: pcs_throat = 36
  95. if pcs_ass > 36: pcs_ass = 36
  96. if NarkImmune = 1:
  97. if narkoman ! 0:narkoman = 0
  98. elseif nark >= 30 and narkoman = 0 and NarkImmune = 0:
  99. narkoman = 1
  100. elseif nark = 0 and narkoman = 1:
  101. narkoman = 0
  102. end
  103. if CheatSlut = 1 or succubusflag = 1:
  104. !!Succubus cannot get pregnant
  105. mesec = 0
  106. FocH = 0
  107. EggRH = 0
  108. Ovulate = 0
  109. fertegg = 0
  110. UnfertEgg = 0
  111. PregChem = 0
  112. preg = 0
  113. LutH = 0
  114. RecovH = 0
  115. babyembryo = 0
  116. cycle = 1
  117. end
  118. if succubusflag = 1 and succublvl > 2 and rape > rape_count:
  119. !!High Level Succubus cannot get raped
  120. orgasm += 1
  121. rape = rape_count
  122. pcs_mood = 100
  123. end
  124. if pcs_horny < 50 and cheatHorny = 1: pcs_horny = 50
  125. !!These will be made obsolete with the combat system overhaul
  126. boxing = pcs_jab + pcs_punch + pcs_kick + pcs_def
  127. if boxing > 100: boxing = 100
  128. if MagikDostup = 0:
  129. if pcs_magik > magikhigh:
  130. magikhigh += 1
  131. rikudo += pcs_magik * 100
  132. $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>'
  133. !! This will be replaced when a more advanced physical system is made
  134. if (pcs_magik mod 2 ! 0) and pcs_eyesize < 2: pcs_eyesize += 1
  135. if (pcs_magik mod 2 = 0) and pcs_lashes < 2: pcs_lashes += 1
  136. end
  137. else
  138. !!This is for error catching
  139. killvar 'pcs_magik'
  140. killvar 'rikudo'
  141. killvar 'pcs_splcstng'
  142. end
  143. if pcs_dom < 0: SUB = SUB - pcs_dom & pcs_dom = 0
  144. if SUB < 0: pcs_dom = pcs_dom - SUB & SUB = 0
  145. if pcs_dom > 100: pcs_dom = 100
  146. if SUB > 100: SUB = 100
  147. if SUB >= pcs_dom and pcs_dom > 0:SUB = SUB - pcs_dom & pcs_dom = 0
  148. if pcs_dom >= SUB and SUB > 0:pcs_dom = pcs_dom - SUB & SUB = 0
  149. if pcs_horny < 0: pcs_horny = 0
  150. if pcs_inhib < 0:
  151. pcs_inhib = 0
  152. elseif pcs_inhib > 100:
  153. pcs_inhib = 100
  154. end
  155. healthmax = (pcs_vital * 10 + pcs_stren * 5)
  156. stammax = 5 * (2 * pcs_vital + pcs_agil + pcs_stren) / 2
  157. manamax = (pcs_intel * pcs_magik) + pcs_magik * 100 + pcs_vital * 10 + rikudo
  158. speed = (2 * (pcs_stren + pcs_agil) + pcs_vital) / 5
  159. if healthmax < 1: healthmax = 1
  160. if willpowermax < 50: willpowermax = 50
  161. if stammax < 1: stammax = 1
  162. if manamax < 1: manamax = 1
  163. !pre-calc max value for later display
  164. if fairycurse >= daystart and fairyshoo > 0: pcs_horny = 90
  165. if min_arousal > pcs_horny: pcs_horny = min_arousal
  166. if Enable_lockhorny > 0 and pcs_horny < Enable_lockhorny - 1: pcs_horny = Enable_lockhorny - 1
  167. if pcs_horny < 0: pcs_horny = 0
  168. if pcs_health > healthmax: pcs_health = healthmax
  169. if pcs_willpwr > willpowermax: pcs_willpwr = willpowermax
  170. if pcs_stam > stammax: pcs_stam = stammax
  171. if pcs_mana > manamax: pcs_mana = manamax
  172. if pcs_mood > 100: pcs_mood = 100
  173. if hypnoAddict = 1 and pcs_horny < 30:
  174. pcs_horny = 30
  175. elseif hypnoAddict = 2 and pcs_horny < 50:
  176. pcs_horny = 50
  177. end
  178. if cumloc[0] = 1 or cumloc[3] = 1 or hypnoAddict = 0:
  179. killvar 'missCum'
  180. elseif missCum > timeTresh:
  181. if pcs_horny < 90: pcs_horny = 90
  182. if preziktype = 0: prezikcount = prezik
  183. if preziktype = 2: preziksabo = prezik
  184. prezik = 0
  185. preziktype = 1
  186. end
  187. !!!!!!!!!!!
  188. !!!TIME!!!
  189. !!!!!!!!!!!
  190. if nminut ! minut or nhour ! hour:
  191. ! Zero totminut will be at New Years Eve of 2015
  192. prevtotmin = totminut
  193. ! Years since 2015 in days
  194. totminut = (year - 2015) * 365
  195. ! Days this year
  196. if month > 1 : totminut += 31 & ! Jan
  197. if month > 2 : totminut += 28 & ! Feb
  198. if month > 3 : totminut += 31 & ! Mar
  199. if month > 4 : totminut += 30 & ! Apr
  200. if month > 5 : totminut += 31 & ! May
  201. if month > 6 : totminut += 30 & ! Jun
  202. if month > 7 : totminut += 31 & ! Jul
  203. if month > 8 : totminut += 31 & ! Aug
  204. if month > 9 : totminut += 30 & ! Sep
  205. if month > 10: totminut += 31 & ! Oct
  206. if month > 11: totminut += 30 & ! Nov
  207. if month > 12: totminut += 31 & ! Dec
  208. if month > 13: totminut += 31 & ! Jan rollover sanity check
  209. totminut += day
  210. ! Hours
  211. totminut = totminut * 24 + hour
  212. ! Minutes
  213. totminut = totminut * 60 + minut + sec / 60
  214. nminut = minut
  215. nhour = hour
  216. end
  217. ! Execute time based spells
  218. gs 'spellTimer', prevtotmin, totminut
  219. ! Determine Incoming Telephone Calls
  220. gs 'telefon', 'IncomingCheck', prevtotmin, totminut
  221. !!painkiller
  222. if pain['killer'] > 0:
  223. if pain['killer'] = 1: pain_timer = totminut - 2
  224. pain['killer'] = totminut - pain_timer
  225. if pain['killer'] >= 243: pain['killer'] = 0
  226. end
  227. ! WD: 'daystart' Should start at 1
  228. if daystart = 0: daystart = 1
  229. !!Gaping of vagina recovery time
  230. if vgape > 0:
  231. if vgapetime = 0: vgapetime = totminut
  232. if (vgapetime + 60) <= totminut:vgape -= 1 & vgapetime = 0
  233. end
  234. !!Gaping of anus recovery time
  235. if agape > 0:
  236. if agapetime = 0: agapetime = totminut
  237. if (agapetime + 90) <= totminut:agape -= 1 & agapetime = 0
  238. end
  239. !!Recovery from spanking - will be superseded by pain system
  240. if spanked > 0:
  241. if spankedtime = 0: spankedtime = totminut
  242. if (spankedtime + 2040) <= totminut:spanked -= 1 & spankedtime = 0
  243. end
  244. !! Orgasmic cooldown
  245. if orgasmic ! 0:
  246. if orgasmic < totminut - 30: orgasmic = 0 & pcs_horny = 0
  247. end
  248. !!!!!!!!!!!!!!! Heels pain and skill gain
  249. !! This compares the player heels skill to the skill required to wear any heels the player
  250. !! currently wears. If the skill needed is greater than the player currently possesses,
  251. !! the pain in the feet increases and the player earns heels skill. If the skill required
  252. !! is lower, the player might still get experience, depending on how much greater the
  253. !! player skill is.
  254. !! Variables
  255. !! pcs_heels is the main heels skill
  256. !! heels_exp is used when the player gains experience using heels
  257. !! heels_deg is used when the player neglects their heels
  258. !! PShoHeels tracks the height of the heels currently worn
  259. !! heelsminut tracks when the heels skill was last changed
  260. !! heelsRequiredskill substitutes PShoHeels to allow comparison with pcs_heels
  261. !! heelsSkilldiff tracks difference between the players current and skill required by heels
  262. !! Required skill for various heel sizes
  263. !! 1 flats - 0
  264. !! 2 low heel - 5
  265. !! 3 Mid heel - 15
  266. !! 4 High heel - 25
  267. !! 5 ultra high heel - 40
  268. !! 6 fetish heel - 60
  269. !! Only run if at least X minutes have passed since last time
  270. if totminut >= heelsminut + 120:
  271. heelsminut = totminut
  272. !! Only check experience and pain gain and if the player wears heels, flats give nothing
  273. if PShoHeels > 1:
  274. if PShoHeels = 2:
  275. heelsRequiredskill = 5
  276. elseif PShoHeels = 3:
  277. heelsRequiredskill = 15
  278. elseif PShoHeels = 4:
  279. heelsRequiredskill = 25
  280. elseif PShoHeels = 5:
  281. heelsRequiredskill = 40
  282. elseif PShoHeels = 6:
  283. heelsRequiredskill = 60
  284. end
  285. !! stat is called a lot, there should be a limit to how much exp and pain you can accumulate...
  286. !! If the player skill is below the required skill, give heel_exp and apply ache
  287. if pcs_heels < heelsRequiredskill:
  288. heelsSkilldiff = heelsRequiredskill - pcs_heels
  289. if heelsSkilldiff <= 5:
  290. heels_exp += rand(3,6)
  291. if pain['feet'] < 40: gs 'pain', rand(0,1), 'feet', 'ache'
  292. elseif heelsSkilldiff <= 10:
  293. heels_exp += rand(5,9)
  294. if pain['feet'] < 50: gs 'pain', rand(0,2), 'feet', 'ache'
  295. elseif heelsSkilldiff <= 15:
  296. heels_exp += rand(7,12)
  297. if pain['feet'] < 60: gs 'pain', rand(1,3), 'feet', 'ache'
  298. elseif heelsSkilldiff <= 20:
  299. heels_exp += rand(9,15)
  300. if pain['feet'] < 70: gs 'pain', rand(2,4), 'feet', 'ache'
  301. elseif heelsSkilldiff > 20:
  302. heels_exp += rand(12,20)
  303. if pain['feet'] < 80: gs 'pain', rand(3,5), 'feet', 'ache'
  304. end
  305. !! Player skill is equal to or higher than the required skill
  306. !! Maybe have excessive skill result in no gain, or even a degrading skill?
  307. else
  308. heelsSkilldiff = pcs_heels - heelsRequiredskill
  309. if heelsSkilldiff <= 5:
  310. heels_exp += rand(3,6)
  311. elseif heelsSkilldiff <= 10:
  312. heels_exp += rand(2,4)
  313. elseif heelsSkilldiff <= 15:
  314. heels_exp += rand(1,2)
  315. elseif heelsSkilldiff <= 20:
  316. heels_exp += 0
  317. elseif heelsSkilldiff > 20:
  318. heels_deg -= rand(0,1)
  319. end
  320. end
  321. !! If not wearing heels, degrade heels skill
  322. else
  323. heels_deg -= rand(0,1)
  324. end
  325. !!Bimbo shoe check so bonus will be applied
  326. if PShoStyle = 2: bimbosh = 1
  327. if PShoStyle ! 2: bimbosh = 0
  328. end
  329. !!!!!!!!!!!!!!! End heels
  330. if sec >= 60:
  331. :loopsec
  332. minut += 1
  333. sec -= 60
  334. if sec >= 60:jump 'loopsec'
  335. end
  336. if minut >= 60:
  337. :loopmin
  338. hour += 1
  339. minut -= 60
  340. if SbrosNerdism = 1:pcs_nerd = pcs_sprt / 10 - orgasm
  341. if pcs_nerd < 0:pcs_nerd = 0
  342. if obkvsdam > 0:obkvsdam = rand(2, 5)
  343. if scpopt > 1: scpopt = 0
  344. if insleep = 1:
  345. if amphHigh > 0:
  346. pcs_energy -= (4 / amphetamineBonus + succublvl/2)
  347. pcs_hydra -= (8 / amphetamineBonus + succublvl/2)
  348. else
  349. pcs_energy -= (4 * amphetamineBonus + succublvl/2)
  350. pcs_hydra -= (8 * amphetamineBonus + succublvl/2)
  351. end
  352. pcs_stam += stammax / 10
  353. pcs_sleep -= 4
  354. if alko > 0: alko -= 1
  355. else
  356. if amphHigh > 0:
  357. pcs_energy -= (8 / amphetamineBonus + succublvl)
  358. pcs_hydra -= (16 / amphetamineBonus + succublvl)
  359. else
  360. pcs_energy -= (8 * amphetamineBonus + succublvl)
  361. pcs_hydra -= (16 * amphetamineBonus + succublvl)
  362. end
  363. pcs_stam += stammax / 20
  364. pcs_sleep -= 4
  365. end
  366. pcs_willpwr += willpowermax/50
  367. if pcs_willpwr > willpowermax: pcs_willpwr = willpowermax
  368. if pcs_willpwr < 20: will_degrade += 1
  369. if will_degrade >= 20: willpowermax -= 1 & will_degrade = 0
  370. if pcs_stam > stammax: pcs_stam = stammax
  371. gs 'femcyc'
  372. if hypnoAddict > 0:dynamic $hypnoAddiction
  373. !!mana regen
  374. pcs_mana += manamax / 20
  375. if alko > 0 and alkoblock = 0:
  376. if alko >= 6:
  377. if pcs_run > 0: run_deg -= 1
  378. if vball_lvl >= 50: vball_deg -= 1
  379. if alko >= 10:
  380. if pcs_stren > 10: stren_deg -= 1
  381. if pcs_vital > 10: vital_deg -= 1
  382. if pcs_intel > 10: intel_deg -= 1
  383. alko -= rand (0,1)
  384. end
  385. end
  386. alko -= rand (0,1)
  387. elseif alko < 0:
  388. alko = 0
  389. end
  390. !!!!!!!!!!!!!
  391. !!!Avtoboy!!!
  392. !!!!!!!!!!!!!
  393. if hour >= 8 and hour <= 23 and NPCnum > 10 and insleep = 0:
  394. :markturnirotbort
  395. xf = 0
  396. :markturnirotbortt
  397. xf += 1
  398. turnirFighter[xf] = rand(2, NPCnum)
  399. if xf < 2:jump 'markturnirotbortt'
  400. if turnirFighter[1] = turnirFighter[2]:jump 'markturnirotbort'
  401. a = turnirFighter[1]
  402. i = turnirFighter[2]
  403. NoView = 1
  404. gs 'Autofight'
  405. end
  406. !!!!!!!!!!!!!
  407. if shame > 0:shame -= 1 & pcs_mood -= 5
  408. if smoker >= 20 and NarkImmune = 0: smokerNeed += 1
  409. if smokerNeed > 10 and InSleep = 0 and pcs_mood > 20 and NarkImmune = 0: pcs_mood -= pcs_mood / 10
  410. if smokerNeed > 300:smokerNeed = 0 & smoker = 0
  411. if StrongNarkota > 0:pcs_mood -= (40 / StrongNarkota) & StrongNarkota -= 1
  412. if amphWithdrawl >= 5: amphWithdrawl += 1 & pcs_mood -= (amphWithdrawl / 5)
  413. if amphHigh > 0:
  414. if amphWithdrawl < 2: amphWithdrawl = 2
  415. amphetamineBonus = 3
  416. amphHigh -= 4
  417. pcs_mood += (2 * amphHigh)
  418. elseif amphHigh <= 0 and amphWithdrawl = 2:
  419. if amphIntake > 0:
  420. amphIntake -= 1
  421. else
  422. amphWithdrawl = 0
  423. end
  424. amphHigh = 0
  425. amphetamineBonus = 2
  426. pcs_mood -= pcs_mood / 10
  427. elseif amphIntake > 0:
  428. amphWithdrawl += 1
  429. elseif amphHigh = 0 and amphWithdrawl = 0:
  430. amphetamineBonus = 1
  431. end
  432. if amphWithdrawl > 169: amphWithdrawl = 1 & amphetamineBonus = 1 & amphCount = 0
  433. if SLomka > 0 and pcs_mood > 10:SLomka += 1 & pcs_mood -= pcs_mood / 10
  434. if SLomka > 100 and StrongNarkota <= 0:SLomka = 0 & SNarkTimes = 0
  435. if jointhigh > 0: jointhigh -= 1
  436. if narkoman = 1 and narkday ! daystart:
  437. pcs_health -= 5
  438. pcs_willpwr -= 5
  439. pcs_mood -= 10
  440. end
  441. if $pantyworntype = 'none' and PCloPants > 0 and PCloPanties = 0 and $clothingworntype ! 'nude':mosol += 1
  442. if mosol >= 50: pcs_mood -= 5
  443. if mosol >= 30 and pain['pubic'] < 80: gs 'pain', 1, 'pubic', 'ache'
  444. if pcs_energy > 100:
  445. fat += (pcs_energy - 100) / 4
  446. pcs_energy = 100
  447. elseif pcs_energy <= (10 + vitalbuf / 25) and fat > (2 + vitalbuf / 25):
  448. pcs_energy += 6
  449. fat -= 2
  450. end
  451. if pcs_hydra > 200: pcs_hydra = 200
  452. if mosol > 0:
  453. if $pantyworntype ! 'none' or $clothingworntype = 'nude' or PCloPanties = 1:mosol -= rand(0,1)
  454. end
  455. if pcs_lipbalm > 0:pcs_lipbalm -= 1
  456. if sickstage = 1:sick += 1 & sicktimer += 1
  457. if sickstage = 1 and sicktimer >= 80:sicktimer = 0 & sickstage = 2
  458. if sickstage = 2 and sick > 0:sick -= 1
  459. if sickstage = 2 and sick <= 0:sick = 0 & sickstage = 0
  460. if perkice > 0:perkice -= 1
  461. if frost > 0:frost -= 1
  462. if KGOLpers > 0:
  463. if KGHP < KGHPMAX:KGHP += 10
  464. if KGMana < KGManaMax:KGMana += 10
  465. end
  466. !! pain[0] = pain['total'] , pain[1] = pain['damage'] , pain[2] = pain['relief']
  467. i = arrsize('pain')
  468. :statpainloop
  469. if i > 0:
  470. i -= 1
  471. pain[i] -= rand(0,1)
  472. if pain[i] < 0: pain[i] = 0
  473. jump 'statpainloop'
  474. end
  475. !! Panty happiness gain
  476. if pcs_mood < 60 and $pantyworntype = 'kats': pcs_mood += 2
  477. if pcs_mood < 60 and $braworntype = 'kats': pcs_mood += 2
  478. !!Arousal adjustments
  479. if ($pantyworntype = 'exhibitionist' and $braworntype = 'exhibitionist') and pcs_horny < 25:
  480. pcs_horny += 10
  481. elseif pcs_horny < 10 and ($pantyworntype = 'exhibitionist' or $braworntype = 'exhibitionist'):
  482. pcs_horny += 5
  483. end
  484. if aphrodisiac_timer >= 1:
  485. if pcs_horny < 80:
  486. pcs_horny = 80
  487. else
  488. pcs_horny += 10
  489. end
  490. aphrodisiac_timer -= 1
  491. end
  492. if $pantyworntype ! 'none' and clit_size >= 25 and pcs_horny < 60:pcs_horny += 20
  493. if insleep = 0:
  494. pcs_sweat += rand(0,1)
  495. if temper >= 20: pcs_sweat += rand(0,1)
  496. end
  497. ! vovan edition, from 1.2.5
  498. if huntersAndreisex > 0: huntersAndreisex -= 1
  499. if huntersSergeisex > 0: huntersSergeisex -= 1
  500. if huntersIgorsex > 0: huntersIgorsex -= 1
  501. if huntslutsex > 0: huntslutsex -= 1
  502. if mira_go_blok > 0: mira_go_blok -= 1
  503. if mira_no_home > 0: mira_no_home -= 1
  504. gs 'traits', 'hourly'
  505. gs 'outdoors', 'weather'
  506. if minut >= 60:jump 'loopmin'
  507. end
  508. if hour >= 24: gs 'cikl'
  509. if minut < 10:
  510. $nilmin = '0'
  511. else
  512. $nilmin = ''
  513. end
  514. if kid > 0:
  515. i = arrsize('yearkid')
  516. :LoopKidAgeCounter
  517. if i >= 0:
  518. if yearkid[i] = year + 1 and monthkid[i] = month and daykid[i] = day: msg'It is <<$kidname[i]>>''s birthday today.'
  519. i -= 1
  520. jump 'LoopKidAgeCounter'
  521. end
  522. end
  523. if pcs_nerd > 0:
  524. if lastreadday = daystart:
  525. !!<font color="green">You are completely healthy shine and a healthy glow.</font>
  526. pcs_mood = 100
  527. SbrosNerdism = 0
  528. $mudnerd = '<font color="green">You are lost in a fantasy after reading a book.</font>'
  529. end
  530. if lastreadday + 1 = daystart:
  531. SbrosNerdism = 0
  532. $mudnerd = '<font color="black">You are a little bored and want to plunge into a book.</font>'
  533. end
  534. if lastreadday + 2 = daystart:
  535. SbrosNerdism = 0
  536. if pcs_mood > 50:pcs_mood -= 10
  537. $mudnerd = '<font color="red">You really want to read something.</font>'
  538. end
  539. if lastreadday + 3 <= daystart:
  540. if pcs_mood > 10:pcs_mood -= 10
  541. SbrosNerdism = 1
  542. $mudnerd = '<font color="red"><b>You have an incredibly strong desire to read!!!</b></font>'
  543. end
  544. else
  545. SbrosNerdism = 0
  546. $mudnerd = ''
  547. end
  548. if bimbolevel > 0:
  549. if bimbowithdrawal = 0:
  550. $bimbostatus = '<font color = #FF1493>You''re, like, super hawt today.</font>'
  551. elseif bimbowithdrawal = 1:
  552. $bimbostatus = '<font color="green">You feel, like, kind of lame today.</font>'
  553. elseif bimbowithdrawal < 4:
  554. $bimbostatus = '<font color="grey">You feel, like, totally lame today.</font>'
  555. elseif bimbowithdrawal < 6:
  556. if pcs_mood > 50: pcs_mood -= 10
  557. $bimbostatus = '<font color="red">You really feel, like, awful today.</font>'
  558. elseif bimbowithdrawal >= 6:
  559. if pcs_mood > 10: pcs_mood -= 10
  560. $bimbostatus= '<font color="red"><b>You feel that, like, horrible today!</b></font>'
  561. end
  562. if bimbowithdrawal > 30:
  563. bimbowithdrawal = 0
  564. bimbo = 0
  565. bimbolevel = 0
  566. $stat_msg += '<BR>You suddenly feel as if your head is clear, instead of filled with pink thoughts.'
  567. end
  568. else
  569. bimbowithdrawal = 0
  570. $bimbostatus = ''
  571. end
  572. !
  573. ! WD: Triggers every 15 minutes if not sleeping
  574. ! Update to remove long iterations on loading saves from previous versions
  575. ! Do Nothing if sleeping, invalid Trig15Minute value or more than 6 hours 16 minute pass
  576. if InSleep ! 0 or Trig15Minute > totminut or (totminut - Trig15Minute) >= 376:
  577. set Trig15Minute = totminut
  578. ! More than 15 minutes since last check
  579. else
  580. if (totminut - Trig15Minute) >= 15:
  581. ! begin Loop
  582. :Trig15MinuteLoop
  583. ! Horny Actions
  584. if pcs_horny > 100:
  585. set Trig15Minute = totminut
  586. else
  587. set Trig15Minute += 15
  588. ! WD: Fix vibrator arousal to trigger every 15 minutes, moved from 'time' location
  589. if vibratorin = 1:pcs_horny += rand(1, 5)
  590. ! WD: Fixed Piecing arousal to trigger every 15 minutes, instead of once per day
  591. if pcs_horny < 70:
  592. hornystat = 0
  593. if pirsF > 0 and pirsF < 10000:hornystat += 1
  594. if pirsG > 0 and pirsG < 10000:hornystat += 1
  595. hornyStat = hornystat * 4
  596. if pirsA > 0 and pirsA < 10000:hornystat += 1
  597. if pirsB > 0 and pirsB < 10000:hornystat += 1
  598. if pirsC > 0 and pirsC < 10000:hornystat += 1
  599. if pirsD > 0 and pirsD < 10000:hornystat += 1
  600. if pirsE > 0 and pirsE < 10000:hornystat += 1
  601. if pirsN > 0 and pirsN < 10000:hornystat += 1
  602. set pcs_horny += hornyStat / 4 + rand(1,4) <= hornyStat mod 4 & ! Apply 1/4 of value on average
  603. end
  604. ! WD: Clothing
  605. if CloStyle = 4 and pcs_horny < 70:set pcs_horny += rand(0, 2)
  606. if (PCloSkirt > 5 or PCloPants > 5) and pcs_horny < 50:set pcs_horny += rand(0, 1)
  607. if PCloTopCut = 4 and pcs_horny < 50:set pcs_horny += rand(0, 1)
  608. end
  609. !!SECTION: Bimbo (15 minute interval update checks)
  610. if bimbolevel = 2:
  611. if pcs_mood < 100:pcs_mood += ((pcs_mood / 100) * (rand(0,1)))
  612. if pcs_horny < 25:pcs_horny = 25
  613. if pcs_horny < 100:pcs_horny += 1
  614. end
  615. if bimbolevel = 3:
  616. if (pcs_mood < 100):pcs_mood += ((pcs_mood / 100) * (rand(0,2)))
  617. if pcs_horny < 50:pcs_horny = 50
  618. if pcs_horny < 100:pcs_horny += 2
  619. end
  620. !! This is the Succubus non-direct injection (pun intented) sex to sexnutrition and the sexnutrition conversion handling
  621. if succubusflag = 1:
  622. if pcs_horny < 50: pcs_horny = 50
  623. if pcs_horny < 100: pcs_horny += succublvl
  624. if succhungry > 0:
  625. pcs_energy -= succhungry * succublvl
  626. pcs_hydra -= succhungry * succublvl
  627. pcs_sleep -= succhungry * succublvl
  628. end
  629. cumres_idx = arrpos('sparrloc',12)
  630. if cumres_idx >= 0 and sparrvol[cumres_idx] > 0:sexnutrition += 4 & gs 'cum_cleanup', 'cleanloc', 12
  631. cumres_idx = arrpos('sparrloc',0)
  632. if cumres_idx >= 0 and cumsumvag > 0:sexnutrition += cumsumvag * 4 & gs 'cum_cleanup', 'cleanloc', 0
  633. if cumres_idx >= 0 and cumsumass > 0:sexnutrition += cumsumass * 4 & gs 'cum_cleanup', 'cleanloc', 3
  634. if arrsize('sparrvol') > 0:
  635. suctempi = -1
  636. :SuccAbsorbLoop
  637. suctempi += 1
  638. if suctempi <= 1 or suctempi = 4 or suctempi >= 8:
  639. if suctempi = 12: jump 'SuccAbsorbLoop'
  640. suctemparr = arrpos('sparrloc',suctempi)
  641. if suctemparr >= 0 and sparrloc[suctemparr] = suctempi and sparrvol[suctemparr] > 0:
  642. sexnutrition += succublvl * 5
  643. cumsumbod -= sparrvol[suctemparr]
  644. succubxp += 2
  645. sucabscum = 1
  646. gs 'cum_cleanup', 'cleandeposit', suctemparr
  647. cumloc[suctempi] = 0
  648. spdirty = 0
  649. cumloc[1] = 0
  650. cumloc[2] = 0
  651. cumloc[4] = 0
  652. cumloc[5] = 0
  653. cumloc[6] = 0
  654. cumloc[7] = 0
  655. cumloc[11] = 0
  656. cumloc[14] = 0
  657. !! debug code $stat_msg += '<BR>Absorb ext <<sexnutrition>>'
  658. end
  659. end
  660. if suctempi < 17:jump 'SuccAbsorbLoop'
  661. end
  662. if suclezsex < lesbian:
  663. sexnutrition += succublvl * 20
  664. suclezsex = lesbian
  665. succubxp += 3
  666. sucabslez = 1
  667. end
  668. if sexnutrition > 0:
  669. if sucskill >= 3 and succublvl >= 2: sexnutrition += (sexnutrition * 2) / 10
  670. if sucabslez = 1 and sucabscum = 1:
  671. $sucabs1 = 'absorbed energy from the woman you had sex with'
  672. $sucabs2 = ' and you '
  673. $sucabs3 = 'absorb the semen in your body'
  674. elseif sucabscum = 1:
  675. $sucabs3 = 'absorb the semen in your body'
  676. elseif sucabslez = 1:
  677. $sucabs1 = 'absorbed energy from the woman you had sex with'
  678. else
  679. !!Debug code
  680. $stat_msg += '<BR>SOMETHING HAPPENED!'
  681. end
  682. $stat_msg += '<BR>You <<$sucabs1>><<$sucabs2>><<$sucabs3>>, gaining nourishment.'
  683. sucabslez = 0 & sucabscum = 0
  684. $sucabs1 = '' & $sucabs2 = '' & $sucabs3 = ''
  685. if (pcs_mood < 100): pcs_mood += ((pcs_mood / 100) * 5)
  686. if pcs_energy > 100: entemp = (pcs_energy - 100)
  687. if sucexcess < 0 and sexnutrition > 20 and pcs_energy > 30:
  688. if sexnutrition - 20 >= (0 - sucexcess) * 2:
  689. sexnutrition += sucexcess * 2
  690. sucexcess = 0
  691. else
  692. sucexcess += (sexnutrition - 20) / 2
  693. sexnutrition = 20
  694. end
  695. end
  696. pcs_energy += sexnutrition / 2
  697. pcs_hydra += sexnutrition
  698. pcs_sleep += sexnutrition / 20
  699. if succhungry > 0: succhungry = 0
  700. sexnutrition = 0
  701. if pcs_energy > 100: sucexcess += (pcs_energy - entemp - 100) & pcs_energy = 100 + entemp & killvar 'entemp'
  702. end
  703. end
  704. !! safeguards to prevent bimbolevel from going above or below its intended limits
  705. if bimbolevel > 3: bimbolevel = 3
  706. if bimbolevel < 0: bimbolevel = 0
  707. ! do loop
  708. if (totminut - Trig15Minute) >= 15:jump 'Trig15MinuteLoop'
  709. end
  710. end
  711. !!!!!!!!!!!!!
  712. !!!ENERGY!!!
  713. !!!!!!!!!!!!!
  714. if succubusflag = 1:
  715. if pcs_energy < 0:
  716. if salo >= 1:
  717. if cheatNoFat = 0: salo -= 2
  718. pcs_energy += 8 + succublvl
  719. else
  720. pcs_energy += 8 + succublvl
  721. sucexcess -= (8 + succublvl) * (6 - succublvl)
  722. end
  723. end
  724. if pcs_health < 0:
  725. pcs_health = 10
  726. sucexcess -= 25 * (9 - succublvl)
  727. end
  728. if pcs_willpwr < 0:
  729. pcs_willpwr = 10
  730. sucexcess -= 20 * (9 - succublvl)
  731. sucpowzeroed = 4
  732. end
  733. end
  734. if pcs_sleep < 0:
  735. pcs_sleep = 0
  736. pcs_mood -= 5
  737. end
  738. if pcs_energy < 0:
  739. pcs_energy = 0
  740. pcs_health -= 5
  741. if salo = 0 and pcs_stren + pcs_vital > 0:
  742. stren_deg -= 1
  743. vital_deg -= 1
  744. pcs_energy += 8
  745. elseif salo = 0 and pcs_stren + pcs_vital <= 0:
  746. if Enable_nogameover = 0 :
  747. over = 3
  748. if $loc ! 'gameover': gt 'gameover'
  749. exit
  750. else
  751. $stat_msg += '<BR><font color=red><B>You starved to death, but Cheat Mode keeps you Alive.</B></font>'
  752. salo = 1
  753. end
  754. elseif salo > 0:
  755. if cheatNoFat = 0: salo -= 1
  756. pcs_energy += 8
  757. end
  758. end
  759. if pcs_hydra <= 0:
  760. pcs_hydra = 1
  761. pcs_health -= 5
  762. pcs_willpwr -= 1
  763. end
  764. !!Set hydra_check value
  765. hydra_check = pcs_hydra
  766. if pcs_mood <= 0:
  767. pcs_mood = 1
  768. pcs_health -= 5
  769. pcs_willpwr -= 5
  770. end
  771. if pcs_health < 0:
  772. if Enable_nogameover = 0 :
  773. over = 1
  774. if $loc ! 'gameover': gt 'gameover'
  775. exit & !nogameover by illume
  776. else
  777. $stat_msg += '<BR><font color=red><B>You died from injuries, but Cheat Mode keeps you Alive.</B></font>'
  778. pcs_health = 0
  779. end
  780. end
  781. if pcs_willpwr <= 0 :
  782. !this will set willpower to 0 correctly; then check mana =1 for insane-gameover(pcs_willpwr=0&mana=1).
  783. if pcs_mood <= 1:
  784. if Enable_nogameover = 0 :
  785. over = 2
  786. if $loc ! 'gameover': gt 'gameover'
  787. exit & !nogameover by illume
  788. else
  789. $stat_msg += '<BR><font color=red><B>You are insane, but Cheat Mode keeps you Alive.</B></font>'
  790. !pcs_mood already checked for >=1 in line 1113 if pcs_mood <= 0, no need to set another one
  791. end
  792. end
  793. pcs_willpwr = 0
  794. end
  795. !!cars-increase/depressed mood after orgasm/rape
  796. if rape > 0 and rape ! rape_count and orgasm = orgasm_count:
  797. pcs_mood = 10
  798. rape_count = rape
  799. elseif orgasm > 0 and orgasm ! orgasm_count:
  800. pcs_mood = 100
  801. orgasm_count = orgasm
  802. elseif rape > 0 and rape ! rape_count and orgasm > 0 and orgasm ! orgasm_count:
  803. pcs_mood = 100
  804. orgasm_count = orgasm
  805. rape_count = rape
  806. end
  807. !!Health, Willpower, Auto Birth Control pregnancy check
  808. gs 'body'
  809. if pcs_health >= healthmax:
  810. $pcs_health = '<font color="green">You are very healthy.</font>'
  811. elseif pcs_health >= healthmax * 75 / 100:
  812. $pcs_health = '<font color=#0064FF>You are healthy.</font>'
  813. elseif pcs_health >= healthmax * 50 / 100:
  814. $pcs_health = '<font color="brown">You are not healthy.</font>'
  815. elseif pcs_health >= healthmax * 25 / 100:
  816. $pcs_health = '<font color="red">You are sick.</font>'
  817. else
  818. $pcs_health = '<font color="red">You are on the verge of death.</font>'
  819. end
  820. if pcs_willpwr >= willpowermax:
  821. $pcs_willpwr = '<font color="green">You feel in charge of your actions.</font>'
  822. elseif pcs_willpwr >= willpowermax * 75 / 100:
  823. $pcs_willpwr = '<font color=#0064FF>You are mostly in control.</font>'
  824. elseif pcs_willpwr >= willpowermax * 50 / 100:
  825. $pcs_willpwr = '<font color="brown">You might have to make some concessions.</font>'
  826. elseif pcs_willpwr >= willpowermax * 25 / 100:
  827. $pcs_willpwr = '<font color="red">You will have to toe the line.</font>'
  828. else
  829. $pcs_willpwr = '<font color="red">You are completely at our people''s mercy.</font>'
  830. end
  831. !!stop auto birth control pill taking if the player believes they are pregnant or are pregnant
  832. if (thinkpreg = 1 or knowpreg = 1) and tabletkicheck = 1: tabletkicheck = 0
  833. !!Mood
  834. if cheatNoMood = 0:
  835. maxmood = 100 - moodmodifier
  836. if pcs_mood > 100:
  837. pcs_mood = 100
  838. elseif pcs_mood < 0:
  839. pcs_mood = 0
  840. !! 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
  841. end
  842. else
  843. pcs_mood = 100
  844. end
  845. if pcs_mood >= 80:
  846. $pcs_mood = '<font color="green">You are in a great mood.</font>'
  847. elseif pcs_mood >= 60:
  848. $pcs_mood = '<font color=#0064FF>You are in a good mood.</font>'
  849. elseif pcs_mood >= 40:
  850. $pcs_mood = '<font color="brown">You are in an OK mood.</font>'
  851. elseif pcs_mood >= 20:
  852. $pcs_mood = '<font color="orange">You are in a bad mood.</font>'
  853. elseif pcs_mood >= 5:
  854. $pcs_mood = '<font color="red">You are in a terrible mood.</font>'
  855. else
  856. $pcs_mood = '<font color="red">You are really depressed and need to improve your mood.</font>'
  857. end
  858. if pcs_energy >= 80:
  859. $pcs_energy = '<font color="green">You couldn''t eat one more bite.</font>'
  860. elseif pcs_energy >= 40:
  861. $pcs_energy = '<font color=#0064FF>You''re not really hungry, but a small snack would be very welcome.</font>'
  862. elseif pcs_energy >= 8:
  863. $pcs_energy = '<font color="brown">You are hungry.</font>'
  864. else
  865. $pcs_energy = '<font color="red">You are very hungry.</font>'
  866. end
  867. if pcs_hydra >= 80:
  868. $pcs_hydra = '<font color="green">You are not thirsty at all.</font>'
  869. elseif pcs_hydra >= 40:
  870. $pcs_hydra = '<font color=#0064FF>You are slightly thirsty.</font>'
  871. elseif pcs_hydra >= 8:
  872. $pcs_hydra = '<font color="brown">You are thirsty.</font>'
  873. else
  874. $pcs_hydra = '<font color="red">You are very thirsty.</font>'
  875. end
  876. if pcs_sleep >= 80:
  877. $pcs_sleep = '<font color="green">You are well rested.</font>'
  878. elseif pcs_sleep >= 40:
  879. $pcs_sleep = '<font color=#0064FF>You are slightly tired.</font>'
  880. elseif pcs_sleep >= 8:
  881. $pcs_sleep = '<font color="brown">You are tired.</font>'
  882. else
  883. $pcs_sleep = '<font color="red">You are very tired.</font>'
  884. end
  885. 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:
  886. !!absence from work in a factory in Pavlovsk
  887. FabrikaProgul += 1
  888. FabrikaProgulDay = day
  889. end
  890. if hotelroom > 0:
  891. if hotelroom1day = daystart: $stat_msg += '<BR>You have 1 night left on your hotel booking.'
  892. if hotelroom1day < daystart and hour <= 11: $stat_msg += '<BR>Your hotel booking has expired and you cannot return to your room after 11:00'
  893. if hotelroom1day < daystart and hour > 11: hotelroom = 0
  894. end
  895. if hour >= 8 and hour < 14 and week < 6 and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0 and schoolProgulDay ! daystart:
  896. !!absence from school
  897. schoolprogul += 1
  898. schoolProgulDay = daystart
  899. end
  900. if cumcondslip <= 0: cumcondslip_deep = 0
  901. if insleep = 0: gs 'stat_display'
  902. --- stat ---------------------------------