stat.qsrc 38 KB

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