stat.qsrc 39 KB

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