stat.tw 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241
  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 setup.startingCharacterTagsIncludes('magic')>>
  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 setup.startingCharacterTagsIncludes('magic')>>
  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 $quest('therapist').hypnoAddict == 1 and $pc.horny < 30>>
  155. <<set $pc.horny = 30>>
  156. <<elseif $quest('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 $quest('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. <!-- !!Gaping of vagina recovery time-->
  179. <!-- !! [1] stored gape value-->
  180. <!-- !! [3] timer-->
  181. <!-- !! [4] time between each reduction in gape-->
  182. <<if !$pc.agape>><<set $pc.agape = []>><</if>>
  183. <<if $pc.agape[4] == 0>>
  184. <<setinit $pc.agape[4] = 10>>
  185. <</if>>
  186. <<if !$pc.vgape>><<set $pc.vgape = []>><</if>>
  187. <<if $pc.vgape[4] == 0>>
  188. <<setinit $pc.vgape[4] = 10>>
  189. <</if>>
  190. <<if $pc.vgape > $pc.vgape[1]>>
  191. <<setinit $pc.vgape[3] = $totminut>>
  192. <<setinit $pc.vgape[1] = $pc.vgape>>
  193. <<elseif $pc.vgape > 0>>
  194. <<if ($time.minutesTimestamp- $pc.vgape[3]) / $pc.vgape[4] >= 1>>
  195. <<setn $pc.vgape -= 1>>
  196. <</if>>
  197. <<setinit $pc.vgape[1] = $pc.vgape>>
  198. <<else>>
  199. <<setinit $pc.vgape[3] = 0>>
  200. <</if>>
  201. <!-- !!Gaping of anus recovery time-->
  202. <<if $pc.agape > $pc.agape[1]>>
  203. <<setinit $pc.agape[3] = $totminut>>
  204. <<setinit $pc.agape[1] = $pc.agape>>
  205. <<elseif $pc.agape > 0>>
  206. <<if ($time.minutesTimestamp- $pc.agape[3]) / $pc.agape[4] >= 1>>
  207. <<setn $pc.agape -= 1>>
  208. <</if>>
  209. <<if $pc.agape == 0>>
  210. <<setinit $pc.agape[3] = 0>>
  211. <</if>>
  212. <<setinit $pc.agape[1] = $pc.agape>>
  213. <<else>>
  214. <<setinit $pc.agape[3] = 0>>
  215. <</if>>
  216. <!-- !!Recovery from spanking - will be superseded by pain system-->
  217. <<if $pc.spanked > 0>>
  218. <<if getvar("$pc.spankedtime") == 0>>
  219. <<set $pc.spankedtime = $totminut>>
  220. <</if>>
  221. <<if ($pc.spankedtime + 2040) <= $totminut>>
  222. <<setn $pc.spanked -= 1>> <<set $pc.spankedtime = 0>>
  223. <</if>>
  224. <<elseif getvar("$pc.spankedtime") != 0>>
  225. <<set $pc.spankedtime to null>>
  226. <</if>>
  227. <!-- !! Orgasmic cooldown-->
  228. <<if getvar("$orgasmic") != 0>>
  229. <<if $orgasmic < $time.minutesTimestamp- 30>>
  230. <<set $orgasmic = 0>> <<set $pc.horny = 0>>
  231. <</if>>
  232. <</if>>
  233. <!-- !!!!!!!!!!!!!!! Heels pain and skill gain-->
  234. <!-- !! This compares the player heels skill to the skill required to wear any heels the player-->
  235. <!-- !! currently wears. If the skill needed is greater than the player currently possesses,-->
  236. <!-- !! the pain in the feet increases and the player earns heels skill. If the skill required-->
  237. <!-- !! is lower, the player might still get experience, depending on how much greater the-->
  238. <!-- !! player skill is.-->
  239. <!-- !! Variables-->
  240. <!-- !! pcs_heels is the main heels skill-->
  241. <!-- !! heels_exp is used when the player gains experience using heels-->
  242. <!-- !! heels_deg is used when the player neglects their heels-->
  243. <!-- !! PShoHeels tracks the height of the heels currently worn-->
  244. <!-- !! heelsminut tracks when the heels skill was last changed-->
  245. <!-- !! heelsRequiredskill substitutes PShoHeels to allow comparison with pcs_heels-->
  246. <!-- !! heelsSkilldiff tracks difference between the players current and skill required by heels-->
  247. <!-- !! Required skill for various heel sizes-->
  248. <!-- !! 1 flats - 0-->
  249. <!-- !! 2 low heel - 5-->
  250. <!-- !! 3 Mid heel - 15-->
  251. <!-- !! 4 High heel - 25-->
  252. <!-- !! 5 ultra high heel - 40-->
  253. <!-- !! 6 fetish heel - 60-->
  254. <!-- !! Only run if at least X minutes have passed since last time-->
  255. <<if $time.minutesTimestamp>= $heelsminut + 120>>
  256. <<set $heelsminut = $totminut>>
  257. <!-- !! Only check experience and pain gain and if the player wears heels, flats give nothing-->
  258. <<if $wardrobe.PShoHeels > 1>>
  259. <<if $wardrobe.PShoHeels == 2>>
  260. <<set $heelsRequiredskill = 5>>
  261. <<elseif $wardrobe.PShoHeels == 3>>
  262. <<set $heelsRequiredskill = 15>>
  263. <<elseif $wardrobe.PShoHeels == 4>>
  264. <<set $heelsRequiredskill = 25>>
  265. <<elseif $wardrobe.PShoHeels == 5>>
  266. <<set $heelsRequiredskill = 40>>
  267. <<elseif $wardrobe.PShoHeels == 6>>
  268. <<set $heelsRequiredskill = 60>>
  269. <</if>>
  270. <!-- !! stat is called a lot, there should be a limit to how much exp and pain you can accumulate...-->
  271. <!-- !! If the player skill is below the required skill, give heel_exp and apply ache-->
  272. <<if $pc.skillLevel("highHeels") < $heelsRequiredskill>>
  273. <<set $heelsSkilldiff = $heelsRequiredskill - $pc.skillLevel("highHeels")>>
  274. <<if getvar("$heelsSkilldiff") <= 5>>
  275. <<run $pc.skillExperienceGain('highHeels',rand(3,6))>>
  276. <<if $pc.pain('feet') < 40>>
  277. <<gs 'pain' `rand(0,1)` 'feet' 'ache'>>
  278. <</if>>
  279. <<elseif getvar("$heelsSkilldiff") <= 10>>
  280. <<run $pc.skillExperienceGain('highHeels',rand(5,9))>>
  281. <<if $pc.pain('feet') < 50>>
  282. <<gs 'pain' `rand(0,2)` 'feet' 'ache'>>
  283. <</if>>
  284. <<elseif getvar("$heelsSkilldiff") <= 15>>
  285. <<run $pc.skillExperienceGain('highHeels',rand(7,12))>>
  286. <<if $pc.pain('feet') < 60>>
  287. <<gs 'pain' `rand(1,3)` 'feet' 'ache'>>
  288. <</if>>
  289. <<elseif getvar("$heelsSkilldiff") <= 20>>
  290. <<run $pc.skillExperienceGain('highHeels',rand(9,15))>>
  291. <<if $pc.pain('feet') < 70>>
  292. <<gs 'pain' `rand(2,4)` 'feet' 'ache'>>
  293. <</if>>
  294. <<elseif getvar("$heelsSkilldiff") > 20>>
  295. <<run $pc.skillExperienceGain('highHeels',rand(12,20))>>
  296. <<if $pc.pain('feet') < 80>>
  297. <<gs 'pain' `rand(3,5)` 'feet' 'ache'>>
  298. <</if>>
  299. <</if>>
  300. <!-- !! Player skill is equal to or higher than the required skill-->
  301. <!-- !! Maybe have excessive skill result in no gain, or even a degrading skill?-->
  302. <<else>>
  303. <<set $heelsSkilldiff = $pc.skillLevel("highHeels") - $heelsRequiredskill>>
  304. <<if getvar("$heelsSkilldiff") <= 5>>
  305. <<run $pc.skillExperienceGain('highHeels',rand(3,6))>>
  306. <<elseif getvar("$heelsSkilldiff") <= 10>>
  307. <<run $pc.skillExperienceGain('highHeels',rand(2,4))>>
  308. <<elseif getvar("$heelsSkilldiff") <= 15>>
  309. <<run $pc.skillExperienceGain('highHeels',rand(1,2))>>
  310. <<elseif getvar("$heelsSkilldiff") <= 20>>
  311. <<run $pc.skillExperienceGain('highHeels',0)>>
  312. <<elseif getvar("$heelsSkilldiff") > 20>>
  313. <<set $heels_deg -= rand(0,1)>>
  314. <</if>>
  315. <</if>>
  316. <!-- !! If not wearing heels, degrade heels skill-->
  317. <<else>>
  318. <<set $heels_deg -= rand(0,1)>>
  319. <</if>>
  320. <</if>>
  321. <!-- !!!!!!!!!!!!!!! End heels-->
  322. <<if getvar("$sec") >= 60>>
  323. <<warn 'JUMP MARKER ENCOUNTERED: :loopsec'>>
  324. <<set $time.minutes += 1>>
  325. <<set $sec -= 60>>
  326. <<if getvar("$sec") >= 60>>
  327. <<warn 'JUMP COMMAND ENCOUNTERED: jump loopsec'>>
  328. <</if>>
  329. <</if>>
  330. <<if !$sucexcess>><<set $sucexcess = 0>><</if>>
  331. <!-- !! Hourly Changes-->
  332. <<gs 'stat_hourly_changes'>>
  333. <!-- !! End of Hourly Changes-->
  334. <<if $time.hour >= 24>>
  335. <<gs 'cikl'>>
  336. <</if>>
  337. <<if $time.minutes < 10>>
  338. <<set $nilmin = '0'>>
  339. <<else>>
  340. <<set $nilmin = ''>>
  341. <</if>>
  342. <<if getvar("$kid") > 0>>
  343. <<set $i = arrsize('yearkid')>>
  344. <<warn 'JUMP MARKER ENCOUNTERED: :LoopKidAgeCounter'>>
  345. <<if getvar("$i") >= 0>>
  346. <<if $time.yearkid[$i] == $time.year + 1 and $time.monthkid[$i] == $time.month and $time.daykid[$i] == $time.day>>
  347. <<msg 'It is <<$kidname[$i]>>""s birthday today.'>>
  348. <</if>>
  349. <<set $i -= 1>>
  350. <<warn 'JUMP COMMAND ENCOUNTERED: jump LoopKidAgeCounter'>>
  351. <</if>>
  352. <</if>>
  353. <<if getvar("$pcs_nerd") > 0>>
  354. <<if $lastreadday == $time.daystart>>
  355. <!-- !!<font color="green">You are completely healthy shine and a healthy glow.</font>-->
  356. <<set $pc.mood = 100>>
  357. <<set $SbrosNerdism = 0>>
  358. <<set $mudnerd = '<font color="green">You are lost in a fantasy after reading a book.</font>'>>
  359. <</if>>
  360. <<if $lastreadday + 1 == $time.daystart>>
  361. <<set $SbrosNerdism = 0>>
  362. <<set $mudnerd = '<font color="black">You are a little bored and want to plunge into a book.</font>'>>
  363. <</if>>
  364. <<if $lastreadday + 2 == $time.daystart>>
  365. <<set $SbrosNerdism = 0>>
  366. <<if $pc.mood > 50>>
  367. <<setn $pc.mood -= 10>>
  368. <<else>>
  369. <<set $stat_msg += '<BR><font color=red><B>You starved to death, but Cheat Mode keeps you Alive.</B></font>'>>
  370. <<set $pc.fat = 1>>
  371. <</if>>
  372. <<set $mudnerd = '<font color="red">You really want to read something.</font>'>>
  373. <</if>>
  374. <<if $lastreadday + 3 <= $time.daystart>>
  375. <<if $pc.mood > 10>>
  376. <<setn $pc.mood -= 10>>
  377. <</if>>
  378. <<set $SbrosNerdism = 1>>
  379. <<set $mudnerd = '<font color="red"><b>You have an incredibly strong desire to read!!!</b></font>'>>
  380. <</if>>
  381. <<else>>
  382. <<set $SbrosNerdism = 0>>
  383. <<set $mudnerd = ''>>
  384. <</if>>
  385. <<if getvar("$bimbolevel") > 0>>
  386. <<if getvar("$bimbowithdrawal") == 0>>
  387. <<set $bimbostatus = '<font color = #FF1493>You`re, like, super hawt today.</font>'>>
  388. <<set $bimbo_tooltip = 'You`re, like, super hawt today.'>>
  389. <<elseif getvar("$bimbowithdrawal") == 1>>
  390. <<set $bimbostatus = '<font color="green">You feel, like, kind of lame today.</font>'>>
  391. <<set $bimbo_tooltip = 'You feel, like, kind of lame today.'>>
  392. <<elseif getvar("$bimbowithdrawal") < 4>>
  393. <<set $bimbostatus = '<font color="grey">You feel, like, totally lame today.</font>'>>
  394. <<set $bimbo_tooltip = 'You feel, like, totally lame today.'>>
  395. <<elseif getvar("$bimbowithdrawal") < 6>>
  396. <<if $pc.mood > 50>>
  397. <<setn $pc.mood -= 10>>
  398. <</if>>
  399. <<set $bimbostatus = '<font color="red">You really feel, like, awful today.</font>'>>
  400. <<set $bimbo_tooltip = 'You really feel, like, awful today.'>>
  401. <<elseif getvar("$bimbowithdrawal") >= 6>>
  402. <<if $pc.mood > 10>>
  403. <<setn $pc.mood -= 10>>
  404. <</if>>
  405. <<set $bimbostatus = '<font color="red"><b>You feel that, like, horrible today!</b></font>'>>
  406. <<set $bimbo_tooltip = 'You feel that, like, horrible today!'>>
  407. <</if>>
  408. <<else>>
  409. <<set $bimbowithdrawal = 0>>
  410. <<set $bimbostatus = ''>>
  411. <</if>>
  412. <<gs 'stat_15minutes_changes'>>
  413. <!-- !!!!!!!!!!!!!-->
  414. <!-- !!!ENERGY!!!-->
  415. <!-- !!!!!!!!!!!!!-->
  416. <<if getvar("$succubusflag") == 1>>
  417. <<if $pc.pcs_energy < 0>>
  418. <<if $pc.fat >= 1>>
  419. <<if getvar("$cheatNoFat") == 0>>
  420. <<setn $pc.fat -= 2>>
  421. <</if>>
  422. <<set $pc.pcs_energy += 8 + getvar('$succublvl')>>
  423. <<else>>
  424. <<set $pc.pcs_energy += 8 + getvar('$succublvl')>>
  425. <<set $sucexcess -= (8 + getvar('$succublvl')) * (6 - getvar('$succublvl'))>>
  426. <</if>>
  427. <</if>>
  428. <<if $pc.pcs_health < 0>>
  429. <<set $pc.pcs_health = 10>>
  430. <<set $sucexcess -= 25 * (9 - getvar('$succublvl'))>>
  431. <</if>>
  432. <<if $pc.willpower < 0>>
  433. <<set $pc.willpower = 10>>
  434. <<set $sucexcess -= 20 * (9 - getvar('$succublvl'))>>
  435. <<set $sucpowzeroed = 4>>
  436. <</if>>
  437. <</if>>
  438. <<if $pc.pcs_energy < 0>>
  439. <<set $pc.pcs_energy = 0>>
  440. <<set $pc.pcs_health -= 5>>
  441. <<if $pc.salo == 0 and $pc.skillLevel("strength") + getvar("$pc.vitality") > 0>>
  442. <<set $stren_deg -= 1>>
  443. <<set $vital_deg -= 1>>
  444. <<set $pc.pcs_energy += 8>>
  445. <<elseif $pc.salo == 0 and $pc.skillLevel("strength") + getvar("$pc.vitality") <= 0>>
  446. <<if getvar("$Enable_nogameover") == 0>>
  447. <<set $pc.gameover= 3>>
  448. <<if $loc != 'gameover'>>
  449. <<gt 'gameover'>>
  450. <</if>>
  451. $exit
  452. <<else>>
  453. <<set $stat_msg += '<BR><font color=red><B>You starved to death, but Cheat Mode keeps you Alive.</B></font>'>>
  454. <<set $pc.fat = 1>>
  455. <</if>>
  456. <<elseif $pc.salo > 0>>
  457. <<if getvar("$cheatNoFat") == 0>>
  458. <<setn $pc.fat -= 1>>
  459. <</if>>
  460. <<set $pc.pcs_energy += 8>>
  461. <</if>>
  462. <</if>>
  463. <<if $pc.willpower <= 0>>
  464. <!-- !this will set willpower to 0 correctly; then check mana =1 for insane-gameover(willpower=0&mana=1).-->
  465. <<if $pc.mood <= 1>>
  466. <<if getvar("$Enable_nogameover") == 0>>
  467. <<set $pc.gameover= 2>>
  468. <<if $loc != 'gameover'>>
  469. <<gt 'gameover'>>
  470. <</if>>
  471. <<else>>
  472. <<set $stat_msg += '<BR><font color=red><B>You are insane, but Cheat Mode keeps you Alive.</B></font>'>>
  473. <!-- !mood already checked for >=1 in line 1113 if mood <= 0, no need to set another one-->
  474. <</if>>
  475. <</if>>
  476. <<set $pc.willpower = 0>>
  477. <</if>>
  478. <!-- !!cars-increase/depressed mood after orgasm/rape-->
  479. <<if getvar("$rape") > 0 and $rape != $rape_count and $orgasm == $orgasm_count>>
  480. <<set $pc.mood = 10>>
  481. <<set $rape_count = $rape>>
  482. <<elseif getvar("$orgasm") > 0 and $orgasm != $orgasm_count>>
  483. <<set $pc.mood = 100>>
  484. <<set $orgasm_count = $orgasm>>
  485. <<elseif getvar("$rape") > 0 and $rape != $rape_count and getvar("$orgasm") > 0 and $orgasm != $orgasm_count>>
  486. <<set $pc.mood = 100>>
  487. <<set $orgasm_count = $orgasm>>
  488. <<set $rape_count = $rape>>
  489. <</if>>
  490. <!-- !! Drug stats-->
  491. <<if $pc.strongNarkota <= 0>>
  492. <<if getvar("$SNarkTimes") >= 3 and getvar("$SLomka") == 0>>
  493. <<set $SLomka = 1>>
  494. <</if>>
  495. <</if>>
  496. <<if getvar("$amphCount") > 3 and getvar("$amphHigh") <= 0>>
  497. <<set $addictChance = rand(1,10)>>
  498. <<if getvar("$addictChance") > 8>>
  499. <<set $amphWithdrawl = 2>>
  500. <</if>>
  501. <</if>>
  502. <<if $pc.strongNarkota > 0>>
  503. <<if getvar("$SLomka") > 0>>
  504. <<set $SLomka = 0>>
  505. <</if>>
  506. <<set $pc.mood = 100>>
  507. <</if>>
  508. <!-- !!stop auto birth control pill taking if the player believes they are pregnant or are pregnant-->
  509. <<if ($pc.thinkpreg == 1 or $pc.knowpreg == 1) and getvar("$tabletkicheck") == 1>>
  510. <<set $tabletkicheck = 0>>
  511. <</if>>
  512. <<if !$birth_control>><<set $birth_control = {}>><</if>>
  513. <<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>>
  514. <<setinit $birth_control['remind_icon'] = 1>>
  515. <<else>>
  516. <<setinit $birth_control['remind_icon'] = 0>>
  517. <</if>>
  518. <<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>>
  519. <!-- !!absence from work in a factory in Pavlovsk-->
  520. <<set $FabrikaProgul += 1>>
  521. <<set $FabrikaProgulDay = $time.day>>
  522. <</if>>
  523. <<if getvar("$cumcondslip") <= 0>>
  524. <<set $cumcondslip_deep = 0>>
  525. <</if>>
  526. <!-- !!Sex stat update-->
  527. <<run $pc.sexStatInc('mast','aware',$mastr)>> <<set $mastr = 0>>
  528. <<run $pc.sexStatInc('hj','aware',$hj)>> <<set $hj = 0>>
  529. <<run $pc.sexStatInc('bj','aware',$bj)>> <<set $bj = 0>>
  530. <<run $pc.sexStatInc('vaginal','aware',$sex)>> <<set $sex = 0>>
  531. <<run $pc.sexStatInc('anal','aware',$anal)>> <<set $anal = 0>>
  532. <<run $pc.sexStatInc('cuni','aware',$kuni)>> <<set $kuni = 0>>
  533. <<run $pc.sexStatInc('anal_strap_give','aware',$pegging)>> <<set $pegging = 0>>
  534. <!-- !!Pain calculation-->
  535. <!-- !!update skills and attributes to pcs_ from there _lvl values plus adjustments based on condition-->
  536. <<gs 'stat_sklattrib_lvlset'>>
  537. <!-- !!--------------------------Job Checks For Icons---------------------------------->
  538. <<if !$acting>><<set $acting = {}>><</if>>
  539. <<if !$audition>><<set $audition = {}>><</if>>
  540. <<if ($acting['shoot_day'] == $time.daystart and getvar("$actress_cast") == 1) or $audition['day'] == $time.daystart>>
  541. <<setinit $acting['icon'] = 1>>
  542. <<else>>
  543. <<setinit $acting['icon'] = 0>>
  544. <</if>>
  545. <<if getvar("$model_job_week") < 2 and getvar("$model['status']") == 1>>
  546. <<setinit $model['icon'] = 1>>
  547. <<else>>
  548. <<setinit $model['icon'] = 0>>
  549. <</if>>
  550. <<if !$pfilmday>><<set $pfilmday = []>><</if>>
  551. <<if $pfilmday[0] > 0>>
  552. <<setinit $pornstar['icon'] = 1>>
  553. <<else>>
  554. <<setinit $pornstar['icon'] = 0>>
  555. <</if>>
  556. <<if $quest('therapist').therapistday != $time.daystart and $remindedtherapyday != $time.daystart and $quest('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>>
  557. <<set $remindedtherapyday = $time.daystart>>
  558. <<gt 'therapist_reminder'>>
  559. <</if>>
  560. <!-- !!--------------------------Booty Call SMSs---------------------------------->
  561. <<if arrsize('$FuckBuddy') > 0 and $time.hour > 1>>
  562. <<gs 'booty_call' 'SMS raiser'>>
  563. <</if>>
  564. :: stat_hourly_changes
  565. /*
  566. <<if getvar("$SbrosNerdism") == 1 and getvar("$orgasm") != 10>>
  567. <<set $pcs_nerd = $pc.skillLevel("spirit") / 10 - $orgasm>>
  568. <<elseif getvar("$sbrosnerdism") == 1 and getvar("$orgasm") == 10>>
  569. <<set $pcs_nerd = $pc.skillLevel("spirit") / 9 - $orgasm>>
  570. <</if>>
  571. <<if getvar("$pcs_nerd") < 0>>
  572. <<set $pcs_nerd = 0>>
  573. <</if>>
  574. <<if getvar("$obkvsdam") > 0>>
  575. <<set $obkvsdam = rand(2, 5)>>
  576. <</if>>
  577. <<if getvar("$scpopt") > 1>>
  578. <<set $scpopt = 0>>
  579. <</if>>
  580. <<if !$amphetamineBonus>><<set $amphetamineBonus = 1>><</if>>
  581. <<if getvar("$insleep") == 1>>
  582. <<else>>
  583. <<if $pc.pcs_sleep <= 0>>
  584. <<setinit $pcs_condition['lack_of_sleep'] += 2>>
  585. <<if getvar("$pc.mood_type['slpredcheck']") == 1>>
  586. <<set $pc.mood -= 5>>
  587. <</if>>
  588. <<setinit $pc.mood_type['slpredcheck'] = 1>>
  589. <<else>>
  590. <<setinit $pc.mood_type['slpredcheck'] = 0>>
  591. <</if>>
  592. <<if $pc.pcs_energy == 0>>
  593. <<if getvar("$pc.mood_type['nrgredcheck']") == 1>>
  594. <<set $pc.mood -= 5>>
  595. <</if>>
  596. <<setinit $pc.mood_type['nrgredcheck'] = 1>>
  597. <<else>>
  598. <<setinit $pc.mood_type['nrgredcheck'] = 0>>
  599. <</if>>
  600. <<if $pc.pcs_hydra == 0>>
  601. <<if getvar("$pc.mood_type['hydredcheck']") == 1>>
  602. <<set $pc.mood -= 5>>
  603. <</if>>
  604. <<setinit $pc.mood_type['hydredcheck'] = 1>>
  605. <<else>>
  606. <<setinit $pc.mood_type['hydredcheck'] = 0>>
  607. <</if>>
  608. <</if>>
  609. <<gs 'femcyc'>>
  610. <<if getvar("$insleep") == 0 and getvar("$period['cramp']") == 0 and getvar("$placebopart") > 0 and getvar("$LutH") > 0 and $pc.knowpreg == 0>>
  611. <<setinit $period['cramp'] = 1>>
  612. <<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.'>>
  613. <<elseif getvar("$mesec") > 0>>
  614. <<setinit $period['cramp'] = 0>>
  615. <</if>>
  616. <!-- !! code to trigger vomitting based on morning sickness, hangovers, or just plain bad luck-->
  617. <<if getvar("$insleep") == 0>>
  618. <<setinit $vomit['daily_check'] = 0>>
  619. <</if>>
  620. <<if getvar("$insleep") == 1>>
  621. <<if getvar("$vomit['daily_check']") == 0>>
  622. <<setinit $vomit['daily_check'] = 1>>
  623. <<if $pc.alko > 4>>
  624. <<setinit $vomit['hangover'] = 1>>
  625. <<elseif getvar("$pc.pregchem") > 600 and getvar("$pc.pregchem") < 2160 and rand(1,4) == 4>>
  626. <<setinit $vomit['morning_sick'] = 1>>
  627. <<elseif rand(1,100) == 100>>
  628. <<setinit $vomit['unlucky'] = 1>>
  629. <</if>>
  630. <</if>>
  631. <</if>>
  632. <<if $quest('therapist').hypnoAddict > 0>>
  633. <<hypnoAddiction>>
  634. <</if>>
  635. <!-- !!mana regen-->
  636. <<set $pcs_mana += $manamax / 20>>
  637. <<if $pc.alko > 0 and getvar("$pc.alkoblock") == 0>>
  638. <<if $pc.alko >= 6>>
  639. <<if $pc.skillLevel("run") > 0>>
  640. <<setn $run_deg -= 1>>
  641. <</if>>
  642. <<if getvar("$vball_lvl") >= 50>>
  643. <<setn $vball_deg -= 1>>
  644. <</if>>
  645. <<if $pc.alko >= 10>>
  646. <<if $pc.skillLevel("strength") > 10>>
  647. <<setn $stren_deg -= 1>>
  648. <</if>>
  649. <<if getvar("$pc.vitality") > 10>>
  650. <<setn $vital_deg -= 1>>
  651. <</if>>
  652. <<if $pc.skillLevel("intelligence") > 10>>
  653. <<setn $intel_deg -= 1>>
  654. <</if>>
  655. <<set $pc.alko -= rand(0,1)>>
  656. <</if>>
  657. <</if>>
  658. <<set $pc.alko -= rand(0,1)>>
  659. <<elseif $pc.alko < 0>>
  660. <<set $pc.alko = 0>>
  661. <</if>>
  662. <<if getvar("$shame") > 0>>
  663. <<setn $shame -= 1>> <<setn $pc.mood -= 5>>
  664. <</if>>
  665. <<if getvar("$smoker") >= 20 and getvar("$NarkImmune") == 0>>
  666. <<setn $smokerNeed += 1>>
  667. <</if>>
  668. <<if getvar("$smokerNeed") > 10 and getvar("$insleep") == 0 and $pc.mood > 20 and getvar("$NarkImmune") == 0>>
  669. <<set $pc.mood -= $pc.mood / 10>>
  670. <</if>>
  671. <<if getvar("$smokerNeed") > 300>>
  672. <<set $smokerNeed = 0>> <<set $smoker = 0>>
  673. <</if>>
  674. <<if $pc.strongNarkota > 0>>
  675. <<set $pc.mood -= (40 / $pc.strongNarkota)>> <<setn $pc.strongNarkota -= 1>>
  676. <</if>>
  677. <<if getvar("$amphWithdrawl") >= 5>>
  678. <<setn $amphWithdrawl += 1>> <<set $pc.mood -= ($amphWithdrawl / 5)>>
  679. <</if>>
  680. <<if getvar("$amphHigh") > 0>>
  681. <<if getvar("$amphWithdrawl") < 2>>
  682. <<set $amphWithdrawl = 2>>
  683. <</if>>
  684. <<set $amphetamineBonus = 3>>
  685. <<set $amphHigh -= 4>>
  686. <<set $pc.mood += (2 * $amphHigh)>>
  687. <<elseif getvar("$amphHigh") <= 0 and getvar("$amphWithdrawl") == 2>>
  688. <<if getvar("$amphIntake") > 0>>
  689. <<set $amphIntake -= 1>>
  690. <<else>>
  691. <<set $amphWithdrawl = 0>>
  692. <</if>>
  693. <<set $amphHigh = 0>>
  694. <<set $amphetamineBonus = 2>>
  695. <<set $pc.mood -= $pc.mood / 10>>
  696. <<elseif getvar("$amphIntake") > 0>>
  697. <<set $amphWithdrawl += 1>>
  698. <<elseif getvar("$amphHigh") == 0 and getvar("$amphWithdrawl") == 0>>
  699. <<set $amphetamineBonus = 1>>
  700. <</if>>
  701. <<if getvar("$amphWithdrawl") > 169>>
  702. <<set $amphWithdrawl = 1>> <<set $amphetamineBonus = 1>> <<set $amphCount = 0>>
  703. <</if>>
  704. <<if getvar("$SLomka") > 0 and $pc.mood > 10>>
  705. <<setn $SLomka += 1>> <<set $pc.mood -= $pc.mood / 10>>
  706. <</if>>
  707. <<if getvar("$SLomka") > 100 and $pc.strongNarkota <= 0>>
  708. <<set $SLomka = 0>> <<set $SNarkTimes = 0>>
  709. <</if>>
  710. <<if getvar("$jointhigh") > 0>>
  711. <<setn $jointhigh -= 1>>
  712. <</if>>
  713. <<if getvar("$pc.narkoman") == 1 and $pc.narkday != $time.daystart>>
  714. <<set $pc.pcs_health -= 5>>
  715. <<if $pc.mood > 40>>
  716. <<set $pc.mood -= 40>>
  717. <<else>>
  718. <<set $pc.mood = 5>>
  719. <</if>>
  720. <</if>>
  721. <<if !$wardrobe.isWearingPanties and $wardrobe.PCloPants > 0 and $wardrobe.PCloPanties == 0 and $wardrobe.clothingworntype != 'nude' and $pc.trait('commando_lvl') < 2>>
  722. <<if $pc.trait('commando_lvl') < 1>>
  723. <<set $mosol += 2>>
  724. <<elseif $pc.trait('commando_lvl') == 1>>
  725. <<set $mosol += 1>>
  726. <</if>>
  727. <<if getvar("$mosol") >= 100>>
  728. <<setn $pc.mood -= 5>>
  729. <</if>>
  730. <<if getvar("$mosol") >= 60 and $pc.pain('pubic') < 80>>
  731. <<gs 'pain' 1 'pubic' 'ache'>>
  732. <</if>>
  733. <</if>>
  734. <<if getvar("$mosol") > 0>>
  735. <<if $wardrobe.isWearingPanties or $wardrobe.clothingworntype == 'nude' or $wardrobe.PCloPanties == 1>>
  736. <<set $mosol -= rand(0,1)>>
  737. <</if>>
  738. <</if>>
  739. <<if getvar("$sickstage") == 1>>
  740. <<setn $sick += 1>> <<setn $sicktimer += 1>>
  741. <</if>>
  742. <<if getvar("$sickstage") == 1 and getvar("$sicktimer") >= 80>>
  743. <<set $sicktimer = 0>> <<set $sickstage = 2>>
  744. <</if>>
  745. <<if getvar("$sickstage") == 2 and getvar("$sick") > 0>>
  746. <<setn $sick -= 1>>
  747. <</if>>
  748. <<if getvar("$sickstage") == 2 and getvar("$sick") <= 0>>
  749. <<set $sick = 0>> <<set $sickstage = 0>>
  750. <</if>>
  751. <<if getvar("$perkice") > 0>>
  752. <<setn $perkice -= 1>>
  753. <</if>>
  754. <<if $pc.frost > 0>>
  755. <<setn $pc.frost -= 1>>
  756. <</if>>
  757. <<if getvar("$KGOLpers") > 0>>
  758. <<if $KGHP < $KGHPMAX>>
  759. <<setn $KGHP += 10>>
  760. <</if>>
  761. <<if $KGMana < $KGManaMax>>
  762. <<setn $KGMana += 10>>
  763. <</if>>
  764. <</if>>
  765. <!-- !! Panty happiness gain-->
  766. <<if $pc.mood < 60 and $wardrobe.pantyworntype == 'cats'>>
  767. <<setn $pc.mood += 2>>
  768. <</if>>
  769. <<if $pc.mood < 60 and $wardrobe.braworntype == 'cats'>>
  770. <<setn $pc.mood += 2>>
  771. <</if>>
  772. <!-- !!Arousal adjustments-->
  773. <<if (getvar("$PanThinness") >= 5 and getvar("$BraThinness") >= 5) and $pc.horny < 25>>
  774. <<set $pc.horny += 10>>
  775. <<elseif $pc.horny < 10 and (getvar("$PanThinness") >= 5 or getvar("$BraThinness") >= 5)>>
  776. <<set $pc.horny += 5>>
  777. <</if>>
  778. <<if getvar("$aphrodisiac_timer") >= 1>>
  779. <<if $pc.horny < 80>>
  780. <<set $pc.horny = 80>>
  781. <<else>>
  782. <<set $pc.horny += 10>>
  783. <</if>>
  784. <<set $aphrodisiac_timer -= 1>>
  785. <</if>>
  786. <<if $wardrobe.isWearingPanties and $pc.clit_size >= 25 and $pc.horny < 60>>
  787. <<setn $pc.horny += 20>>
  788. <</if>>
  789. <<if getvar("$insleep") == 0>>
  790. <<gs 'sweat' 'add' `rand(0,1)`>>
  791. <<if $weather.temperature >= 20>>
  792. <<gs 'sweat' 'add' `rand(0,1)`>>
  793. <</if>>
  794. <</if>>
  795. <!-- ! vovan edition, from 1.2.5-->
  796. <<if getvar("$huntersAndreisex") > 0>>
  797. <<setn $huntersAndreisex -= 1>>
  798. <</if>>
  799. <<if getvar("$huntersSergeisex") > 0>>
  800. <<setn $huntersSergeisex -= 1>>
  801. <</if>>
  802. <<if getvar("$huntersIgorsex") > 0>>
  803. <<setn $huntersIgorsex -= 1>>
  804. <</if>>
  805. <<if getvar("$huntslutsex") > 0>>
  806. <<setn $huntslutsex -= 1>>
  807. <</if>>
  808. <<if getvar("$mira_go_blok") > 0>>
  809. <<setn $mira_go_blok -= 1>>
  810. <</if>>
  811. <<if getvar("$mira_no_home") > 0>>
  812. <<setn $mira_no_home -= 1>>
  813. <</if>>
  814. <<gs 'traits' 'hourly'>>
  815. <!-- !! I do not think that this should be here, but I put it here temporaly - rachels-->
  816. <!-- !! generate SMS for nerd games-->
  817. <<if rand(0,2) == 0 and $time.hour > 10 and $time.hour < 16 and $time.weekday == 1 and getvar("$time.yearstart") == 1 and $quest('school').func('isGroupMember','nerds') and $nerd_game['invite_day'] < $time.daystart>>
  818. <<gs 'nerd_game_night' 'summer_invite_sms' 'Add SMS'>>
  819. <</if>>
  820. <<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>>
  821. <<gs 'nerd_game_night' 'summer2_invite_sms' 'Add SMS'>>
  822. <</if>> */
  823. :: stat_15minutes_changes
  824. /*
  825. <<if $pc.horny > 100>>
  826. <<set $Trig15Minute = $totminut>>
  827. <<else>>
  828. <<set $Trig15Minute += 15>>
  829. <!-- ! WD: Fix vibrator arousal to trigger every 15 minutes, moved from 'time' location-->
  830. <<if $pc.vibratorin == 1>>
  831. <<set $pc.horny += rand(1, 5)>>
  832. <</if>>
  833. <!-- ! WD: Fixed Piecing arousal to trigger every 15 minutes, instead of once per day-->
  834. <<if $pc.horny < 70>>
  835. <<set $hornystat = 0>>
  836. <<if $pc.decoGet('piercing','nipple') > 0 and $pc.decoGet('piercing','nipple') < 10000>>
  837. <<setn $hornystat += 1>>
  838. <</if>>
  839. <<if $pc.decoGet('piercing','pussy') > 0 and $pc.decoGet('piercing','pussy') < 10000>>
  840. <<setn $hornystat += 1>>
  841. <</if>>
  842. <<set $hornyStat = $hornystat * 4>>
  843. <<if $pc.decoGet('piercing','tongue') > 0 and $pc.decoGet('piercing','tongue') < 10000>>
  844. <<setn $hornystat += 1>>
  845. <</if>>
  846. <<if $pc.decoGet('piercing','lip') > 0 and $pc.decoGet('piercing','lip') < 10000>>
  847. <<setn $hornystat += 1>>
  848. <</if>>
  849. <<if $pc.decoGet('piercing','ears') > 0 and $pc.decoGet('piercing','ears') < 10000>>
  850. <<setn $hornystat += 1>>
  851. <</if>>
  852. <<if $pc.decoGet('piercing','nose') > 0 and $pc.decoGet('piercing','nose') < 10000>>
  853. <<setn $hornystat += 1>>
  854. <</if>>
  855. <<if $pc.decoGet('piercing','eyebrow') > 0 and $pc.decoGet('piercing','eyebrow') < 10000>>
  856. <<setn $hornystat += 1>>
  857. <</if>>
  858. <<if $pc.decoGet('piercing','navel') > 0 and $pc.decoGet('piercing','navel') < 10000>>
  859. <<setn $hornystat += 1>>
  860. <</if>>
  861. <<set $pc.horny += ($hornyStat / 4 + rand(1 , 4) <= $hornyStat % 4) ? 1 : 0>>
  862. <</if>>
  863. <!-- ! WD: Clothing-->
  864. <<if getvar("$CloStyle") == 4 and $pc.horny < 70>>
  865. <<set $pc.horny += rand(0, 2)>>
  866. <</if>>
  867. <<if ($wardrobe.PCloSkirt > 5 or $wardrobe.PCloPants > 5) and $pc.horny < 50>>
  868. <<set $pc.horny += rand(0, 1)>>
  869. <</if>>
  870. <<if $wardrobe.PCloTopCut == 4 and $pc.horny < 50>>
  871. <<set $pc.horny += rand(0, 1)>>
  872. <</if>>
  873. <</if>>
  874. <!-- !!SECTION: Bimbo (15 minute interval update checks)-->
  875. <<if getvar("$bimbolevel") == 2>>
  876. <<if $pc.mood < 100>>
  877. <<set $pc.mood += (($pc.mood / 100) * (rand(0,1)))>>
  878. <</if>>
  879. <<if $pc.horny < 25>>
  880. <<set $pc.horny = 25>>
  881. <</if>>
  882. <<if $pc.horny < 100>>
  883. <<setn $pc.horny += 1>>
  884. <</if>>
  885. <</if>>
  886. <<if getvar("$bimbolevel") == 3>>
  887. <<if $pc.mood < 100>>
  888. <<set $pc.mood += (($pc.mood / 100) * (rand(0,2)))>>
  889. <</if>>
  890. <<if $pc.horny < 50>>
  891. <<set $pc.horny = 50>>
  892. <</if>>
  893. <<if $pc.horny < 100>>
  894. <<setn $pc.horny += 2>>
  895. <</if>>
  896. <</if>>
  897. <!-- !!SECTION: Commando trait (15 minute interval update checks)-->
  898. <<if $wardrobe.clothingworntype != 'nude'>>
  899. <<if !$wardrobe.isWearingPanties>>
  900. <!-- !! Addition to trait exp/lvls-->
  901. <<if $pc.trait('commando_lvl') == 0>>
  902. <<if $wardrobe.PCloSkirt > 0>>
  903. <<run $pc.traitInc('commando_exp',2)>>
  904. <<else>>
  905. <<run $pc.traitInc('commando_exp',1)>>
  906. <</if>>
  907. <<if $pc.trait('commando_exp') >= 1000>>
  908. <<run $pc.traitSet('commando_exp',50)>>
  909. <<run $pc.traitSet('commando_lvl',1)>>
  910. <<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...'>>
  911. <</if>>
  912. <<elseif $pc.trait('commando_lvl') == 1>>
  913. <<run $pc.traitInc('commando_exp',2)>>
  914. <<if $pc.trait('commando_exp') >= 1000>>
  915. <<run $pc.traitSet('commando_exp',50)>>
  916. <<run $pc.traitSet('commando_lvl',2)>>
  917. <<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.'>>
  918. <</if>>
  919. <<elseif $pc.trait('commando_lvl') == 2>>
  920. <<set $mosol = 0>>
  921. <<run $pc.traitInc('commando_exp',2)>>
  922. <<if $pc.trait('commando_exp') >= 1000>>
  923. <<run $pc.traitSet('commando_exp',500)>>
  924. <<run $pc.traitSet('commando_lvl',3)>>
  925. <<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.'>>
  926. <</if>>
  927. <<elseif $pc.trait('commando_lvl') == 3>>
  928. <<run $pc.traitInc('commando_exp',1)>>
  929. <</if>>
  930. <<elseif $pc.trait('commando_lvl') > 0>>
  931. <!-- !!Reduction from exp/lvls-->
  932. <<if $pc.trait('commando_lvl') == 3>>
  933. <<run $pc.traitDec('commando_exp',1)>>
  934. <<set $pc.mood -= 1>>
  935. <<if $pc.trait('commando_exp') <= 0>>
  936. <<run $pc.traitSet('commando_exp',500)>>
  937. <<run $pc.traitSet('commando_lvl',2)>>
  938. <<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.'>>
  939. <</if>>
  940. <<else>>
  941. <<run $pc.traitDec('commando_exp',1)>>
  942. <<if $pc.trait('commando_exp') <= -0>>
  943. <<run $pc.traitSet('commando_exp',900)>>
  944. <<run $pc.traitDec('commando_lvl',1)>>
  945. <</if>>
  946. <</if>>
  947. <</if>>
  948. <!-- !!{
  949. if $wardrobe.braworntype = 'none':
  950. end} -->
  951. <</if>>
  952. <!-- !! This is the Succubus non-direct injection (pun intented) sex to sexnutrition and the sexnutrition conversion handling-->
  953. <<if getvar("$succubusflag") == 1>>
  954. <<if $quest('therapist').hypnoAddict > 0>>
  955. <<RestTherapyVariables>>
  956. <</if>>
  957. <<if $pc.horny < 50>>
  958. <<set $pc.horny = 50>>
  959. <</if>>
  960. <<if $pc.horny < 100>>
  961. <<set $pc.horny += getvar('$succublvl')>>
  962. <</if>>
  963. <<if getvar("$succhungry") > 0>>
  964. <<set $pc.pcs_energy -= $succhungry * getvar('$succublvl')>>
  965. <<set $pc.pcs_hydra -= $succhungry * getvar('$succublvl')>>
  966. <<set $pc.pcs_sleep -= $succhungry * getvar('$succublvl')>>
  967. <</if>>
  968. <<if arrsize('sparrvol') > 0>>
  969. <<set $suctempi = -1>>
  970. <<warn 'JUMP MARKER ENCOUNTERED: :SuccAbsorbLoop'>>
  971. <<set $suctempi += 1>>
  972. <<if getvar("$suctempi") <= 1 or getvar("$suctempi") == 3 or getvar("$suctempi") == 4 or getvar("$suctempi") >= 8>>
  973. <<set $suctemparr = arrpos('sparrloc',suctempi)>>
  974. <<if getvar("$suctemparr") >= 0 and $sparrloc[$suctemparr] == $suctempi and getvar("$sparrvol["+$suctemparr+"]") > 0>>
  975. <<set $scfeed = succublvl + rand(1,4)>>
  976. <<set $sexnutrition += 30 * $scfeed>>
  977. <<set $succubxp += 5>>
  978. <<set $cumsumbod -= $sparrvol[$suctemparr]>>
  979. <!-- ! msg "we've got xp!" + sparrloc[$suctemparr]-->
  980. <<set $sucabscum = 1>>
  981. <<gs 'cum_cleanup' 'cleandeposit' $suctemparr>>
  982. <<setinit $cumloc[$suctempi] = 0>>
  983. <<set $spdirty = 0>>
  984. <!-- !debug code $stat_msg += '<BR>Absorb ext <<sexnutrition>>'-->
  985. <</if>>
  986. <</if>>
  987. <<if getvar("$suctempi") < 17>>
  988. <<warn 'JUMP COMMAND ENCOUNTERED: jump SuccAbsorbLoop'>>
  989. <</if>>
  990. <<setinit $pc.cumAtLocation(0) = 0>>
  991. <<setinit $pc.cumAtLocation(1) = 0>>
  992. <<setinit $pc.cumAtLocation(2) = 0>>
  993. <<setinit $pc.cumAtLocation(3) = 0>>
  994. <<setinit $pc.cumAtLocation(4) = 0>>
  995. <<setinit $pc.cumAtLocation(5) = 0>>
  996. <<setinit $pc.cumAtLocation(6) = 0>>
  997. <<setinit $pc.cumAtLocation(7) = 0>>
  998. <<setinit $pc.cumAtLocation(8) = 0>>
  999. <<setinit $pc.cumAtLocation(9) = 0>>
  1000. <<setinit $pc.cumAtLocation(10) = 0>>
  1001. <<setinit $pc.cumAtLocation(11) = 0>>
  1002. <<setinit $pc.cumAtLocation(12) = 0>>
  1003. <<setinit $pc.cumAtLocation(13) = 0>>
  1004. <<setinit $pc.cumAtLocation(14) = 0>>
  1005. <<setinit $pc.cumAtLocation(15) = 0>>
  1006. <<setinit $pc.cumAtLocation(16) = 0>>
  1007. <<setinit $pc.cumAtLocation(17) = 0>>
  1008. <</if>>
  1009. <<if $suclezsex < $lesbian>>
  1010. <<set $sexnutrition += getvar('$succublvl') * 20>>
  1011. <<set $suclezsex = $lesbian>>
  1012. <<set $succubxp += 5>>
  1013. <<set $sucabslez = 1>>
  1014. <</if>>
  1015. <<if getvar("$sexnutrition") > 0>>
  1016. <<if getvar("$sucskill") >= 3 and getvar("$succublvl") >= 2>>
  1017. <<set $sexnutrition += ($sexnutrition * 2) / 10>>
  1018. <</if>>
  1019. <<if getvar("$sucabslez") == 1 and getvar("$sucabscum") == 1>>
  1020. <<set $sucabs1 = 'absorbed energy from the woman you had sex with'>>
  1021. <<set $sucabs2 = ' and you '>>
  1022. <<set $sucabs3 = 'absorb the semen in your body'>>
  1023. <<elseif getvar("$sucabscum") == 1>>
  1024. <<set $sucabs3 = 'absorb the semen in your body'>>
  1025. <<elseif getvar("$sucabslez") == 1>>
  1026. <<set $sucabs1 = 'absorbed energy from the woman you had sex with'>>
  1027. <<else>>
  1028. <!-- !!Debug code-->
  1029. <<set $stat_msg += '<BR>SOMETHING HAPPENED!'>>
  1030. <</if>>
  1031. <<set $stat_msg += '<BR>You $sucabs1$sucabs2$sucabs3, gaining nourishment.'>>
  1032. <<set $sucabslez = 0>> <<set $sucabscum = 0>>
  1033. <<set $sucabs1 = ''>> <<set $sucabs2 = ''>> <<set $sucabs3 = ''>>
  1034. <<if $pc.mood < 100>>
  1035. <<set $pc.mood += (($pc.mood / 100) * 5)>>
  1036. <</if>>
  1037. <<if $pc.pcs_energy > 100>>
  1038. <<set $entemp = ($pc.pcs_energy - 100)>>
  1039. <</if>>
  1040. <<if getvar("$sucexcess") < 0 and getvar("$sexnutrition") > 20 and $pc.pcs_energy > 30>>
  1041. <<if $sexnutrition - 20 >= (0 - sucexcess) * 2>>
  1042. <<set $sexnutrition += $sucexcess * 2>>
  1043. <<set $sucexcess = 0>>
  1044. <<else>>
  1045. <<set $sucexcess += ($sexnutrition - 20) / 2>>
  1046. <<set $sexnutrition = 20>>
  1047. <</if>>
  1048. <</if>>
  1049. <<set $pc.pcs_energy += $sexnutrition / 2>>
  1050. <<set $pc.pcs_hydra += $sexnutrition>>
  1051. <<set $pc.pcs_sleep += $sexnutrition / 20>>
  1052. <<if getvar("$succhungry") > 0>>
  1053. <<set $succhungry = 0>>
  1054. <</if>>
  1055. <<set $sexnutrition = 0>>
  1056. <<if $pc.pcs_energy > 100>>
  1057. <<set $sucexcess += ($pc.pcs_energy - $entemp - 100)>> <<set $pc.pcs_energy = 100 + $entemp>>
  1058. <</if>>
  1059. <</if>>
  1060. <</if>>
  1061. <!-- !! safeguards to prevent bimbolevel from going above or below its intended limits-->
  1062. <<if getvar("$bimbolevel") > 3>>
  1063. <<set $bimbolevel = 3>>
  1064. <</if>>
  1065. <<if getvar("$bimbolevel") < 0>>
  1066. <<set $bimbolevel = 0>>
  1067. <</if>>
  1068. <<for _afterPassage range Story.lookup("tags", 'stat_15minutes_changes_after')>>
  1069. <<include _afterPassage.title>>
  1070. <</for>>
  1071. <!-- END: stat_15minutes_changes -->
  1072. */