stat 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995
  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':mosol += 1
  384. if mosol >= 50: pcs_mood -= 5
  385. if mosol >= 30 and pain['pubic'] < 80: gs 'pain', 1, 'pubic', 'ache'
  386. if pcs_energy > 100:
  387. fat += (pcs_energy - 100) / 4
  388. pcs_energy = 100
  389. end
  390. if mosol > 0:
  391. if tanga = 1 or $clothingworntype = 'nude':mosol -= rand(0,1)
  392. end
  393. if pcs_lipbalm > 0:pcs_lipbalm -= 1
  394. if sickstage = 1:sick += 1 & sicktimer += 1
  395. if sickstage = 1 and sicktimer >= 80:sicktimer = 0 & sickstage = 2
  396. if sickstage = 2 and sick > 0:sick -= 1
  397. if sickstage = 2 and sick <= 0:sick = 0 & sickstage = 0
  398. if perkice > 0:perkice -= 1
  399. if frost > 0:frost -= 1
  400. if KGOLpers > 0:
  401. if KGHP < KGHPMAX:KGHP += 10
  402. if KGManna < KGMannaMax:KGManna += 10
  403. end
  404. if pain['head'] > 0:pain['head'] -= rand(0,1)
  405. if pain['hair'] > 0:pain['hair'] -= rand(0,1)
  406. if pain['ears'] > 0:pain['ears'] -= rand(0,1)
  407. if pain['eyebrows'] > 0:pain['eyebrows'] -= rand(0,1)
  408. if pain['eyes'] > 0:pain['eyes'] -= rand(0,1)
  409. if pain['cheeks'] > 0:pain['cheeks'] -= rand(0,1)
  410. if pain['nose'] > 0:pain['nose'] -= rand(0,1)
  411. if pain['mouth'] > 0:pain['mouth'] -= rand(0,1)
  412. if pain['lips'] > 0:pain['lips'] -= rand(0,1)
  413. if pain['tongue'] > 0:pain['tongue'] -= rand(0,1)
  414. if pain['throat'] > 0:pain['throat'] -= rand(0,1)
  415. if pain['neck'] > 0:pain['neck'] -= rand(0,1)
  416. if pain['back'] > 0:pain['back'] -= rand(0,1)
  417. if pain['asscheeks'] > 0:pain['asscheeks'] -= rand(0,1)
  418. if pain['asshole'] > 0:pain['asshole'] -= rand(0,1)
  419. if pain['hips'] > 0:pain['hips'] -= rand(0,1)
  420. if pain['thighs'] > 0:pain['thighs'] -= rand(0,1)
  421. if pain['legL'] > 0:pain['legL'] -= rand(0,1)
  422. if pain['legR'] > 0:pain['legR'] -= rand(0,1)
  423. if pain['feet'] > 0:pain['feet'] -= rand(0,1)
  424. if pain['toes'] > 0:pain['toes'] -= rand(0,1)
  425. if pain['shoulders'] > 0:pain['shoulders'] -= rand(0,1)
  426. if pain['armL'] > 0:pain['armL'] -= rand(0,1)
  427. if pain['armR'] > 0:pain['armR'] -= rand(0,1)
  428. if pain['hands'] > 0:pain['hands'] -= rand(0,1)
  429. if pain['fingers'] > 0:pain['fingers'] -= rand(0,1)
  430. if pain['chest'] > 0:pain['chest'] -= rand(0,1)
  431. if pain['breasts'] > 0:pain['breasts'] -= rand(0,1)
  432. if pain['nipples'] > 0:pain['nipples'] -= rand(0,1)
  433. if pain['ribs'] > 0:pain['ribs'] -= rand(0,1)
  434. if pain['tummy'] > 0:pain['tummy'] -= rand(0,1)
  435. if pain['pubic'] > 0:pain['pubic'] -= rand(0,1)
  436. if pain['vaginal'] > 0:pain['vaginal'] -= rand(0,1)
  437. if pain['clitoris'] > 0:pain['clitoris'] -= rand(0,1)
  438. if pain['urethra'] > 0:pain['urethra'] -= rand(0,1)
  439. if pain['cervix'] > 0:pain['cervix'] -= rand(0,1)
  440. ! fix for pain going into negatives and "increasing"
  441. if pain['head'] < 0:pain['head'] = 0
  442. if pain['hair'] < 0:pain['hair'] = 0
  443. if pain['ears'] < 0:pain['ears'] = 0
  444. if pain['eyebrows'] < 0:pain['eyebrows'] = 0
  445. if pain['eyes'] < 0:pain['eyes'] = 0
  446. if pain['cheeks'] < 0:pain['cheeks'] = 0
  447. if pain['nose'] < 0:pain['nose'] = 0
  448. if pain['mouth'] < 0:pain['mouth'] = 0
  449. if pain['lips'] < 0:pain['lips'] = 0
  450. if pain['tongue'] < 0:pain['tongue'] = 0
  451. if pain['throat'] < 0:pain['throat'] = 0
  452. if pain['neck'] < 0:pain['neck'] = 0
  453. if pain['back'] < 0:pain['back'] = 0
  454. if pain['asscheeks'] < 0:pain['asscheeks'] = 0
  455. if pain['asshole'] < 0:pain['asshole'] = 0
  456. if pain['hips'] < 0:pain['hips'] = 0
  457. if pain['thighs'] < 0:pain['thighs'] = 0
  458. if pain['legL'] < 0:pain['legL'] = 0
  459. if pain['legR'] < 0:pain['legR'] = 0
  460. if pain['feet'] < 0:pain['feet'] = 0
  461. if pain['toes'] < 0:pain['toes'] = 0
  462. if pain['shoulders'] < 0:pain['shoulders'] = 0
  463. if pain['armL'] < 0:pain['armL'] = 0
  464. if pain['armR'] < 0:pain['armR'] = 0
  465. if pain['hands'] < 0:pain['hands'] = 0
  466. if pain['fingers'] < 0:pain['fingers'] = 0
  467. if pain['chest'] < 0:pain['chest'] = 0
  468. if pain['breasts'] < 0:pain['breasts'] = 0
  469. if pain['nipples'] < 0:pain['nipples'] = 0
  470. if pain['ribs'] < 0:pain['ribs'] = 0
  471. if pain['tummy'] < 0:pain['tummy'] = 0
  472. if pain['pubic'] < 0:pain['pubic'] = 0
  473. if pain['vaginal'] < 0:pain['vaginal'] = 0
  474. if pain['clitoris'] < 0:pain['clitoris'] = 0
  475. if pain['urethra'] < 0:pain['urethra'] = 0
  476. if pain['cervix'] < 0:pain['cervix'] = 0
  477. if aphrodisiac_timer >= 1:
  478. if pcs_horny < 80:
  479. pcs_horny = 80
  480. else
  481. pcs_horny += 10
  482. end
  483. aphrodisiac_timer -= 1
  484. end
  485. if tanga = 1 and clit_size >= 25:pcs_horny += 20
  486. if insleep = 0:
  487. pcs_sweat += rand(0,1)
  488. if temper >= 20: pcs_sweat += rand(0,1)
  489. end
  490. ! vovan edition, from 1.2.5
  491. if clearclothes > 0: clearclothes -= 1
  492. if hantersAndreisex > 0: hantersAndreisex -= 1
  493. if hantersSergeisex > 0: hantersSergeisex -= 1
  494. if hantersIgorsex > 0: hantersIgorsex -= 1
  495. if hantslutsex > 0: hantslutsex -= 1
  496. if mira_go_blok > 0: mira_go_blok -= 1
  497. if mira_no_home > 0: mira_no_home -= 1
  498. gs 'outdoors', 'weather'
  499. if minut >= 60:jump 'loopmin'
  500. end
  501. if hour >= 24: gs 'cikl'
  502. if minut < 10:
  503. $nilmin = '0'
  504. else
  505. $nilmin = ''
  506. end
  507. if kid > 0:
  508. i = arrsize('yearkid')
  509. :LoopKidAgeCounter
  510. if i >= 0:
  511. if yearkid[i] = year + 1 and monthkid[i] = month and daykid[i] = day: msg'It is <<$kidname[i]>>''s birthday today.'
  512. i -= 1
  513. jump 'LoopKidAgeCounter'
  514. end
  515. end
  516. if pcs_nerd > 0:
  517. if lastreadday = daystart:
  518. !!<font color="green">You are completely healthy shine and a healthy glow.</font>
  519. pcs_mood = 100
  520. SbrosNerdism = 0
  521. $mudnerd = '<font color="green">You are lost in a fantasy after reading a book.</font>'
  522. end
  523. if lastreadday + 1 = daystart:
  524. SbrosNerdism = 0
  525. $mudnerd = '<font color="black">You are a little bored and want to plunge into a book.</font>'
  526. end
  527. if lastreadday + 2 = daystart:
  528. SbrosNerdism = 0
  529. if pcs_mood > 50:pcs_mood -= 10
  530. $mudnerd = '<font color="red">You really want to read something.</font>'
  531. end
  532. if lastreadday + 3 <= daystart:
  533. if pcs_mood > 10:pcs_mood -= 10
  534. SbrosNerdism = 1
  535. $mudnerd = '<font color="red"><b>You have an incredibly strong desire to read!!!</b></font>'
  536. end
  537. else
  538. SbrosNerdism = 0
  539. $mudnerd = ''
  540. end
  541. if bimbolevel > 0:
  542. if bimbowithdrawal = 0:
  543. $bimbostatus = '<font color = #FF1493>You''re, like, super hawt today.</font>'
  544. elseif bimbowithdrawal = 1:
  545. $bimbostatus = '<font color="green">You feel, like, kind of lame today.</font>'
  546. elseif bimbowithdrawal < 4:
  547. $bimbostatus = '<font color="black">You feel, like, totally lame today.</font>'
  548. elseif bimbowithdrawal < 6:
  549. if pcs_mood > 50: pcs_mood -= 10
  550. $bimbostatus = '<font color="red">You really feel, like, awful today.</font>'
  551. elseif bimbowithdrawal >= 6:
  552. if pcs_mood > 10: pcs_mood -= 10
  553. $bimbostatus= '<font color="red"><b>You feel that, like, horrible today!</b></font>'
  554. end
  555. if bimbowithdrawal > 30:
  556. bimbowithdrawal = 0
  557. bimbo = 0
  558. bimbolevel = 0
  559. $stat_msg += '<BR>You suddenly feel as if your head is clear, instead of filled with pink thoughts.'
  560. end
  561. else
  562. bimbowithdrawal = 0
  563. $bimbostatus = ''
  564. end
  565. !
  566. ! WD: Triggers every 15 minutes if not sleeping
  567. ! Update to remove long iterations on loading saves from previous versions
  568. ! Do Nothing if sleeping, invalid Trig15Minute value or more than 6 hours 16 minute pass
  569. if InSleep ! 0 or Trig15Minute > totminut or (totminut - Trig15Minute) >= 376:
  570. set Trig15Minute = totminut
  571. ! More than 15 minutes since last check
  572. else
  573. if (totminut - Trig15Minute) >= 15:
  574. ! begin Loop
  575. :Trig15MinuteLoop
  576. ! Horny Actions
  577. if pcs_horny > 100:
  578. set Trig15Minute = totminut
  579. else
  580. set Trig15Minute += 15
  581. ! WD: Fix vibrator arousal to trigger every 15 minutes, moved from 'time' location
  582. if vibratorin = 1:pcs_horny += rand(1, 5)
  583. ! WD: Fixed Piecing arousal to trigger every 15 minutes, instead of once per day
  584. if pcs_horny < 70:
  585. hornystat = 0
  586. if pirsF > 0 and pirsF < 10000:hornystat += 1
  587. if pirsG > 0 and pirsG < 10000:hornystat += 1
  588. hornyStat = hornystat * 4
  589. if pirsA > 0 and pirsA < 10000:hornystat += 1
  590. if pirsB > 0 and pirsB < 10000:hornystat += 1
  591. if pirsC > 0 and pirsC < 10000:hornystat += 1
  592. if pirsD > 0 and pirsD < 10000:hornystat += 1
  593. if pirsE > 0 and pirsE < 10000:hornystat += 1
  594. if pirsN > 0 and pirsN < 10000:hornystat += 1
  595. set pcs_horny += hornyStat / 4 + rand(1,4) <= hornyStat mod 4 & ! Apply 1/4 of value on average
  596. end
  597. ! WD: Clothing
  598. if CloStyle = 4 and pcs_horny < 70:set pcs_horny += rand(0, 2)
  599. if (PCloSkirt > 5 or PCloPants > 5) and pcs_horny < 50:set pcs_horny += rand(0, 1)
  600. if PCloTopCut = 4 and pcs_horny < 50:set pcs_horny += rand(0, 1)
  601. end
  602. !!SECTION: Bimbo (15 minute interval update checks)
  603. if bimbolevel = 2:
  604. if pcs_mood < 100:pcs_mood += ((pcs_mood / 100) * (rand(0,1)))
  605. if pcs_horny < 25:pcs_horny = 25
  606. if pcs_horny < 100:pcs_horny += 1
  607. end
  608. if bimbolevel = 3:
  609. if (pcs_mood < 100):pcs_mood += ((pcs_mood / 100) * (rand(0,2)))
  610. if pcs_horny < 50:pcs_horny = 50
  611. if pcs_horny < 100:pcs_horny += 2
  612. end
  613. !! This is the Succubus non-direct injection (pun intented) sex to sexnutrition and the sexnutrition conversion handling
  614. if succubusflag = 1:
  615. if pcs_horny < 50: pcs_horny = 50
  616. if pcs_horny < 100: pcs_horny += succublvl
  617. if succhungry > 0:
  618. pcs_energy -= succhungry * succublvl
  619. pcs_sleep -= succhungry * succublvl
  620. end
  621. cumres_idx = arrpos('sparrloc',12)
  622. if cumres_idx >= 0 and sparrvol[cumres_idx] > 0:sexnutrition += 4 & gs 'cum_cleanup', 'cleanloc', 12
  623. cumres_idx = arrpos('sparrloc',0)
  624. if cumres_idx >= 0 and cumsumvag > 0:sexnutrition += cumsumvag * 4 & gs 'cum_cleanup', 'cleanloc', 0
  625. if cumres_idx >= 0 and cumsumass > 0:sexnutrition += cumsumass * 4 & gs 'cum_cleanup', 'cleanloc', 3
  626. if arrsize('sparrvol') > 0:
  627. suctempi = -1
  628. :SuccAbsorbLoop
  629. suctempi += 1
  630. if suctempi <= 1 or suctempi = 4 or suctempi >= 8:
  631. if suctempi = 12: jump 'SuccAbsorbLoop'
  632. suctemparr = arrpos('sparrloc',suctempi)
  633. if suctemparr >= 0 and sparrloc[suctemparr] = suctempi and sparrvol[suctemparr] > 0:
  634. sexnutrition += succublvl * 5
  635. cumsumbod -= sparrvol[suctemparr]
  636. succubxp += 2
  637. sucabscum = 1
  638. gs 'cum_cleanup', 'cleandeposit', suctemparr
  639. cumloc[suctempi] = 0
  640. spdirty = 0
  641. cumloc[1] = 0
  642. cumloc[2] = 0
  643. cumloc[4] = 0
  644. cumloc[5] = 0
  645. cumloc[6] = 0
  646. cumloc[7] = 0
  647. cumloc[11] = 0
  648. cumloc[14] = 0
  649. !! debug code $stat_msg += '<BR>Absorb ext <<sexnutrition>>'
  650. end
  651. end
  652. if suctempi < 17:jump 'SuccAbsorbLoop'
  653. end
  654. if suclezsex < lesbian:
  655. sexnutrition += succublvl * 20
  656. suclezsex = lesbian
  657. succubxp += 3
  658. sucabslez = 1
  659. end
  660. if sexnutrition > 0:
  661. if sucskill >= 3 and succublvl >= 2: sexnutrition += (sexnutrition * 2) / 10
  662. if sucabslez = 1 and sucabscum = 1:
  663. $sucabs1 = 'absorbed energy from the woman you had sex with'
  664. $sucabs2 = ' and you '
  665. $sucabs3 = 'absorb the semen in your body'
  666. elseif sucabscum = 1:
  667. $sucabs3 = 'absorb the semen in your body'
  668. elseif sucabslez = 1:
  669. $sucabs1 = 'absorbed energy from the woman you had sex with'
  670. else
  671. !!Debug code
  672. $stat_msg += '<BR>SOMETHING HAPPENED!'
  673. end
  674. $stat_msg += '<BR>You <<$sucabs1>><<$sucabs2>><<$sucabs3>>, gaining nourishment.'
  675. sucabslez = 0 & sucabscum = 0
  676. $sucabs1 = '' & $sucabs2 = '' & $sucabs3 = ''
  677. if (pcs_mood < 100): pcs_mood += ((pcs_mood / 100) * 5)
  678. if pcs_energy > 100: entemp = (pcs_energy - 100)
  679. if sucexcess < 0 and sexnutrition > 20 and pcs_energy > 30:
  680. if sexnutrition - 20 >= (0 - sucexcess) * 2:
  681. sexnutrition += sucexcess * 2
  682. sucexcess = 0
  683. else
  684. sucexcess += (sexnutrition - 20) / 2
  685. sexnutrition = 20
  686. end
  687. end
  688. pcs_energy += sexnutrition / 2
  689. pcs_sleep += sexnutrition / 20
  690. if succhungry > 0: succhungry = 0
  691. sexnutrition = 0
  692. if pcs_energy > 100: sucexcess += (pcs_energy - entemp - 100) & pcs_energy = 100 + entemp & killvar 'entemp'
  693. end
  694. end
  695. !! safeguards to prevent bimbolevel from going above or below its intended limits
  696. if bimbolevel > 3: bimbolevel = 3
  697. if bimbolevel < 0: bimbolevel = 0
  698. ! do loop
  699. if (totminut - Trig15Minute) >= 15:jump 'Trig15MinuteLoop'
  700. end
  701. end
  702. !!!!!!!!!!!!!
  703. !!!ENERGY!!!
  704. !!!!!!!!!!!!!
  705. if succubusflag = 1:
  706. if pcs_energy < 0:
  707. if fat >= 1:
  708. fat -= 2
  709. pcs_energy += 8 + succublvl
  710. else
  711. pcs_energy += 8 + succublvl
  712. sucexcess -= (8 + succublvl) * (6 - succublvl)
  713. end
  714. end
  715. if pcs_health < 0:
  716. pcs_health = 10
  717. sucexcess -= 25 * (9 - succublvl)
  718. end
  719. if pcs_willpwr < 0:
  720. pcs_willpwr = 10
  721. sucexcess -= 20 * (9 - succublvl)
  722. sucpowzeroed = 4
  723. end
  724. end
  725. if pcs_sleep < 0:
  726. pcs_sleep = 0
  727. pcs_mood -= 5
  728. end
  729. if pcs_energy < 0:
  730. pcs_energy = 0
  731. pcs_health -= 5
  732. if fat = 0 and pcs_stren + pcs_vital > 0:
  733. stren_deg -= 1
  734. vital_deg -= 1
  735. pcs_energy += 8
  736. elseif fat = 0 and pcs_stren + pcs_vital <= 0:
  737. if Enable_nogameover = 0 :
  738. over = 3
  739. gt'gameover'
  740. exit
  741. else
  742. $stat_msg += '<BR><font color=red><B>You starved to death, but Cheat Mode keeps you Alive.</B></font>'
  743. fat = 1
  744. end
  745. elseif fat > 0:
  746. fat -= 1
  747. pcs_energy += 8
  748. end
  749. end
  750. if pcs_mood <= 0:
  751. pcs_mood = 1
  752. pcs_health -= 5
  753. pcs_willpwr -= 5
  754. end
  755. if pcs_health < 0:
  756. if Enable_nogameover = 0 :
  757. over = 1
  758. gt'gameover'
  759. exit & !nogameover by illume
  760. else
  761. $stat_msg += '<BR><font color=red><B>You died from injuries, but Cheat Mode keeps you Alive.</B></font>'
  762. pcs_health = 0
  763. end
  764. end
  765. if pcs_willpwr <= 0 :
  766. !this will set willpower to 0 correctly; then check mana =1 for insane-gameover(pcs_willpwr=0&mana=1).
  767. if pcs_mood <= 1:
  768. if Enable_nogameover = 0 :
  769. over = 2
  770. gt'gameover'
  771. exit & !nogameover by illume
  772. else
  773. $stat_msg += '<BR><font color=red><B>You are insane, but Cheat Mode keeps you Alive.</B></font>'
  774. !pcs_mood already checked for >=1 in line 1113 if pcs_mood <= 0, no need to set another one
  775. end
  776. end
  777. pcs_willpwr = 0
  778. end
  779. !!cars-increase/depressed mood after orgasm/rape
  780. if rape > 0 and rape ! rape_count and orgasm = orgasm_count:
  781. pcs_mood = 10
  782. rape_count = rape
  783. elseif orgasm > 0 and orgasm ! orgasm_count:
  784. pcs_mood = 100
  785. orgasm_count = orgasm
  786. elseif rape > 0 and rape ! rape_count and orgasm > 0 and orgasm ! orgasm_count:
  787. pcs_mood = 100
  788. orgasm_count = orgasm
  789. rape_count = rape
  790. end
  791. gs 'body'
  792. !!!!!!!!!!!!!
  793. if pcs_health >= healthmax:
  794. $pcs_health = '<font color="green">You are very healthy.</font>'
  795. elseif pcs_health >= healthmax * 75 / 100:
  796. $pcs_health = '<font color="blue">You are healthy.</font>'
  797. elseif pcs_health >= healthmax * 50 / 100:
  798. $pcs_health = '<font color="brown">You are not healthy.</font>'
  799. elseif pcs_health >= healthmax * 25 / 100:
  800. $pcs_health = '<font color="red">You are sick.</font>'
  801. else
  802. $pcs_health = '<font color="red">You are on the verge of death.</font>'
  803. end
  804. if pcs_willpwr >= willpowermax:
  805. $pcs_willpwr = '<font color="green">Your mind is clear.</font>'
  806. elseif pcs_willpwr >= willpowermax * 75 / 100:
  807. $pcs_willpwr = '<font color="blue">You are mostly clear of mind.</font>'
  808. elseif pcs_willpwr >= willpowermax * 50 / 100:
  809. $pcs_willpwr = '<font color="brown">You are depressed.</font>'
  810. elseif pcs_willpwr >= willpowermax * 25 / 100:
  811. $pcs_willpwr = '<font color="red">You have depression.</font>'
  812. else
  813. $pcs_willpwr = '<font color="red">You are on the verge of madness.</font>'
  814. end
  815. if pcs_mood >= 100:
  816. $pcs_mood = '<font color="green">You are in a good mood.</font>'
  817. elseif pcs_mood >= 75:
  818. $pcs_mood = '<font color="blue">You have a normal mood.</font>'
  819. elseif pcs_mood >= 50:
  820. $pcs_mood = '<font color="brown">You are in a bad mood.</font>'
  821. elseif pcs_mood >= 25:
  822. $pcs_mood = '<font color="red">You are in a terrible mood.</font>'
  823. else
  824. $pcs_mood = '<font color="red">Your mood is stuck in the gutter.</font>'
  825. end
  826. if pcs_energy >= 80:
  827. $pcs_energy = '<font color="green">You couldn''t eat one more bite.</font>'
  828. elseif pcs_energy >= 40:
  829. $pcs_energy = '<font color="blue">You''re not really hungry, but a small snack would be very welcome.</font>'
  830. elseif pcs_energy >= 8:
  831. $pcs_energy = '<font color="brown">You are hungry.</font>'
  832. else
  833. $pcs_energy = '<font color="red">You are very hungry.</font>'
  834. end
  835. if pcs_sleep >= 80:
  836. $pcs_sleep = '<font color="green">You are well rested.</font>'
  837. elseif pcs_sleep >= 40:
  838. $pcs_sleep = '<font color="blue">You are slightly tired.</font>'
  839. elseif pcs_sleep >= 8:
  840. $pcs_sleep = '<font color="brown">You are tired.</font>'
  841. else
  842. $pcs_sleep = '<font color="red">You are very tired.</font>'
  843. end
  844. !!Mood
  845. maxmood = 100 - moodmodifier
  846. if pcs_mood > 100:
  847. pcs_mood = 100
  848. $pcs_mood = 'You feel buoyed.'
  849. elseif pcs_mood < 0:
  850. pcs_mood = 0
  851. !! 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
  852. end
  853. 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:
  854. !absence from work in a factory in Pavlovsk
  855. FabrikaProgul += 1
  856. FabrikaProgulDay = day
  857. end
  858. if hotelroom > 0:
  859. if hotelroom1day = daystart: $stat_msg += '<BR>You have 1 night left on your hotel booking.'
  860. if hotelroom1day < daystart and hour <= 11: $stat_msg += '<BR>Your hotel booking has expired and you cannot return to your room after 11:00'
  861. if hotelroom1day < daystart and hour > 11: hotelroom = 0
  862. end
  863. if hour >= 8 and hour < 14 and week < 6 and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0 and schoolProgulDay ! daystart:
  864. !!absence from school
  865. schoolprogul += 1
  866. schoolProgulDay = daystart
  867. end
  868. if insleep = 0: gs 'stat_display'
  869. if cumcondslip <= 0: cumcondslip_deep = 0
  870. --- stat ---------------------------------