stat.tw 45 KB

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