din_bad.qsrc 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  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 = 3:
  181. 'You carry your sports water bottle in your purse. It''s still completely full. <a href="exec: refillable_bottle = 2 & pcs_hydra += 75 & cumspclnt = 2 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''">Drink</a>'
  182. elseif refillable_bottle = 2:
  183. 'You carry your sports water bottle in your purse. It''s half full. <a href="exec: refillable_bottle = 1 & pcs_hydra += 75 & cumspclnt = 2 & gs ''cum_cleanup'' & gs ''stat'' & gs ''din_bad'', ''d_bag''">Drink</a>'
  184. elseif refillable_bottle = 1:
  185. 'You carry your sports water bottle in your purse. It''s empty.'
  186. end
  187. 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>'
  188. 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>'
  189. if wine = 1 and alkowine = 0:'There''s a bottle of <a href="exec:dynamic $dinalkowin1">wine</a> in your purse.'
  190. if wine = 1 and alkowine = 1:'There''s a half-bottle of <a href="exec:dynamic $dinalkowin2">wine</a> in your purse.'
  191. if foto = 1:'Your purse contains a strange photo'
  192. if pattest > 0: 'You have <b><<pattest>></b> unused paternity test'+iif(used_pattest > 1, 's ', ' ')+'in your purse.'
  193. 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.'
  194. act 'Return':gt 'obj_din', 'menu_exit'
  195. '</td></tr></table></center>'
  196. end
  197. $dinalkowin1 = {
  198. *clr & cla
  199. alkowine = 1
  200. minut += 5
  201. gs 'drugs', 'alcohol', 'wine'
  202. gs'stat'
  203. '<center><img <<$set_imgh>> src="images/shared/food/alkowin.jpg"></center>'
  204. *nl
  205. '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.'
  206. act 'Continue':gs 'din_bad', 'd_bag'
  207. }
  208. $dinalkowin2 = {
  209. *clr & cla
  210. alkowine = 0
  211. wine = 0
  212. minut += 5
  213. gs 'drugs', 'alcohol', 'wine'
  214. gs'stat'
  215. '<center><img <<$set_imgh>> src="images/shared/food/alkowin.jpg"></center>'
  216. *nl
  217. '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.'
  218. act 'Continue':gs 'din_bad', 'd_bag'
  219. }
  220. $din_Switch_Condom_Menu = {
  221. dynamic $din_Update_Condom_Counts
  222. *clr & cla
  223. '<center><h1>Condoms</h1></center>'
  224. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  225. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  226. '<td cellspacing="0" cellpadding="0" valign="top">'
  227. i = 0
  228. 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+preziksabo, preziksabo)>> sabotaged condoms left.'
  229. *nl
  230. if preziktype > 0:
  231. '<a href="exec:dynamic $din_Do_Condom_Counts, 1">Switch to using normal condoms</a>.'
  232. end
  233. if preziktype ! 1:
  234. '<a href="exec:dynamic $din_Do_Condom_Counts, 2">Stop using condoms</a>.'
  235. end
  236. if preziktype ! 2:
  237. '<a href="exec:dynamic $din_Do_Condom_Counts, 3">Switch to using sabotaged condoms</a>.'
  238. end
  239. if prezikcount > 0 or preziktype = 0:
  240. '<a href="exec:dynamic $din_Do_Condom_Counts, 4">Sabotage a condom</a>.'
  241. end
  242. *nl
  243. act 'Return':gs 'din_bad', 'd_bag'
  244. '</td></tr></table></center>'
  245. }
  246. $din_Table_Condom_Menu = {
  247. dynamic $din_Update_Condom_Counts
  248. *clr & cla
  249. '<center><h1>Condoms</h1></center>'
  250. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  251. *nl
  252. i = 1
  253. 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+preziksabo, preziksabo)>> sabotaged condoms left.'
  254. *nl
  255. if preziktype > 0:
  256. '<a href="exec:dynamic $din_Do_Condom_Counts, 1">Switch to using normal condoms</a>.'
  257. end
  258. if preziktype ! 1:
  259. '<a href="exec:dynamic $din_Do_Condom_Counts, 2">Stop using condoms</a>.'
  260. end
  261. if preziktype ! 2:
  262. '<a href="exec:dynamic $din_Do_Condom_Counts, 3">Switch to using sabotaged condoms</a>.'
  263. end
  264. if prezikcount > 0 or preziktype = 0:
  265. '<a href="exec:dynamic $din_Do_Condom_Counts, 4">Sabotage a condom</a>.'
  266. end
  267. *nl
  268. act 'Return':gt 'stol', 'bc'
  269. }
  270. !! Condom System
  271. !! prezik: Total number of condoms sveta is using (normal or damaged).
  272. !! prezikcount: Number of normal condoms sveta isn''t using.
  273. !! preziksabo: Number of damaged condoms seveta isn''t using.
  274. !! preziktyp: 0 - Use condoms / 1 - don''t use condoms / 2 - use damaged condoms
  275. !! to check if sveta wants to use a condom use if prezik > 0:
  276. $din_Do_Condom_Counts = {
  277. *clr & cla
  278. '<center><h1>Condoms</h1></center>'
  279. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  280. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  281. '<td cellspacing="0" cellpadding="0" valign="top">'
  282. if ARGS[0] = 1:
  283. 'Use a condom the next time you have sex.'
  284. if preziktype = 2: preziksabo = prezik
  285. prezik = prezikcount
  286. prezikcount = 0
  287. preziktype = 0
  288. elseif ARGS[0] = 2:
  289. 'You will not use a condom the next time you have sex.'
  290. if preziktype = 0: prezikcount = prezik
  291. if preziktype = 2: preziksabo = prezik
  292. prezik = 0
  293. preziktype = 1
  294. elseif ARGS[0] = 3:
  295. 'Use your sabotaged condom the next time you have sex.'
  296. if preziktype = 0: prezikcount = prezik
  297. prezik = preziksabo
  298. preziksabo = 0
  299. preziktype = 2
  300. elseif ARGS[0] = 4:
  301. if preziktype ! 0 and prezikcount > 0:
  302. preziksabo +=1
  303. prezikcount -=1
  304. 'You use a needle to punch holes in one of the condoms.'
  305. elseif preziktype = 0 and prezik > 0:
  306. preziksabo +=1
  307. prezik -=1
  308. 'You use a needle to punch holes in one of the condoms.'
  309. else
  310. 'You do not have any condoms to sabotage.'
  311. end
  312. end
  313. if i = 0:
  314. dynamic $din_Switch_Condom_Menu
  315. else
  316. dynamic $din_Table_Condom_Menu
  317. end
  318. '</td></tr></table></center>'
  319. }
  320. $din_Update_Condom_Counts = {
  321. if prezik + prezikcount + preziksabo > 0: prezikmsg = 1
  322. if preziktype = 0:
  323. if prezikcount > 0:
  324. prezik += prezikcount
  325. prezikcount = 0
  326. end
  327. if prezik <= 0:
  328. 'You are out of condoms.'
  329. prezik = 0
  330. prezikcount = 0
  331. preziktype = 1
  332. end
  333. elseif preziktype = 1:
  334. if prezik > 0:
  335. prezikcount += prezik
  336. prezik = 0
  337. end
  338. elseif preziktype = 2:
  339. if preziksabo > 0:
  340. prezik += preziksabo
  341. preziksabo = 0
  342. end
  343. if prezik <= 0 and prezikcount <= 0:
  344. if prezikmsg = 1:prezikmsg = 2
  345. prezik = 0
  346. preziksabo = 0
  347. prezikcount = 0
  348. preziktype = 1
  349. elseif prezik <= 0 and prezikcount > 0:
  350. 'You have run out of sabotaged condoms so you will have to use normal condoms.'
  351. prezik = prezikcount
  352. prezikcount = 0
  353. preziktype = 0
  354. end
  355. end
  356. }
  357. $d_tabletkied = {
  358. *clr & cla
  359. '<center><h1>Birth Control</h1></center>'
  360. '<center><img <<$set_imgh>> src="<<FUNC(''$purse_image'', $currentpursetype, currentpursenumber)>>"></center>'
  361. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  362. '<td cellspacing="0" cellpadding="0" valign="top">'
  363. tabloc = 0
  364. if tabletkiday < daystart and thinkpreg = 0 and knowpreg = 0: '<a href="exec:dynamic $d_tabletkieda, 1">Take the birth control pill now.</a>'
  365. if tabletkicheck = 0 and thinkpreg = 0 and knowpreg = 0:
  366. '<a href="exec:dynamic $d_tabletkieda, 2">Automatically take your birth control pills.</a>'
  367. elseif tabletkicheck = 1:
  368. '<a href="exec:dynamic $d_tabletkieda, 3">Stop automatically taking your birth control pills.</a>'
  369. end
  370. '<a href="exec:dynamic $d_tabletkieda, 4">Examine the birth control pills.</a>'
  371. if tabletkioddk = 1: '<a href="exec:dynamic $d_tabletkieda, 5">Dump the strange pills.</a>'
  372. act 'Return':gs 'din_bad', 'd_bag'
  373. '</td></tr></table></center>'
  374. }
  375. $d_tabletkiedt = {
  376. *clr & cla
  377. '<center><h1>Birth Control</h1></center>'
  378. '<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
  379. *nl
  380. tabloc = 1
  381. if tabletkiday < daystart and thinkpreg = 0 and knowpreg = 0: '<a href="exec:*clr & dynamic $d_tabletkieda, 1">Take the birth control pill now.</a>'
  382. if tabletkicheck = 0 and thinkpreg = 0 and knowpreg = 0:
  383. '<a href="exec:*clr & dynamic $d_tabletkieda, 2">Automatically take your birth control pills.</a>'
  384. elseif tabletkicheck = 1:
  385. '<a href="exec:*clr & dynamic $d_tabletkieda, 3">Stop automatically taking your birth control pills.</a>'
  386. end
  387. '<a href="exec:*clr & dynamic $d_tabletkieda, 4">Examine the birth control pills.</a>'
  388. if tabletkioddk = 1: '<a href="exec:*clr & dynamic $d_tabletkieda, 5">Dump the strange pills.</a>'
  389. act 'Return':gt 'stol', 'bc'
  390. }
  391. $d_tabletkieda = {
  392. cla
  393. if ARGS[0] = 1:
  394. tabletkipd += tabletkipt
  395. if tabletkiday ! daystart:
  396. gs 'din_bad','takepill'
  397. tabletkiday = daystart
  398. tabletkipt = 0
  399. tabletkipi = 0
  400. else
  401. pcs_health -= 1
  402. end
  403. pilldaychk = 1
  404. *clr
  405. dynamic $d_tabletkied
  406. 'You take the birth control pill.'
  407. gs 'stat'
  408. elseif ARGS[0] = 2:
  409. 'You will do your best to remember to take your birth control pills every day.'
  410. tabletkicheck = 1
  411. gs 'stat'
  412. elseif ARGS[0] = 3:
  413. 'You will take your birth control pills as you desire.'
  414. tabletkicheck = 0
  415. gs 'stat'
  416. elseif ARGS[0] = 4:
  417. if pcs_intel + pillsdays <= rand(30,95):
  418. 'These pills appear to be normal birth control pills.'
  419. tabletkioddk = 0
  420. gs 'stat'
  421. else
  422. if ptype = 0: $pillprob = 'nothing unusual about them.'
  423. if ptype = 1: $pillprob = 'that the pills have expired months ago.'
  424. if ptype = 2: $pillprob = 'that the label has spelling mistakes and the logo is backwards.'
  425. if ptype = 3: $pillprob = 'that the pills are discolored and there is no expiry date.'
  426. if ptype = 4: $pillprob = 'that the pills are all the same color.'
  427. if ptype = 5: $pillprob = 'that the pills seem to be smaller than normal.'
  428. 'Upon taking a closer look at your birth control pills, you notice <<$pillprob>>'
  429. if ptype > 0: tabletkioddk = 1
  430. gs 'stat'
  431. if tabloc = 0:
  432. act 'Return':gs 'din_bad', 'd_bag'
  433. else
  434. act 'Return':gt 'stol', 'bc'
  435. end
  436. end
  437. elseif ARGS[0] = 5:
  438. 'You get rid of the strange pills.'
  439. tabletkioddk = 0
  440. pillsleft[ptype] = 0
  441. tabletkioddp = 0
  442. gs 'stat'
  443. end
  444. if tabloc = 0:
  445. act 'Return':gs 'din_bad', 'd_bag'
  446. else
  447. act 'Return':gt 'stol', 'bc'
  448. end
  449. }
  450. $d_cycreport_choice = {
  451. *clr & cla
  452. '<center><h1>Fertility Cycle</h1></center>'
  453. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  454. '<td width="800" cellspacing="0" cellpadding="0" valign="top">'
  455. dynamic $d_cycreport_update
  456. '<center><b>Current Status:</b></center>'
  457. '<center><<$cycreport_txt>></center>'
  458. '</td></tr></table></center><center><table cellspacing="0" cellpadding="20" valign="top"><tr><td width="250" valign="top">'
  459. if $cycreport_txt ! 'In labour':
  460. '<center><b>Change Status because:</b></center>'
  461. if thinkpreg = 0:
  462. if knowpreg = 1:
  463. '<a href="exec: dynamic $d_cycreport_actor, 2 & gs ''stat''">I''m pregnant.</a>'
  464. else
  465. '<a href="exec: dynamic $d_cycreport_actor, 2 & gs ''stat''">I think I''m pregnant.</a>'
  466. end
  467. elseif thinkpreg = 1:
  468. '<a href="exec: dynamic $d_cycreport_actor, 1 & gs ''stat''">I''m not pregnant.</a>'
  469. end
  470. if mesec > 0 and thinkpreg ! 1 and knowpreg ! 1:
  471. '<a href="exec: dynamic $d_cycreport_actor, 3">I''m menstruating.</a>'
  472. elseif thinkpreg ! 1:
  473. '<a href="exec: dynamic $d_cycreport_actor, 4">I just recently menstruated.</a>'
  474. '<a href="exec: dynamic $d_cycreport_actor, 5">I think my menstrual cycle has stopped.</a>'
  475. end
  476. if thinkpreg = 1 or knowpreg = 1:
  477. '<a href="exec: dynamic $d_cycreport_actor, 6">I think my due date is...</a>'
  478. '<a href="exec: dynamic $d_cycreport_actor, 7">I think the father is...</a>'
  479. end
  480. elseif cycle = 5:
  481. 'Broken water and contractions, it''s pretty clear what is going on. You need to get to a hospital ASAP.'
  482. else
  483. dynamic $d_cycreport_actor, 10
  484. end
  485. act 'Exit':gs 'stat' & gt $loc, $metka
  486. '</td></tr></table></center>'
  487. }
  488. $d_cycreport_actor = {
  489. if ARGS[0] = 1:
  490. if knowpreg = 1:
  491. denypreg = 1
  492. thinkpreg = 0
  493. else
  494. denypreg = 0
  495. thinkpreg = 0
  496. temp[1] = daystart - daylastperiod
  497. end
  498. dynamic $d_cycreport_update
  499. gs 'stat'
  500. dynamic $d_cycreport_choice
  501. elseif ARGS[0] = 2:
  502. thinkpreg = 1
  503. denypreg = 0
  504. dynamic $d_cycreport_update
  505. gs 'stat'
  506. dynamic $d_cycreport_choice
  507. elseif ARGS[0] = 3:
  508. thinkpreg = 0
  509. denypreg = 0
  510. daylastperiod = daystart
  511. dynamic $d_cycreport_update
  512. gs 'stat'
  513. dynamic $d_cycreport_choice
  514. elseif ARGS[0] = 4:
  515. thinkpreg = 0
  516. denypreg = 0
  517. *clr & cla
  518. '<center><h1>Fertility Cycle</h1></center>'
  519. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  520. '<td width="250" cellspacing="0" cellpadding="0" valign="top">'
  521. 'How many days ago was it you had your last period?'
  522. 'Currently: <<pertemp>>'
  523. '<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>'
  524. act 'Return':dynamic $d_cycreport_choice
  525. act 'Exit':gs 'stat' & gt $loc, $metka
  526. '</td></tr></table></center>'
  527. elseif ARGS[0] = 5:
  528. thinkpreg = 0
  529. denypreg = 0
  530. $cycreport_txt = 'You do not believe you have periods any more.'
  531. gs 'stat'
  532. dynamic $d_cycreport_choice
  533. elseif ARGS[0] = 6:
  534. *clr & cla
  535. '<center><h1>Fertility Cycle</h1></center>'
  536. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  537. '<td width="250" cellspacing="0" cellpadding="0" valign="top">'
  538. 'How many days ago was it you had your last period?'
  539. 'Currently: <<pertemp>>'
  540. '<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>'
  541. act 'Return':dynamic $d_cycreport_choice
  542. act 'Exit':gs 'stat' & gt $loc, $metka
  543. '</td></tr></table></center>'
  544. elseif ARGS[0] = 7:
  545. *clr & cla
  546. '<center><h1>Fertility Cycle</h1></center>'
  547. '<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
  548. '<td width="250" cellspacing="0" cellpadding="0" valign="top">'
  549. tempmax = arrsize('$cumfthname')-1
  550. tempcurr = 0
  551. sumcum = 0
  552. *nl
  553. :potfathloop
  554. if cumtime[tempcurr] > 1:$cum = 'cumshots' else $cum = 'cumshot'
  555. if cumtime[tempcurr] > 0: '<<$npc_usedname[$cumfthname[tempcurr]]>> (<<$cumfthname[tempcurr]>>) - <<cumtime[tempcurr]>> <<$cum>>' & sumcum += cumtime[tempcurr]
  556. if tempcurr < tempmax:tempcurr += 1 & jump 'potfathloop'
  557. if sumcum > 1:$cum = 's' else $cum = ''
  558. '<br>You think you have had <<sumcum>> load<<$cum>> of cum shot<<$cum>> in your womb altogether that could have gotten you pregnant.'
  559. 'You suspect the father being: <<$wombthfath>><br>'
  560. *nl
  561. tempcurr = 0
  562. :pickfathloop
  563. if cumtime[tempcurr] > 0:
  564. if $npc_usedname[$cumfthname[tempcurr]] <> '':
  565. ' <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>'
  566. else
  567. ' <a href="exec: $wombthfath = ''<<$npc_usedname[$cumfthname[tempcurr]]>>'' & $wombthfathID = ''<<$cumfthname[tempcurr]>>'' & dynamic $d_cycreport_actor, 7 & gs ''stat''">Unknown (-)</a>'
  568. end
  569. end
  570. if tempcurr < tempmax:tempcurr += 1 & jump 'pickfathloop'
  571. killvar 'sumcum'
  572. killvar 'cum'
  573. killvar 'tempmax'
  574. killvar 'tempcurr'
  575. '<br> <a href="exec:dynamic $d_cycreport_choice">Accept</a>'
  576. act 'Return':dynamic $d_cycreport_choice
  577. act 'Exit':gs 'stat' & gt $loc, $metka
  578. '</td></tr></table></center>'
  579. elseif ARGS[0] = 10:
  580. temp = arrsize('Babyptype')
  581. temp -= 1
  582. $cycreport_txt = 'You are currently recovering from childbirth. You gave birth on <<monthkid[temp]>> / <<daykid[temp]>> / <<yearkid[temp]>>.'
  583. gs 'stat'
  584. end
  585. }
  586. $d_cycreport_update = {
  587. killvar 'temp'
  588. if thinkpreg = 1 or knowpreg = 1: dynamic $d_cycreport_upduedate
  589. if mesec > 0:
  590. $cycreport_txt = 'You are currently on your period.'
  591. else
  592. if cyccustom = 1:
  593. if preg = 1 and knowpreg = 1:
  594. $cycreport_txt = 'You are pregnant. Your due date is around <<$pregduedate>>.'
  595. if $wombthfath ! 'unknown':
  596. $cycreport_txt = '<<$cycreport_txt>> You suspect the father being <<$wombthfath>>.'
  597. end
  598. elseif knowpregloss = 1:
  599. $cycreport_txt = 'Your body is recovering from the trauma of pregnancy.'
  600. elseif knowpregrecover = 1:
  601. $cycreport_txt = 'Your body is recovering from the trauma of childbirth.'
  602. elseif menoage <= age and cycle = 6:
  603. $cycreport_txt = 'You have gone through menopause.'
  604. else
  605. temp[1] = daystart-lastmens
  606. if tabletkishot > 0:
  607. $cycreport_txt = 'It has been <<temp[1]>> days since you last had a period. <font color=green>You are currently protected by a birth control shot.</font>'
  608. elseif pillcon2 > 30000:
  609. $cycreport_txt = 'It has been <<temp[1]>> days since you last had a period. <font color=green>You are currently on the birth control pill.</font>'
  610. elseif pillcon2 > 8000 and ((FocH > (Foch_Max - 96)) or ovulate > 0):
  611. $cycreport_txt = 'It has been <<temp[1]>> days since you last had a period. You are currently on the pill but it is not yet effective. <font color=red>It is currently a dangerous day.</font>'
  612. elseif pillcon2 > 8000:
  613. $cycreport_txt = 'It has been <<temp[1]>> days since you last had a period. You are currently on the pill but it is not yet effective.'
  614. elseif daystart = tabletkiday:
  615. $cycreport_txt = 'It has been <<temp[1]>> days since you last had a period. You have taken the pill but it will be several weeks before it is fully effective.'
  616. elseif FocH > (Foch_Max - 96) or ovulate > 0:
  617. $cycreport_txt = 'It has been <<temp[1]>> days since you last had a period. <font color=red>It is currently your fertile stage.</font>'
  618. else
  619. $cycreport_txt = 'It has been <<temp[1]>> days since you last had a period.'
  620. end
  621. end
  622. elseif denypreg = 1:
  623. if pregchem < 525:
  624. denypreg = 1
  625. thinkpreg = 0
  626. $cycreport_txt = 'There is nothing wrong, your cycle is just irregular.'
  627. elseif pregchem < 1863:
  628. denypreg = 1
  629. thinkpreg = 0
  630. $cycreport_txt = 'You have a strange flu making you feel ill.'
  631. elseif pregchem < 4000:
  632. denypreg = 1
  633. thinkpreg = 0
  634. $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.'
  635. elseif pregchem < 6000:
  636. denypreg = 1
  637. thinkpreg = 0
  638. $cycreport_txt = 'Your weight just won''t come off...'
  639. elseif pregchem < 7500:
  640. denypreg = 1
  641. thinkpreg = 0
  642. $cycreport_txt = 'People are rude, constantly asking you when you are due. You are not pregnant!'
  643. elseif pregchem >= 7500:
  644. thinkpreg = 0
  645. $cycreport_txt = 'Surely if you were pregnant, you''d have had the baby by now, so you can''t possibly be pregnant.'
  646. else
  647. temp = daystart-lastmens
  648. $cycreport_txt = 'It has been <<temp>> days since you last remember having a period.'
  649. end
  650. elseif cyccustom = 0:
  651. if $cycreport_txt ! 'In labour':
  652. if thinkpreg = 1 or knowpreg = 1:
  653. if knowpreg = 0: $temp = ' think you'
  654. if $wombthfath = 'unknown' or $wombthfath = '':
  655. $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>>.'
  656. else
  657. $cycreport_txt = 'You<<$temp>> are pregnant with <<$wombthfath>>''s baby. Based on your last remembered period, your due date is probably around <<$pregduedate>>.'
  658. end
  659. elseif $cycreport_txt ! 'You do not believe you have periods any more.':
  660. temp = daystart-lastmens
  661. $cycreport_txt = 'It has been <<temp>> days since you last remember having a period.'
  662. end
  663. killvar 'temp'
  664. end
  665. end
  666. end
  667. }
  668. $d_cycreport_upduedate = {
  669. !! implant_calc: Calculation of an implantation date in the uterus (Average is 5 days after ovulation)
  670. implant_calc = daystart - lastovulation + 5
  671. !! Human gastation period: 280 days
  672. gastation_time = 280 / (1 + pregspeedcheat)
  673. temp = gastation_time - implant_calc
  674. pregdueday = day
  675. pregduemonth = month
  676. pregdueyear = year
  677. temp += pregdueday
  678. pregdueday = 0
  679. :pregduedateloop
  680. if pregduemonth = 1 and temp > 31:
  681. pregduemonth += 1
  682. temp -= 31
  683. elseif pregduemonth = 2 and temp > 28:
  684. pregduemonth += 1
  685. temp -= 28
  686. elseif pregduemonth = 3 and temp > 31:
  687. pregduemonth += 1
  688. temp -= 31
  689. elseif pregduemonth = 4 and temp > 30:
  690. pregduemonth += 1
  691. temp -= 30
  692. elseif pregduemonth = 5 and temp > 31:
  693. pregduemonth += 1
  694. temp -= 31
  695. elseif pregduemonth = 6 and temp > 30:
  696. pregduemonth += 1
  697. temp -= 30
  698. elseif pregduemonth = 7 and temp > 31:
  699. pregduemonth += 1
  700. temp -= 31
  701. elseif pregduemonth = 8 and temp > 31:
  702. pregduemonth += 1
  703. temp -= 31
  704. elseif pregduemonth = 9 and temp > 30:
  705. pregduemonth += 1
  706. temp -= 30
  707. elseif pregduemonth = 10 and temp > 31:
  708. pregduemonth += 1
  709. temp -= 31
  710. elseif pregduemonth = 11 and temp > 30:
  711. pregduemonth += 1
  712. temp -= 30
  713. elseif pregduemonth = 12 and temp > 31:
  714. pregduemonth = 1
  715. pregdueyear += 1
  716. temp -= 31
  717. else
  718. pregdueday = temp
  719. temp = 0
  720. end
  721. if temp > 0: jump 'pregduedateloop'
  722. $pregduedate = '<<pregduemonth>> / <<pregdueday>> / <<pregdueyear>>'
  723. }
  724. $d_pregmovement = {
  725. if denypreg = 0 and pregchem > 0:
  726. if thinkpreg > 0 and knowpreg = 0:
  727. knowpreg = 1
  728. if kid <= 0:
  729. 'Your heart flutters as you feel a baby moving around inside you for the first time.'
  730. else
  731. 'The movement inside you confirms what you already suspected. You are pregnant once again.'
  732. end
  733. elseif knowpreg > 0:
  734. temprand = rand(0,2)
  735. if temprand = 0:
  736. if pregchem > 5000:
  737. 'Your baby visibly moves around inside you.'
  738. else
  739. 'You feel movement deep inside you as your baby shifts around.'
  740. end
  741. elseif temprand = 1:
  742. if pregchem > 5000:
  743. 'You wince as your baby delivers a vicious kick to your insides.'
  744. else
  745. 'You feel your baby kicking.'
  746. end
  747. elseif temprand = 2:
  748. if pregchem > 5000:
  749. 'You feel your baby kicking, look down, and see your belly twitching from it''s movements.'
  750. else
  751. 'You feel your baby kicking.'
  752. end
  753. end
  754. else
  755. if cyccustom = 1:
  756. if pregchem < 4000:
  757. if kid <= 0 :
  758. 'You feel a weird and strange fluttering sensation around inside your stomach. Perhaps you should see the doctor?'
  759. else
  760. 'It feels as if a baby is moving inside you. Are you pregnant?'
  761. end
  762. else
  763. knowpreg = 1
  764. if kid <= 0:
  765. 'It''s become pretty obvious. You are pregnant.'
  766. else
  767. 'It''s become pretty obvious. You are pregnant once again.'
  768. end
  769. end
  770. end
  771. end
  772. elseif pregchem > 0:
  773. if kid > 0 and PregChem > 3903:
  774. 'You try to deny it, but you just can''t any more. The large belly, the movement, you are pregnant once again.'
  775. denypreg = 0
  776. dynamic $d_cycreport_upduedate
  777. $cycreport_txt = 'You are pregnant.'
  778. else
  779. 'You feel movement deep inside you. It''s probably just gas.'
  780. end
  781. end
  782. }
  783. $use_steroids = {
  784. if steroid_dose < 3:
  785. '<font color = blue>You swallow the orange pill.</font>'
  786. steroid_dose += 1
  787. steroid_counter += 1
  788. steroid_have -= 1
  789. else
  790. 'You really shouldn''t take any more pills today.'
  791. end
  792. }
  793. $use_bcream = {
  794. if bcream_used < 1:
  795. '<font color = #DB7093>You smear the cream onto your breasts and rub it in.</font>'
  796. bcream_used = 1
  797. bcream_have -= 1
  798. else
  799. 'Using any more cream won''t have any effect.'
  800. end
  801. }
  802. if $ARGS[0] = 'takepill':
  803. if tabletki > 0 and pillsleft[ptype] = 0:
  804. tabletkirand = rand(1, tabletki)
  805. if tabletkirand <= tabletkiold:
  806. tabletki -=1
  807. tabletkiold -=1
  808. ptype = 1
  809. pillsleft[ptype] = 28
  810. elseif tabletkirand <= tabletkiold + tabletkifake:
  811. tabletki -=1
  812. tabletkifake -=1
  813. ptype = 2
  814. pillsleft[ptype] = 28
  815. elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej:
  816. tabletki -=1
  817. tabletkirej -=1
  818. ptype = 3
  819. pillsleft[ptype] = 28
  820. elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej + tabletkisug:
  821. tabletki -=1
  822. tabletkisug -=1
  823. ptype = 4
  824. pillsleft[ptype] = 28
  825. elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej + tabletkisug + tabletkifert:
  826. tabletki -=1
  827. tabletkifert -=1
  828. ptype = 5
  829. pillsleft[ptype] = 28
  830. else
  831. tabletki -=1
  832. ptype = 0
  833. pillsleft[ptype] = 28
  834. end
  835. killvar 'tabletkirand'
  836. end
  837. !! added empty week to allow menstruation - it take effect only when the pills are taken automatically
  838. if placebopart <= 0 or tabletkicheck ! 1:
  839. !!pillcon2 is the ideal state, PC cosiders this the believed pillcon value
  840. pillcon2 += ((pillcon2+15000)/40)+1000
  841. if pillcon2 > 40000:pillcon2 = 40000
  842. if ptype = 0:
  843. pillsleft[ptype] -= 1
  844. pcs_skin += 1
  845. pillcon += ((pillcon+15000)/40)+1000
  846. if pillcon > 40000: pillcon = 40000
  847. elseif ptype = 1:
  848. pillsleft[ptype] -= 1
  849. pcs_skin += rand(0,1)
  850. pillcon += ((pillcon+15000)/40)+ rand(250,1000)
  851. if pillcon > 40000: pillcon = 40000
  852. elseif ptype = 2:
  853. pillsleft[ptype] -= 1
  854. pcs_skin += rand(0,1)
  855. pillcon += ((pillcon+15000)/40)+ rand(0,500)
  856. if pillcon > 40000: pillcon = 40000
  857. elseif ptype = 3:
  858. pillsleft[ptype] -= 1
  859. pcs_skin += rand(0,1)
  860. if rand(0,4) = 0: pain['tummy'] += rand(5,10)
  861. pillcon += ((pillcon+15000)/40)+ rand(250,2000)
  862. if pillcon > 40000: pillcon = 40000
  863. elseif ptype = 4:
  864. pillsleft[ptype] -= 1
  865. elseif ptype = 5:
  866. pillsleft[ptype] -= 1
  867. pcs_skin += 1
  868. EggRH += rand(10,80)
  869. end
  870. end
  871. end
  872. --- din_bad ---------------------------------