din_bad.qsrc 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004
  1. # din_bad
  2. $mobile_check = {
  3. gs 'stat'
  4. if vladimirday ! daystart and hour >= 15 and hour <= 17:
  5. if vladimirQW = 20:
  6. '<b><font color="red">Your phone is ringing</font></b>'
  7. $caller = 'Vladimir'
  8. $callerid = 'images/characters/city/vladimir/001.jpg'
  9. gs 'telefon','phone_ring'
  10. pl'<center><a href="exec:gt ''qwloc'',''2''"><img src="images/system/phone/call_accept.png"></a> <a href="exec:vladimirday = daystart & gt $loc, $metka"><img src="images/system/phone/decline.png"></a></center>'
  11. elseif vladimirQW = 25 and week = 6:
  12. '<b><font color="red">Your phone is ringing</font></b>'
  13. $caller = 'Vladimir'
  14. $callerid = 'images/characters/city/vladimir/001.jpg'
  15. gs 'telefon','phone_ring'
  16. pl'<center><a href="exec:gt ''qwloc'',''3''"><img src="images/system/phone/call_accept.png"></a> <a href="exec:vladimirday = daystart & gt $loc, $metka"><img src="images/system/phone/decline.png"></a></center>'
  17. elseif vladimirQW = 35 and week = 6:
  18. '<b><font color="red">Your phone is ringing</font></b>'
  19. $caller = 'Vladimir'
  20. $callerid = 'images/characters/city/vladimir/001.jpg'
  21. gs 'telefon','phone_ring'
  22. pl'<center><a href="exec:gt ''qwloc'',''4''"><img src="images/system/phone/call_accept.png"></a> <a href="exec:vladimirday = daystart & gt $loc, $metka"><img src="images/system/phone/decline.png"></a></center>'
  23. end
  24. end
  25. if leonidSlaveDay = daystart and hour >= 6 and hour <= 10 and leonidVisit = 0:
  26. '<b><font color="red">Your phone is ringing</font></b>'
  27. $caller = 'Leonid Vostov'
  28. $callerid = 'images/characters/pavlovsk/resident/leonid/leonidphone.jpg'
  29. gs 'telefon','phone_ring'
  30. pl'<center><a href="exec:gt ''leonid'', ''call''"><img src="images/system/phone/call_accept.png"></a> <a href="exec:leonidSlaveDay = daystart & gt $loc, $metka"><img src="images/system/phone/decline.png"></a></center>'
  31. end
  32. if QWdogreiqTimer = 0 and QWdogReiq = 2 and week = 7 and qwdogiventday ! daystart and hour >= 12:
  33. '<b><font color="red">Your phone is ringing</font></b>'
  34. $caller = 'Margaret'
  35. $callerid = ''
  36. gs 'telefon','phone_ring'
  37. pl''
  38. pl''
  39. pl''
  40. pl''
  41. pl''
  42. pl''
  43. pl''
  44. pl''
  45. pl''
  46. pl''
  47. '<center><a href="exec:gt ''qwlocdog''"><img src="images/system/phone/call_accept.png"></a> <a href="exec:qwdogiventday = daystart & gt $loc, $metka"><img src="images/system/phone/decline.png"></a></center>'
  48. end
  49. !! iterating all lovers
  50. lover_number = 0
  51. :loverloop
  52. if pcs_lovers[lover_number] = 1 and loverday[lover_number] ! daystart and hour > 5 and hour < 20 and ringA = 0 and rand(1,7) > 5:
  53. if pcs_apprnc < vneshlover[lover_number]:
  54. loverrelation[lover_number] -= 1
  55. if loverrelation[lover_number] = 0:
  56. '<b><font color="red">Your lover hasn''t been calling you lately, they''ve probably grown tired of you.</font></b>'
  57. else
  58. 'Your lover <<$loverdesc[lover_number]>> has not called you.'
  59. end
  60. else
  61. ring = 1
  62. ringA = 1
  63. '<b><font color="red">Your phone is ringing</font></b>'
  64. PLAY 'sound/old_phone.mp3',30
  65. $caller = '<<$loverdesc[lover_number]>>'
  66. $callerid = 'images/characters/shared/'+lover_picture[lover_number]+'.jpg'
  67. gs 'telefon','phone_ring'
  68. pl'<center><a href="exec:gt ''telefon'', ''lover'', <<lover_number>>"><img src="images/system/phone/call_accept.png"></a> <a href="exec:gt $loc, $metka"><img src="images/system/phone/decline.png"></a></center>'
  69. end
  70. end
  71. lover_number += 1
  72. if lover_number < arrsize('pcs_lovers'): jump 'loverloop'
  73. killvar 'lover_number'
  74. }
  75. $d_salf = {
  76. *clr & cla
  77. '<center><h1>Tissues</h1></center>'
  78. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  79. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  80. '<td cellspacing="0" cellpadding="0" valign="top">'
  81. if cumloc[13] > 0 or cumloc[11] > 0 or cumloc[16] > 0: '<a href="exec:salfetka -= 1 & cumspclnt = 12 & gs ''cum_cleanup'' & cumspclnt = 9 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''"><b>Wipe your face and hands clean</b></a>'
  82. if cumloc[14] > 0: '<a href="exec:salfetka -= 1 & cumspclnt = 14 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''"><b>Wipe your belly clean</b></a>'
  83. if cumloc[15] > 0: '<a href="exec:salfetka -= 1 & cumspclnt = 16 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''"><b>Wipe your breasts clean</b></a>'
  84. if cumloc[0] > 0 or cumloc[1] > 0 or cumloc[3] > 0 or cumloc[4] > 0: '<a href="exec:salfetka -= 1 & cumspclnt = 15 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''"><b>Wipe your ass and pussy clean</b></a>'
  85. if cumloc[10] > 0 or cumloc[9] > 0: '<a href="exec:salfetka -= 1 & cumspclnt = 17 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''"><b>Wipe your arms and legs clean</b></a>'
  86. if cumloc[2] > 0 or cumloc[5] > 0 or cumloc[6] > 0 or cumloc[7] > 0: '<a href="exec:salfetka -= 1 & cumspclnt = 6 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''"><b>Clean your clothing</b></a>'
  87. if pcs_makeup ! 1: '<a href="exec:salfetka -= 1 & pcs_makeup = 1 & gs ''stat'' & gs ''din_bad'', ''d_bag''"><b>Remove your makeup</b></a>'
  88. '<a href="exec:gs ''stat'' & gs ''din_bad'', ''d_bag''"><br><b>Put tissues away</b></a>'
  89. '</td></tr></table></center>'
  90. }
  91. $d_mouthwash = {
  92. *clr & cla
  93. '<center><h1>Mouth Wash</h1></center>'
  94. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  95. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  96. '<td cellspacing="0" cellpadding="0" valign="top">'
  97. cumspclnt = 2
  98. gs 'cum_cleanup'
  99. pcs_breath = 1
  100. mouthwash -= 1
  101. gs 'stat'
  102. 'Your breath smells minty fresh.'
  103. ''
  104. act 'Done':gs 'stat' & gs 'din_bad', 'd_bag'
  105. '</td></tr></table></center>'
  106. }
  107. if $ARGS[0] = 'd_bag':
  108. *clr & cla
  109. gs 'stat'
  110. '<center><h1>Purse</h1></center>'
  111. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  112. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  113. '<td cellspacing="0" cellpadding="0" valign="top">'
  114. if salfetka > 0: 'You have <b><<salfetka>></b> wet wipes left in your purse. <a href="exec:dynamic $d_salf">Use a tissue</a>'
  115. if painkiller > 0 and pain['total'] > 0 and pain['killer'] = 0:
  116. 'You have <b><<painkiller>></b> painkiller'+iif(painkiller > 1, 's ', ' ')+'left in your purse. <a href="exec: pain[''killer''] += 1 & painkiller -= 1 & gs ''din_bad'', ''d_bag''">Take One</a>'
  117. elseif painkiller > 0 and (pain['total'] = 0 or pain['killer'] > 0):
  118. 'You have <b><<painkiller>></b> painkiller'+iif(painkiller > 1, 's ', ' ')+'left in your purse.'
  119. end
  120. if mouthwash > 0 and (pcs_breath = 0 or cumloc[12] = 1):
  121. 'There''s mouthwash in your purse. <b><<mouthwash>></b> uses remaining. <a href="exec:dynamic $d_mouthwash">Use mouthwash</a>'
  122. elseif mouthwash > 0 and pcs_breath = 1 and cumloc[12] = 0:
  123. 'There''s mouthwash in your purse. <b><<mouthwash>></b> uses remaining.'
  124. end
  125. if compact_mirror = 1:
  126. 'You have a <a href="exec: gt ''mirror'', ''d_bag_mirror''">compact mirror</a> in your purse'+iif(kosmetitka > 0, ' and some portable makeup.', '.')
  127. elseif compact_mirror = 0 and kosmetitka > 0:
  128. 'You have some portable makeup in your purse, but you need a compact mirror to apply it.'
  129. end
  130. !! Hair options
  131. *nl
  132. if (compact_mirror = 1 or greben = 1) and pcs_hairbsh = 0:
  133. 'There''s a hairbrush in your purse. <a href="exec:pcs_hairbsh = 1 & gs ''stat'' & gs ''din_bad'', ''d_bag''">Brush your hair</a>'
  134. elseif (compact_mirror = 1 or greben = 1) and pcs_hairbsh = 1:
  135. 'There''s a hairbrush in your purse. Your hair doesn''t need brushing right now.'
  136. end
  137. if pcs_hairlng > 41 and hscrunch >= 1 and hbraids = 0:
  138. if hscrunchw = 0 and hpingripw = 0: 'As you have a scrunchy, you can arrange your hair into a <a href="exec:hscrunchw = 1 & gs ''din_bad'', ''d_bag''">ponytail</a>. You have <<hscrunch>> scrunchies left.'
  139. if hscrunchw = 1: 'Remove the <a href="exec:hscrunchw = 0 & gs ''din_bad'', ''d_bag''">scrunchie</a> to get rid of the ponytail.'
  140. end
  141. if pcs_hairlng > 41 and hpingrip >= 1 and hbraids = 0:
  142. if hscrunchw = 0 and hpingripw = 0: 'You have several clips, pins and grips for you hair. Hence, you can <a href="exec:hpingripw = 1 & gs ''din_bad'', ''d_bag''">updo your hair</a>. You have <<hpingrip>> hair accessories at your disposal.'
  143. if hpingripw = 1: 'Let your hair <a href="exec:hpingripw = 0 & gs ''din_bad'', ''d_bag''">flow free</a>.'
  144. end
  145. if pcs_hairlng > 80 and hscrunch >= 2 and hbraids = 0:
  146. if hscrunchw = 0 and hpingripw = 0: 'You can use two hair ties to make yourself some <a href="exec:hpigtail = 1 & hscrunchw = 2 & gs ''din_bad'', ''d_bag''">pigtails</a>.'
  147. if hscrunchw = 2: '<a href="exec:hpigtail = 0 & hscrunchw = 0 & gs ''din_bad'', ''d_bag''">Remove</a> your scrunchies and let your hair flow free again.'
  148. end
  149. *nl
  150. if prezik + prezikcount + preziksabo > 0:
  151. if preziktype = 2 or preziksabo > 0:
  152. 'You have <b><<iif(preziktype = 2, prezikcount, prezikcount+prezik)>></b> normal condoms left, and <b><<iif(preziktype = 2, prezik+preziksabo, preziksabo)>></b> sabotaged <a href="exec:dynamic $din_Switch_Condom_Menu">condoms left in your purse.</a>'
  153. elseif preziktype < 2 and preziksabo = 0:
  154. 'You have <b><<prezik+prezikcount>></b> <a href="exec:dynamic $din_Switch_Condom_Menu">condoms left in your purse.</a>'
  155. end
  156. *nl
  157. else
  158. 'You are out of condoms.'
  159. end
  160. if amphetamine > 0: 'You have <b><<amphetamine>></b> tablets of amphetamine left in your purse. <a href="exec: gs ''drugs'', ''amphetamine'' & gs ''din_bad'', ''d_bag''">Take One</a>'
  161. if joint > 0: 'You have enough weed for <b><<joint>></b> joints.'
  162. if tabletki > 0 and pillsleft[ptype] > 0:
  163. 'You have <b><<tabletki>></b> unopened packages of <a href="exec:dynamic $d_tabletkied">birth control pills</a> and <b><<pillsleft[ptype]>></b> pills left in your opened package.'
  164. elseif tabletki = 0 and pillsleft[ptype] > 0:
  165. 'You have <b><<pillsleft[ptype]>></b> <a href="exec:dynamic $d_tabletkied">birth control pills</a> left in your purse.'
  166. elseif tabletki > 0 and pillsleft[ptype] = 0:
  167. 'You have <b><<tabletki>></b> unopened packages of <a href="exec:dynamic $d_tabletkied">birth control pills</a> in your purse.'
  168. else
  169. 'You are out of birth control pills.'
  170. end
  171. if mentats_have > 0 and mentats_dose < 3:
  172. '<a href="exec: gs ''drugs'', ''mentats'' & gs ''din_bad'', ''d_bag'' & *pl ''<font color = green><br>You swallow the neurobooster pill.</font>''">Use a neurobooster pill in your purse.</a> There are <b><<mentats_have>></b> pills left. The warning label says not to take more than one per day.'
  173. elseif mentats_have > 0:
  174. 'There are <b><<mentats_have>></b> neurobooster pills left. You really shouldn''t take any more pills today.'
  175. end
  176. if steroid_have > 0:'<a href="exec:dynamic $use_steroids & gs ''din_bad'', ''d_bag''">Use steroids.</a> You have <b><<steroid_have>></b> steroids left in your purse.'
  177. if bcream_have > 0:'<a href="exec:dynamic $use_bcream & gs ''din_bad'', ''d_bag''">Apply breast cream.</a> You have <b><<bcream_have>></b> cream left in your purse.'
  178. if aphrodisiac_have > 0:'<a href="exec: gs ''drugs'', ''aphrodisiac'' & gs ''din_bad'', ''d_bag'' & *pl $aphrodisiac_msg & *pl $min_arousal_msg & killvar ''$min_arousal_msg''">Chew aphrodisiac gum.</a> You have <b><<aphrodisiac_have>></b> gum left in your purse.'
  179. if lubri > 0:'There''s a tube of lubricant in your purse, enough for <b><<lubri>></b> applications.'
  180. if refillable_bottle = 4:
  181. 'You carry your sports water bottle in your purse. It''s still completely full. <a href="exec: refillable_bottle = 3 & pcs_hydra += 75 & cumspclnt = 2 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''">Drink</a>'
  182. elseif refillable_bottle = 3:
  183. 'You carry your sports water bottle in your purse. It''s two-thirds full. <a href="exec: refillable_bottle = 2 & pcs_hydra += 75 & cumspclnt = 2 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''">Drink</a>'
  184. elseif refillable_bottle = 2:
  185. 'You carry your sports water bottle in your purse. It''s one-third full. <a href="exec: refillable_bottle = 1 & pcs_hydra += 75 & cumspclnt = 2 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''">Drink</a>'
  186. elseif refillable_bottle = 1:
  187. 'You carry your sports water bottle in your purse. It''s empty.'
  188. end
  189. if bottle > 0: 'There''s a bottle of water in your purse. <a href="exec:bottle = 0 & pcs_hydra += 100 & cumspclnt = 2 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''">Drink</a>'
  190. if buterbrod > 0: 'There''s a sandwich in your purse. <a href="exec:buterbrod = 0 & pcs_energy += 40 & cumspclnt = 2 & gs ''cum_cleanup'' & fat += 1 & gs ''stat'' & gs ''din_bad'', ''d_bag''">Eat</a>'
  191. if strapon = 1 and strapnumber = 0:
  192. 'You have a strapon harness in your purse, but you don''t have a dildo attached to it'+iif(dildo + middildo + largedildo + bigdildo + extradildo + superdildo + maddildo > 0, '. You keep your dildos in your desk at home.', ', because you don''t own one.')
  193. elseif strapon = 1 and strapnumber ! 0:
  194. 'You have a strapon harness in your purse and a <<(strapnumber +1)*5>>cm attached to it.'
  195. end
  196. if wine = 1 and alkowine = 0:'There''s a bottle of <a href="exec:dynamic $dinalkowin1">wine</a> in your purse.'
  197. if wine = 1 and alkowine = 1:'There''s a half-bottle of <a href="exec:dynamic $dinalkowin2">wine</a> in your purse.'
  198. if foto = 1:'Your purse contains a strange photo'
  199. if pattest > 0: 'You have <b><<pattest>></b> unused paternity test'+iif(used_pattest > 1, 's ', ' ')+'in your purse.'
  200. if used_pattest > 0: 'You have <b><<used_pattest>></b> <a href="exec:dynamic $test_purse">used</a> paternity test'+iif(used_pattest > 1, 's ', ' ')+'in your purse.'
  201. act 'Return':gt 'obj_din', 'menu_exit'
  202. '</td></tr></table></center>'
  203. end
  204. $dinalkowin1 = {
  205. *clr & cla
  206. alkowine = 1
  207. minut += 5
  208. gs 'drugs', 'alcohol', 'wine'
  209. gs'stat'
  210. '<center><img <<$set_imgh>> src="images/shared/food/alkowin.jpg"></center>'
  211. *nl
  212. 'You take the wine bottle out of your purse and slowly drink half of it. You struggle quite a lot to put the cork back before being able to make it.'
  213. act 'Continue':gs 'din_bad', 'd_bag'
  214. }
  215. $dinalkowin2 = {
  216. *clr & cla
  217. alkowine = 0
  218. wine = 0
  219. minut += 5
  220. gs 'drugs', 'alcohol', 'wine'
  221. gs'stat'
  222. '<center><img <<$set_imgh>> src="images/shared/food/alkowin.jpg"></center>'
  223. *nl
  224. 'You take out the remaining half wine bottle out of your purse, slowly drinking the rest of it. As you finish you throw the empty bottle away.'
  225. act 'Continue':gs 'din_bad', 'd_bag'
  226. }
  227. $din_Switch_Condom_Menu = {
  228. dynamic $din_Update_Condom_Counts
  229. *clr & cla
  230. '<center><h1>Condoms</h1></center>'
  231. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  232. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  233. '<td cellspacing="0" cellpadding="0" valign="top">'
  234. i = 0
  235. 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+preziksabo, preziksabo)>> sabotaged condoms left.'
  236. *nl
  237. if preziktype > 0:
  238. '<a href="exec:dynamic $din_Do_Condom_Counts, 1">Switch to using normal condoms</a>.'
  239. end
  240. if preziktype ! 1:
  241. '<a href="exec:dynamic $din_Do_Condom_Counts, 2">Stop using condoms</a>.'
  242. end
  243. if preziktype ! 2:
  244. '<a href="exec:dynamic $din_Do_Condom_Counts, 3">Switch to using sabotaged condoms</a>.'
  245. end
  246. if prezikcount > 0 or preziktype = 0:
  247. '<a href="exec:dynamic $din_Do_Condom_Counts, 4">Sabotage a condom</a>.'
  248. end
  249. *nl
  250. act 'Return':gs 'din_bad', 'd_bag'
  251. '</td></tr></table></center>'
  252. }
  253. $din_Table_Condom_Menu = {
  254. dynamic $din_Update_Condom_Counts
  255. *clr & cla
  256. '<center><h1>Condoms</h1></center>'
  257. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  258. *nl
  259. i = 1
  260. 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+preziksabo, preziksabo)>> sabotaged condoms left.'
  261. *nl
  262. if preziktype > 0:
  263. '<a href="exec:dynamic $din_Do_Condom_Counts, 1">Switch to using normal condoms</a>.'
  264. end
  265. if preziktype ! 1:
  266. '<a href="exec:dynamic $din_Do_Condom_Counts, 2">Stop using condoms</a>.'
  267. end
  268. if preziktype ! 2:
  269. '<a href="exec:dynamic $din_Do_Condom_Counts, 3">Switch to using sabotaged condoms</a>.'
  270. end
  271. if prezikcount > 0 or preziktype = 0:
  272. '<a href="exec:dynamic $din_Do_Condom_Counts, 4">Sabotage a condom</a>.'
  273. end
  274. *nl
  275. act 'Return':gt 'stol', 'bc'
  276. }
  277. !! Condom System
  278. !! prezik: Total number of condoms sveta is using (normal or damaged).
  279. !! prezikcount: Number of normal condoms sveta isn''t using.
  280. !! preziksabo: Number of damaged condoms seveta isn''t using.
  281. !! preziktyp: 0 - Use condoms / 1 - don''t use condoms / 2 - use damaged condoms
  282. !! to check if sveta wants to use a condom use if prezik > 0:
  283. $din_Do_Condom_Counts = {
  284. *clr & cla
  285. '<center><h1>Condoms</h1></center>'
  286. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  287. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  288. '<td cellspacing="0" cellpadding="0" valign="top">'
  289. if ARGS[0] = 1:
  290. 'Use a condom the next time you have sex.'
  291. if preziktype = 2: preziksabo = prezik
  292. prezik = prezikcount
  293. prezikcount = 0
  294. preziktype = 0
  295. elseif ARGS[0] = 2:
  296. 'You will not use a condom the next time you have sex.'
  297. if preziktype = 0: prezikcount = prezik
  298. if preziktype = 2: preziksabo = prezik
  299. prezik = 0
  300. preziktype = 1
  301. elseif ARGS[0] = 3:
  302. 'Use your sabotaged condom the next time you have sex.'
  303. if preziktype = 0: prezikcount = prezik
  304. prezik = preziksabo
  305. preziksabo = 0
  306. preziktype = 2
  307. elseif ARGS[0] = 4:
  308. if preziktype ! 0 and prezikcount > 0:
  309. preziksabo +=1
  310. prezikcount -=1
  311. 'You use a needle to punch holes in one of the condoms.'
  312. elseif preziktype = 0 and prezik > 0:
  313. preziksabo +=1
  314. prezik -=1
  315. 'You use a needle to punch holes in one of the condoms.'
  316. else
  317. 'You do not have any condoms to sabotage.'
  318. end
  319. end
  320. if i = 0:
  321. dynamic $din_Switch_Condom_Menu
  322. else
  323. dynamic $din_Table_Condom_Menu
  324. end
  325. '</td></tr></table></center>'
  326. }
  327. $din_Update_Condom_Counts = {
  328. if prezik + prezikcount + preziksabo > 0: prezikmsg = 1
  329. if preziktype = 0:
  330. if prezikcount > 0:
  331. prezik += prezikcount
  332. prezikcount = 0
  333. end
  334. if prezik <= 0:
  335. 'You are out of condoms.'
  336. prezik = 0
  337. prezikcount = 0
  338. preziktype = 1
  339. end
  340. elseif preziktype = 1:
  341. if prezik > 0:
  342. prezikcount += prezik
  343. prezik = 0
  344. end
  345. elseif preziktype = 2:
  346. if preziksabo > 0:
  347. prezik += preziksabo
  348. preziksabo = 0
  349. end
  350. if prezik <= 0 and prezikcount <= 0:
  351. if prezikmsg = 1:prezikmsg = 2
  352. prezik = 0
  353. preziksabo = 0
  354. prezikcount = 0
  355. preziktype = 1
  356. elseif prezik <= 0 and prezikcount > 0:
  357. 'You have run out of sabotaged condoms so you will have to use normal condoms.'
  358. prezik = prezikcount
  359. prezikcount = 0
  360. preziktype = 0
  361. end
  362. end
  363. }
  364. $d_tabletkied = {
  365. *clr & cla
  366. '<center><h1>Birth Control</h1></center>'
  367. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  368. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  369. '<td cellspacing="0" cellpadding="0" valign="top">'
  370. tabloc = 0
  371. if tabletkiday < daystart and thinkpreg = 0 and knowpreg = 0: '<a href="exec:dynamic $d_tabletkieda, 1">Take the birth control pill now.</a>'
  372. if tabletkicheck = 0 and thinkpreg = 0 and knowpreg = 0:
  373. '<a href="exec:dynamic $d_tabletkieda, 2">Automatically take your birth control pills.</a>'
  374. elseif tabletkicheck = 1:
  375. '<a href="exec:dynamic $d_tabletkieda, 3">Stop automatically taking your birth control pills.</a>'
  376. end
  377. '<a href="exec:dynamic $d_tabletkieda, 4">Examine the birth control pills.</a>'
  378. if tabletkioddk = 1: '<a href="exec:dynamic $d_tabletkieda, 5">Dump the strange pills.</a>'
  379. act 'Return':gs 'din_bad', 'd_bag'
  380. '</td></tr></table></center>'
  381. }
  382. $d_tabletkiedt = {
  383. *clr & cla
  384. '<center><h1>Birth Control</h1></center>'
  385. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  386. *nl
  387. tabloc = 1
  388. if tabletkiday < daystart and thinkpreg = 0 and knowpreg = 0: '<a href="exec:*clr & dynamic $d_tabletkieda, 1">Take the birth control pill now.</a>'
  389. if tabletkicheck = 0 and thinkpreg = 0 and knowpreg = 0:
  390. '<a href="exec:*clr & dynamic $d_tabletkieda, 2">Automatically take your birth control pills.</a>'
  391. elseif tabletkicheck = 1:
  392. '<a href="exec:*clr & dynamic $d_tabletkieda, 3">Stop automatically taking your birth control pills.</a>'
  393. end
  394. '<a href="exec:*clr & dynamic $d_tabletkieda, 4">Examine the birth control pills.</a>'
  395. if tabletkioddk = 1: '<a href="exec:*clr & dynamic $d_tabletkieda, 5">Dump the strange pills.</a>'
  396. act 'Return':gt 'stol', 'bc'
  397. }
  398. $d_tabletkieda = {
  399. cla
  400. if ARGS[0] = 1:
  401. tabletkipd += tabletkipt
  402. if tabletkiday ! daystart:
  403. gs 'din_bad','takepill'
  404. tabletkiday = daystart
  405. tabletkipt = 0
  406. tabletkipi = 0
  407. else
  408. pcs_health -= 1
  409. end
  410. pilldaychk = 1
  411. *clr
  412. dynamic $d_tabletkied
  413. 'You take the birth control pill.'
  414. gs 'stat'
  415. elseif ARGS[0] = 2:
  416. 'You will do your best to remember to take your birth control pills every day.'
  417. tabletkicheck = 1
  418. gs 'stat'
  419. elseif ARGS[0] = 3:
  420. 'You will take your birth control pills as you desire.'
  421. tabletkicheck = 0
  422. gs 'stat'
  423. elseif ARGS[0] = 4:
  424. if pcs_intel + pillsdays <= rand(30,95):
  425. 'These pills appear to be normal birth control pills.'
  426. tabletkioddk = 0
  427. gs 'stat'
  428. else
  429. if ptype = 0: $pillprob = 'nothing unusual about them.'
  430. if ptype = 1: $pillprob = 'that the pills have expired months ago.'
  431. if ptype = 2: $pillprob = 'that the label has spelling mistakes and the logo is backwards.'
  432. if ptype = 3: $pillprob = 'that the pills are discolored and there is no expiry date.'
  433. if ptype = 4: $pillprob = 'that the pills are all the same color.'
  434. if ptype = 5: $pillprob = 'that the pills seem to be smaller than normal.'
  435. 'Upon taking a closer look at your birth control pills, you notice <<$pillprob>>'
  436. if ptype > 0: tabletkioddk = 1
  437. gs 'stat'
  438. if tabloc = 0:
  439. act 'Return':gs 'din_bad', 'd_bag'
  440. else
  441. act 'Return':gt 'stol', 'bc'
  442. end
  443. end
  444. elseif ARGS[0] = 5:
  445. 'You get rid of the strange pills.'
  446. tabletkioddk = 0
  447. pillsleft[ptype] = 0
  448. tabletkioddp = 0
  449. gs 'stat'
  450. end
  451. if tabloc = 0:
  452. act 'Return':gs 'din_bad', 'd_bag'
  453. else
  454. act 'Return':gt 'stol', 'bc'
  455. end
  456. }
  457. $d_cycreport_choice = {
  458. *clr & cla
  459. '<center><h1>Fertility Cycle</h1></center>'
  460. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  461. '<td width="800" cellspacing="0" cellpadding="0" valign="top">'
  462. dynamic $d_cycreport_update
  463. '<center><b>Current Status:</b></center>'
  464. '<center><<$cycreport_txt>></center>'
  465. '</td></tr></table></center><center><table cellspacing="0" cellpadding="20" valign="top"><tr><td width="250" valign="top">'
  466. if $cycreport_txt ! 'In labour':
  467. '<center><b>Change Status because:</b></center>'
  468. if thinkpreg = 0:
  469. if knowpreg = 1:
  470. '<a href="exec: dynamic $d_cycreport_actor, 2 & gs ''stat''">I''m pregnant.</a>'
  471. '<a href="exec: dynamic $d_cycreport_actor, 1 & gs ''stat''">I can''t be pregnant no matter the evidence.</a>'
  472. else
  473. '<a href="exec: dynamic $d_cycreport_actor, 2 & gs ''stat''">I think I''m pregnant.</a>'
  474. end
  475. elseif thinkpreg = 1:
  476. if knowpreg = 1:
  477. '<a href="exec: dynamic $d_cycreport_actor, 1 & gs ''stat''">I can''t be pregnant no matter the evidence.</a>'
  478. else
  479. '<a href="exec: dynamic $d_cycreport_actor, 1 & gs ''stat''">I''m not pregnant.</a>'
  480. end
  481. end
  482. if mesec > 0 and thinkpreg ! 1 and knowpreg ! 1:
  483. '<a href="exec: dynamic $d_cycreport_actor, 3">I''m menstruating.</a>'
  484. elseif thinkpreg ! 1:
  485. '<a href="exec: dynamic $d_cycreport_actor, 4">I just recently menstruated.</a>'
  486. '<a href="exec: dynamic $d_cycreport_actor, 5">I think my menstrual cycle has stopped.</a>'
  487. end
  488. if thinkpreg = 1 or knowpreg = 1:
  489. '<a href="exec: dynamic $d_cycreport_actor, 6">I think my due date is...</a>'
  490. '<a href="exec: dynamic $d_cycreport_actor, 7">I think the father is...</a>'
  491. end
  492. if knowpregloss = 1:
  493. '<a href="exec: dynamic $d_cycreport_actor, 8">I just had an abortion.</a>'
  494. elseif knowpregloss > 1 or thinkpreg = 1:
  495. '<a href="exec: dynamic $d_cycreport_actor, 8">I think I lost a baby.</a>'
  496. end
  497. elseif cycle = 5:
  498. 'Broken water and contractions, it''s pretty clear what is going on. You need to get to a hospital ASAP.'
  499. else
  500. dynamic $d_cycreport_actor, 10
  501. end
  502. act 'Exit':gs 'stat' & gt $loc, $metka
  503. '</td></tr></table></center>'
  504. }
  505. $d_cycreport_actor = {
  506. !! Svetlana has decided she is not pregnant
  507. if ARGS[0] = 1:
  508. $cycreport_txt = 'It has been <<temp>> days since you last remember having a period.'
  509. if knowpreg = 1:
  510. denypreg = 1
  511. thinkpreg = 0
  512. else
  513. denypreg = 0
  514. thinkpreg = 0
  515. end
  516. dynamic $d_cycreport_update
  517. gs 'stat'
  518. dynamic $d_cycreport_choice
  519. !! Svetlana has decided she is pregnant.
  520. elseif ARGS[0] = 2:
  521. thinkpreg = 1
  522. denypreg = 0
  523. dynamic $d_cycreport_update
  524. gs 'stat'
  525. dynamic $d_cycreport_choice
  526. !! Svetlana is Menstrating.
  527. elseif ARGS[0] = 3:
  528. thinkpreg = 0
  529. denypreg = 0
  530. daylastperiod = daystart
  531. dynamic $d_cycreport_update
  532. gs 'stat'
  533. dynamic $d_cycreport_choice
  534. !! Svetlana is remembering her last period.
  535. elseif ARGS[0] = 4:
  536. thinkpreg = 0
  537. denypreg = 0
  538. *clr & cla
  539. '<center><h1>Fertility Cycle</h1></center>'
  540. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  541. '<td width="250" cellspacing="0" cellpadding="0" valign="top">'
  542. 'How many days ago was it you had your last period?'
  543. 'Currently: <<pertemp>>'
  544. '<a href="exec: pertemp += 1 & dynamic $d_cycreport_actor, 4">+1</a> <a href="exec: pertemp += 5 & dynamic $d_cycreport_actor, 4">+5</a> <a href="exec: pertemp += 10 & dynamic $d_cycreport_actor, 4">+10</a> <a href="exec: pertemp = 0 & dynamic $d_cycreport_actor, 4">Reset</a> <a href="exec: daylastperiod = (daystart - pertemp) & dynamic $d_cycreport_update & gs ''stat'' & dynamic $d_cycreport_choice">Accept</a>'
  545. act 'Return':dynamic $d_cycreport_choice
  546. act 'Exit':gs 'stat' & gt $loc, $metka
  547. '</td></tr></table></center>'
  548. !! Svetlana thinks she doesn''t have periods anymore. Good birth control has this effect (as does pregnancy.)
  549. elseif ARGS[0] = 5:
  550. if knowpreg = 1:
  551. denypreg = 1
  552. else
  553. denypreg = 0
  554. end
  555. thinkpreg = 0
  556. $cycreport_txt = 'You do not believe you have periods any more.'
  557. gs 'stat'
  558. dynamic $d_cycreport_choice
  559. !! Svetlana is trying to figure out her due date.
  560. elseif ARGS[0] = 6:
  561. *clr & cla
  562. '<center><h1>Fertility Cycle</h1></center>'
  563. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  564. '<td width="250" cellspacing="0" cellpadding="0" valign="top">'
  565. 'How many days ago was it you had your last period?'
  566. 'Currently: <<pertemp>>'
  567. '<a href="exec: pertemp += 1 & dynamic $d_cycreport_actor, 6">+1</a> <a href="exec: pertemp += 5 & dynamic $d_cycreport_actor, 6">+5</a> <a href="exec: pertemp += 10 & dynamic $d_cycreport_actor, 6">+10</a> <a href="exec: pertemp = 0 & dynamic $d_cycreport_actor, 6">Reset</a> <a href="exec: daylastperiod = daystart - pertemp & dynamic $d_cycreport_update & gs ''stat'' & dynamic $d_cycreport_choice">Accept</a>'
  568. act 'Return':dynamic $d_cycreport_choice
  569. act 'Exit':gs 'stat' & gt $loc, $metka
  570. '</td></tr></table></center>'
  571. !! Svetlana is trying to guess who is the babydaddy.
  572. elseif ARGS[0] = 7:
  573. *clr & cla
  574. '<center><h1>Fertility Cycle</h1></center>'
  575. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  576. '<td width="500" cellspacing="0" cellpadding="0" valign="top">'
  577. potfather_temp[1] = arrsize('$wombpotfath')
  578. if potfather_temp[1] > 0:
  579. potfather_counter = 0
  580. 'List of potential fathers:'
  581. :potfather_loop
  582. if $wombpotfath[potfather_temp] ! 'unknown':
  583. $potfather_temp[2] = '<a href="exec: $wombthfath = ''<<$npc_usedname[$wombpotfath[potfather_counter]]>>'' & $wombthfathID = ''<<$wombpotfath[potfather_counter]>>'' & dynamic $d_cycreport_actor, 7 & gs ''stat''"><<$npc_usedname[$wombpotfath[potfather_counter]]>> (<<$wombpotfath[potfather_counter]>>)</a>'
  584. else
  585. $potfather_temp[2] = '<a href="exec: $wombthfath = ''<<$npc_usedname[$wombpotfath[potfather_counter]]>>'' & $wombthfathID = ''<<$wombpotfath[potfather_counter]>>'' & dynamic $d_cycreport_actor, 7 & gs ''stat''">Unknown (-)</a>'
  586. end
  587. 'Potential father (<<potfather_counter + 1>>): <<$potfather_temp[2]>>'
  588. potfather_counter += 1
  589. if potfather_counter < arrsize('$wombpotfath'): jump 'potfather_loop'
  590. else
  591. 'There are no potential fathers.'
  592. end
  593. killvar 'potfather_counter'
  594. '<br> <a href="exec:dynamic $d_cycreport_choice & gs ''stat''">Accept</a>'
  595. '</td></tr></table></center>'
  596. act 'Return':dynamic $d_cycreport_choice
  597. act 'Exit':gs 'stat' & gt $loc, $metka
  598. !! This is the old code that was broken, keeping it for now (julzor)
  599. !! {
  600. tempmax = arrsize('$cumfthname')-1
  601. tempcurr = 0
  602. sumcum = 0
  603. *nl
  604. :potfathloop
  605. if cumtime[tempcurr] > 1:$cum = 'cumshots' else $cum = 'cumshot'
  606. if cumtime[tempcurr] > 0: '<<$npc_usedname[$cumfthname[tempcurr]]>> (<<$cumfthname[tempcurr]>>) - <<cumtime[tempcurr]>> <<$cum>>' & sumcum += cumtime[tempcurr]
  607. if tempcurr < tempmax:tempcurr += 1 & jump 'potfathloop'
  608. if sumcum > 1:$cum = 's' else $cum = ''
  609. '<br>You think you have had <<sumcum>> load<<$cum>> of cum shot<<$cum>> in your womb altogether that could have gotten you pregnant.'
  610. 'You suspect the father being: <<$wombthfath>><br>'
  611. *nl
  612. tempcurr = 0
  613. :pickfathloop
  614. if cumtime[tempcurr] > 0:
  615. if $npc_usedname[$cumfthname[tempcurr]] <> '':
  616. '<a href="exec: $wombthfath = ''<<$npc_usedname[$cumfthname[tempcurr]]>>'' & $wombthfathID = ''<<$cumfthname[tempcurr]>>'' & dynamic $d_cycreport_actor, 7 & gs ''stat''"><<$npc_usedname[$cumfthname[tempcurr]]>> (<<$cumfthname[tempcurr]>>)</a>'
  617. else
  618. ' <a href="exec: $wombthfath = ''<<$npc_usedname[$cumfthname[tempcurr]]>>'' & $wombthfathID = ''<<$cumfthname[tempcurr]>>'' & dynamic $d_cycreport_actor, 7 & gs ''stat''">Unknown (-)</a>'
  619. end
  620. end
  621. if tempcurr < tempmax:tempcurr += 1 & jump 'pickfathloop'
  622. killvar 'sumcum'
  623. killvar 'cum'
  624. killvar 'tempmax'
  625. killvar 'tempcurr'
  626. }
  627. !! Just recently lost a baby to abortion, miscarriage, or think you did because your period finally arrived.
  628. elseif ARGS[0] = 8:
  629. thinkpreg = 0
  630. $cycreport_txt = 'Your body is recovering from the trauma of pregnancy after your miscarrage.'
  631. dynamic $d_cycreport_update
  632. gs 'stat'
  633. dynamic $d_cycreport_choice
  634. !! Just recently gave birth.
  635. elseif ARGS[0] = 10:
  636. temp = arrsize('Babyptype')
  637. temp -= 1
  638. $cycreport_txt = 'You are currently recovering from childbirth. You gave birth on <<monthkid[temp]>> / <<daykid[temp]>> / <<yearkid[temp]>>.'
  639. gs 'stat'
  640. end
  641. }
  642. $d_cycreport_update = {
  643. killvar 'temp'
  644. if thinkpreg = 1 or knowpreg = 1: dynamic $d_cycreport_upduedate
  645. !! Vagblood in a future update to account for babydamage and miscarrages.
  646. if mesec > 0 or vagblood > 0:
  647. $cycreport_txt = 'You are currently bleeding.'
  648. else
  649. if cyccustom = 1:
  650. if preg = 1 and knowpreg = 1:
  651. $cycreport_txt = 'You are pregnant. Your due date is around <<$pregduedate>>.'
  652. if $wombthfath ! 'unknown':
  653. $cycreport_txt = '<<$cycreport_txt>> You suspect the father being <<$wombthfath>>.'
  654. end
  655. elseif knowpregloss = 1:
  656. $cycreport_txt = 'Your body is recovering from the trauma of pregnancy after your abortion.'
  657. elseif knowpregloss = 2:
  658. $cycreport_txt = 'Your body is recovering from the trauma of pregnancy after your miscarrage.'
  659. elseif knowpregrecover = 1:
  660. $cycreport_txt = 'Your body is recovering from the trauma of childbirth.'
  661. elseif menoage <= age and cycle = 6:
  662. $cycreport_txt = 'You have gone through menopause.'
  663. else
  664. temp[1] = daystart-daylastperiod
  665. if tabletkishot > 0:
  666. $cycreport_txt = 'It has been <<temp[1]>> days since the start of your last period. <font color=green>You are currently protected by a birth control shot.</font>'
  667. elseif pillcon2 > 30000:
  668. $cycreport_txt = 'It has been <<temp[1]>> days since the start of your last period. <font color=green>You are currently on the birth control pill.</font>'
  669. elseif pillcon2 > 8000 and ((FocH > (Foch_Max - 96)) or ovulate > 0):
  670. $cycreport_txt = 'It has been <<temp[1]>> days since the start of your last period. You are currently on the pill but it is not yet effective. <font color=red>It is currently a dangerous day.</font>'
  671. elseif pillcon2 > 8000:
  672. $cycreport_txt = 'It has been <<temp[1]>> days since the start of your last period. You are currently on the pill but it is not yet effective.'
  673. elseif daystart = tabletkiday:
  674. $cycreport_txt = 'It has been <<temp[1]>> days since the start of your last period. You have taken the pill but it will be several weeks before it is fully effective.'
  675. elseif FocH > (Foch_Max - 96) or ovulate > 0:
  676. $cycreport_txt = 'It has been <<temp[1]>> days since the start of your last period. <font color=red>It is currently your fertile stage.</font>'
  677. else
  678. $cycreport_txt = 'It has been <<temp[1]>> days since the start of your last period.'
  679. end
  680. end
  681. elseif denypreg = 1:
  682. if pregchem < 525:
  683. denypreg = 1
  684. thinkpreg = 0
  685. $cycreport_txt = 'There is nothing wrong, your cycle is just irregular.'
  686. elseif pregchem < 1863:
  687. denypreg = 1
  688. thinkpreg = 0
  689. $cycreport_txt = 'You have a strange flu making you feel ill.'
  690. elseif pregchem < 4000:
  691. denypreg = 1
  692. thinkpreg = 0
  693. $cycreport_txt = 'Your strange flu still hasn''t gone away. As soon as it does you plan to exercise and lose the excess fat you''be been building up.'
  694. elseif pregchem < 6000:
  695. denypreg = 1
  696. thinkpreg = 0
  697. $cycreport_txt = 'Your weight just won''t come off...'
  698. elseif pregchem < 7500:
  699. denypreg = 1
  700. thinkpreg = 0
  701. $cycreport_txt = 'People are rude, constantly asking you when you are due. You are not pregnant!'
  702. elseif pregchem >= 7500:
  703. thinkpreg = 0
  704. $cycreport_txt = 'Surely if you were pregnant, you''d have had the baby by now, so you can''t possibly be pregnant.'
  705. else
  706. temp = daystart-daylastperiod
  707. $cycreport_txt = 'It has been <<temp>> days since you last remember having a period.'
  708. end
  709. elseif cyccustom = 0:
  710. if $cycreport_txt ! 'In labour':
  711. if thinkpreg = 1 or knowpreg = 1:
  712. if knowpreg = 0: $temp = ' think you'
  713. if $wombthfath = 'unknown' or $wombthfath = '':
  714. $cycreport_txt = 'You<<$temp>> are pregnant. You aren''t yet sure who the father is. Based on your last remembered period, your due date is probably around <<$pregduedate>>.'
  715. else
  716. $cycreport_txt = 'You<<$temp>> are pregnant with <<$wombthfath>>''s baby. Based on your last remembered period, your due date is probably around <<$pregduedate>>.'
  717. end
  718. elseif $cycreport_txt = 'Your body is recovering from the trauma of pregnancy after your miscarrage.':
  719. if knowpregloss = 1: $cycreport_txt = 'Your body is recovering from the trauma of pregnancy after your abortion.'
  720. elseif $cycreport_txt ! 'You do not believe you have periods any more.':
  721. temp = daystart-daylastperiod
  722. $cycreport_txt = 'It has been <<temp>> days since you last remember having a period.'
  723. end
  724. killvar 'temp'
  725. end
  726. end
  727. end
  728. }
  729. $d_cycreport_upduedate = {
  730. !! implant_calc: Calculation of an implantation date in the uterus (Average is 5 days after ovulation)
  731. implant_calc = daystart - lastovulation + 5
  732. !! Human gastation period: 280 days
  733. gastation_time = 280 / (1 + pregspeedcheat)
  734. temp = gastation_time - implant_calc
  735. pregdueday = day
  736. pregduemonth = month
  737. pregdueyear = year
  738. temp += pregdueday
  739. pregdueday = 0
  740. :pregduedateloop
  741. if pregduemonth = 1 and temp > 31:
  742. pregduemonth += 1
  743. temp -= 31
  744. elseif pregduemonth = 2 and temp > 28:
  745. pregduemonth += 1
  746. temp -= 28
  747. elseif pregduemonth = 3 and temp > 31:
  748. pregduemonth += 1
  749. temp -= 31
  750. elseif pregduemonth = 4 and temp > 30:
  751. pregduemonth += 1
  752. temp -= 30
  753. elseif pregduemonth = 5 and temp > 31:
  754. pregduemonth += 1
  755. temp -= 31
  756. elseif pregduemonth = 6 and temp > 30:
  757. pregduemonth += 1
  758. temp -= 30
  759. elseif pregduemonth = 7 and temp > 31:
  760. pregduemonth += 1
  761. temp -= 31
  762. elseif pregduemonth = 8 and temp > 31:
  763. pregduemonth += 1
  764. temp -= 31
  765. elseif pregduemonth = 9 and temp > 30:
  766. pregduemonth += 1
  767. temp -= 30
  768. elseif pregduemonth = 10 and temp > 31:
  769. pregduemonth += 1
  770. temp -= 31
  771. elseif pregduemonth = 11 and temp > 30:
  772. pregduemonth += 1
  773. temp -= 30
  774. elseif pregduemonth = 12 and temp > 31:
  775. pregduemonth = 1
  776. pregdueyear += 1
  777. temp -= 31
  778. else
  779. pregdueday = temp
  780. temp = 0
  781. end
  782. if temp > 0: jump 'pregduedateloop'
  783. $pregduedate = '<<pregdueday>> '
  784. if pregduemonth = 1:
  785. $pregduedate += 'Jan'
  786. elseif pregduemonth = 2:
  787. $pregduedate += 'Feb'
  788. elseif pregduemonth = 3:
  789. $pregduedate += 'Mar'
  790. elseif pregduemonth = 4:
  791. $pregduedate += 'Apr'
  792. elseif pregduemonth = 5:
  793. $pregduedate += 'May'
  794. elseif pregduemonth = 6:
  795. $pregduedate += 'Jun'
  796. elseif pregduemonth = 7:
  797. $pregduedate += 'Jul'
  798. elseif pregduemonth = 8:
  799. $pregduedate += 'Aug'
  800. elseif pregduemonth = 9:
  801. $pregduedate += 'Sep'
  802. elseif pregduemonth = 10:
  803. $pregduedate += 'Oct'
  804. elseif pregduemonth = 11:
  805. $pregduedate += 'Nov'
  806. elseif pregduemonth = 12:
  807. $pregduedate += 'Dec'
  808. end
  809. $pregduedate += ' <<pregdueyear>>'
  810. }
  811. $d_pregmovement = {
  812. if denypreg = 0 and pregchem > 0:
  813. if thinkpreg > 0 and knowpreg = 0:
  814. knowpreg = 1
  815. if kid <= 0:
  816. 'Your heart flutters as you feel a baby moving around inside you for the first time.'
  817. else
  818. 'The movement inside you confirms what you already suspected. You are pregnant once again.'
  819. end
  820. elseif knowpreg > 0:
  821. temprand = rand(0,2)
  822. if temprand = 0:
  823. if pregchem > 5000:
  824. 'Your baby visibly moves around inside you.'
  825. else
  826. 'You feel movement deep inside you as your baby shifts around.'
  827. end
  828. elseif temprand = 1:
  829. if pregchem > 5000:
  830. 'You wince as your baby delivers a vicious kick to your insides.'
  831. else
  832. 'You feel your baby kicking.'
  833. end
  834. elseif temprand = 2:
  835. if pregchem > 5000:
  836. 'You feel your baby kicking, look down, and see your belly twitching from it''s movements.'
  837. else
  838. 'You feel your baby kicking.'
  839. end
  840. end
  841. else
  842. if cyccustom = 1:
  843. if pregchem < 4000:
  844. if kid <= 0 :
  845. 'You feel a weird and strange fluttering sensation around inside your stomach. Perhaps you should see the doctor?'
  846. else
  847. 'It feels as if a baby is moving inside you. Are you pregnant?'
  848. end
  849. else
  850. knowpreg = 1
  851. if kid <= 0:
  852. 'It''s become pretty obvious. You are pregnant.'
  853. else
  854. 'It''s become pretty obvious. You are pregnant once again.'
  855. end
  856. end
  857. end
  858. end
  859. elseif pregchem > 0:
  860. if kid > 0 and PregChem > 3903:
  861. 'You try to deny it, but you just can''t any more. The large belly, the movement, you are pregnant once again.'
  862. denypreg = 0
  863. dynamic $d_cycreport_upduedate
  864. $cycreport_txt = 'You are pregnant.'
  865. else
  866. 'You feel movement deep inside you. It''s probably just gas.'
  867. end
  868. end
  869. }
  870. $use_steroids = {
  871. if steroid_dose < 3:
  872. '<font color = blue>You swallow the orange pill.</font>'
  873. steroid_dose += 1
  874. steroid_counter += 1
  875. steroid_have -= 1
  876. else
  877. 'You really shouldn''t take any more pills today.'
  878. end
  879. }
  880. $use_bcream = {
  881. if bcream_used < 1:
  882. '<font color = #DB7093>You smear the cream onto your breasts and rub it in.</font>'
  883. bcream_used = 1
  884. bcream_have -= 1
  885. else
  886. 'Using any more cream won''t have any effect.'
  887. end
  888. }
  889. if $ARGS[0] = 'takepill':
  890. if tabletki > 0 and pillsleft[ptype] = 0:
  891. tabletkirand = rand(1, tabletki)
  892. if tabletkirand <= tabletkiold:
  893. tabletki -=1
  894. tabletkiold -=1
  895. ptype = 1
  896. pillsleft[ptype] = 28
  897. elseif tabletkirand <= tabletkiold + tabletkifake:
  898. tabletki -=1
  899. tabletkifake -=1
  900. ptype = 2
  901. pillsleft[ptype] = 28
  902. elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej:
  903. tabletki -=1
  904. tabletkirej -=1
  905. ptype = 3
  906. pillsleft[ptype] = 28
  907. elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej + tabletkisug:
  908. tabletki -=1
  909. tabletkisug -=1
  910. ptype = 4
  911. pillsleft[ptype] = 28
  912. elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej + tabletkisug + tabletkifert:
  913. tabletki -=1
  914. tabletkifert -=1
  915. ptype = 5
  916. pillsleft[ptype] = 28
  917. else
  918. tabletki -=1
  919. ptype = 0
  920. pillsleft[ptype] = 28
  921. end
  922. killvar 'tabletkirand'
  923. end
  924. !! added empty week to allow menstruation - it take effect only when the pills are taken automatically
  925. if placebopart <= 0 or tabletkicheck ! 1:
  926. !!pillcon2 is the ideal state, PC cosiders this the believed pillcon value
  927. pillcon2 += ((pillcon2+15000)/40)+1000
  928. if pillcon2 > 40000:pillcon2 = 40000
  929. if ptype = 0:
  930. pillsleft[ptype] -= 1
  931. pcs_skin += 1
  932. pillcon += ((pillcon+15000)/40)+1000
  933. if pillcon > 40000: pillcon = 40000
  934. elseif ptype = 1:
  935. pillsleft[ptype] -= 1
  936. pcs_skin += rand(0,1)
  937. pillcon += ((pillcon+15000)/40)+ rand(250,1000)
  938. if pillcon > 40000: pillcon = 40000
  939. elseif ptype = 2:
  940. pillsleft[ptype] -= 1
  941. pcs_skin += rand(0,1)
  942. pillcon += ((pillcon+15000)/40)+ rand(0,500)
  943. if pillcon > 40000: pillcon = 40000
  944. elseif ptype = 3:
  945. pillsleft[ptype] -= 1
  946. pcs_skin += rand(0,1)
  947. if rand(0,4) = 0: pain['tummy'] += rand(5,10)
  948. pillcon += ((pillcon+15000)/40)+ rand(250,2000)
  949. if pillcon > 40000: pillcon = 40000
  950. elseif ptype = 4:
  951. pillsleft[ptype] -= 1
  952. elseif ptype = 5:
  953. pillsleft[ptype] -= 1
  954. pcs_skin += 1
  955. EggRH += rand(10,80)
  956. end
  957. end
  958. end
  959. --- din_bad ---------------------------------