stat.qsrc 29 KB

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