1
0

stat 29 KB

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