lact_bp.qsrc 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184
  1. # lact_bp
  2. !! ---- old variables ---------------------------------------------------------
  3. !! - These Variables still need to be replaced/removed or substituted. -
  4. !! bottlecounter
  5. !! bp_unbox
  6. !! bp_useable_mbottle
  7. !! bp_useable_sbottle
  8. !! bp_used_mbottle
  9. !! bp_used_sbottle
  10. !! bpbottlem
  11. !! bpbottles
  12. !! breastcounter
  13. !! breastpump
  14. !! breastpumped
  15. !! di_i
  16. !! emb_i
  17. !! energytomilkpump
  18. !! lactaterate_use
  19. !! max_nip_flow_rate
  20. !! max_sucktion_demand
  21. !! mbarrcool
  22. !! mbarrfill
  23. !! mbarrloca
  24. !! mbarrmage
  25. !! mbarrtype
  26. !! milk_demand
  27. !! nip_flow
  28. !! nip_flow_mod
  29. !! nipple_cream
  30. !! pcs_ask_mward_help
  31. !! pcs_know_mward
  32. !! pcs_knows_electric_pump
  33. !! pcs_massagedherbreasts
  34. !! pcs_usedbreastpumponherself
  35. !! piits_i
  36. !! pump_bottletype
  37. !! pump_stop_brake
  38. !! pump_timestamp
  39. !! pumpinggrowth
  40. !! pumptime
  41. !! pumptime_left
  42. !! pumptype
  43. !! rbc_index
  44. !! reg_bottlem_count
  45. !! reg_bottles_count
  46. !! soreness_mod
  47. !! suck_flow_rate
  48. !! suck_until_pain
  49. !! temp_breastsize
  50. !! temp_lactaterate
  51. !! temp_timestamp
  52. !! temp_var
  53. !! temp_var2
  54. !! ts_i
  55. !! umbc_i
  56. !! usbc_i
  57. !! vmb_i
  58. !! bpID_arr['index'] : breast pump id. Starts at 0, with every purchased breast pump the id will be added
  59. !! bpType_arr['index'] : breast pump type. 0 = 'manual_single', 1 = 'electric_single', 2 ='electric_dual'
  60. !! bpLocID_arr['index'] : 0 = lost, 1 = in svetas hand... same as bottle locations
  61. !! bpbID1_arr['index'] : index of milk bottle array.
  62. !! bpbID2_arr['index'] : only used for dual pump, index for milk bottle array. cannot be the same like breastpump_arr['bottle_id_1'].
  63. !! when ever sveta buys a new breastpump, it has to be added to the breast pump array.
  64. if $ARGS[0] = 'build_bp':
  65. !! ARGS[1] = type
  66. !! ARGS[2] = location_id
  67. !! usage func('lact_bp', 'build_bp', 'breast pump type', 'location id')
  68. !! returns the new bottle ID
  69. bp_i = arrsize('bpID_arr')
  70. bpID_arr[bp_i] = bp_i
  71. bpType_arr[bp_i] = ARGS[1]
  72. bpLocID_arr[bp_i] = ARGS[2]
  73. bpbID1_arr[bp_i] = ''
  74. bpbID2_arr[bp_i] = ''
  75. result = bp_i
  76. end
  77. !! view milk bottles function
  78. if $ARGS[0] = 'view_milk_bottles':
  79. !! func('lact_bp', 'view_milk_bottles', location_id)
  80. !! use gs 'lact_bp','view_milk_bottles', 2
  81. !! locations
  82. !! 0 = lost
  83. !! 1 = in svetas hand
  84. !! 2 = in svetas bag
  85. !! 3 = parent bathroom
  86. !! 4 = parent fridge
  87. !! 5 = Resident Area Appartment Bathroom
  88. !! 6 = Resident Area Appartment Fridge
  89. !! 7 = Grandparents Bathroom
  90. !! 8 = Villa Bathroom
  91. !! 9 = Villa Fridge
  92. !! 10 = Shared Apartment Bathroom
  93. !! 11 = Shared Apartment Fridge
  94. !! Locations are not used yet but are implemented. I will add this on another day.
  95. !! milk bottle array indices
  96. !! mbarrtype: Size of milk bottle. Normal bottles are 150ml and large bottles are 250ml. Values are ml*10
  97. !! mbarrfill: Filled milk volume in the bottle. Values are in ml*10 and can''t surpass mbarrtype
  98. !! mbarrmage: timestamp the milk was pumped.
  99. !! mbarrcool: Is the milk cooled? 0 = no, 1 = normal cooler, 2 = deep freezer
  100. !! $mbarrstat: State of the milk: fresh, normal, old, rancid
  101. !! $mbarrtemp: Temperature of the milk: hot, warm, normal, cold, frozen
  102. !! mbarrloca: Location of the bottle.
  103. *clr
  104. cla
  105. !! Checking for unregistered bottles.
  106. gs 'lact_bp', 'reg_bottle_count'
  107. 'You check the bottles that you store here.<br>'
  108. temp_var = (bpbottlem + bpbottles) - 1
  109. vmb_i = 0
  110. milkedvolume = 0
  111. :vmbloop
  112. if vmb_i <= temp_var:
  113. if mbarrloca[vmb_i] = ARGS[1]:
  114. gs 'lact_bp', 'update_mbottle', vmb_i
  115. if mbarrfill[vmb_i] <=0:
  116. mbarrfill[vmb_i] = 0
  117. '<br><<vmb_i + 1>>. - An empty <<mbarrtype[vmb_i]/10>>ml bottle. You can use it to store your breast milk.'
  118. else
  119. '<br><<vmb_i + 1>>. - A <<mbarrtype[vmb_i]/10>>ml bottle. There is <<mbarrfill[vmb_i]/10>>ml of milk in the bottle. <a href="exec:msg ''<center>You open the bottle and check the milk inside.<br>You can feel the milk is <<$mbarrtemp[vmb_i]>> and it smells <<$mbarrstat[vmb_i]>>.</center>''">Check the content</a>'
  120. milkedvolume += mbarrfill[vmb_i]
  121. end
  122. end
  123. vmb_i += 1
  124. jump 'vmbloop'
  125. end
  126. if milkedvolume > 0:
  127. '<br><a href="exec:gt''lact_bp'',''empty_milk_bottles''">Pour the milk into the sink</a>'
  128. end
  129. act 'Back':gt 'lact_bp', 'bp_milking'
  130. end
  131. !! empty bottle function
  132. if $ARGS[0] = 'empty_milk_bottles':
  133. !! use gt 'lact_bp', 'empty_milk_bottles'
  134. *clr
  135. cla
  136. temp_var = (bpbottlem + bpbottles) - 1
  137. emb_i = 0
  138. :emb_loop
  139. if emb_i <= temp_var:
  140. mbarrfill[emb_i] = 0
  141. mbarrmage[emb_i] = 0
  142. mbarrcool[emb_i] = 0
  143. $mbarrstat[emb_i] = 'none'
  144. $mbarrtemp[emb_i] = 'none'
  145. emb_i += 1
  146. jump 'emb_loop'
  147. end
  148. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_sink.jpg"></center>'
  149. '<center>You pour all of your collected breast milk into the sink and clean up the bottles.</center>'
  150. minut += temp_var
  151. act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  152. end
  153. !! fill a bottle function
  154. if $ARGS[0] = 'fill_milk_bottle':
  155. !! use func('lact_bp','fill_milk_bottle',bottle_id,milk_amount)
  156. !! example func('lact_bp','fill_milk_bottle',3,300)
  157. if ARGS[2] > mbarrtype[ARGS[1]]:
  158. 'ERROR - More milk going into bottle than the bottle can hold.'
  159. else
  160. mbarrfill[ARGS[1]] = ARGS[2]
  161. mbarrmage[ARGS[1]] = func('lact_bp','time_stamp')
  162. mbarrcool[ARGS[1]] = 0
  163. $mbarrstat[ARGS[1]] = 'fresh'
  164. $mbarrtemp[ARGS[1]] = 'warm'
  165. end
  166. end
  167. !! Time Stamp function for milk bottles.
  168. if $ARGS[0] = 'time_stamp':
  169. !! use func('lact_bp','time_stamp')
  170. !! This function creates a time stamp in minutes. It takes the current in game time and converts it to total minutes from year 01.01.0000 to in game now.
  171. !! Used to check breast milk age in bottles. Can be used for other functions if needed.
  172. temp_timestamp = 0
  173. temp_timestamp += year * 365 * 24 * 60
  174. ts_i = 1
  175. if month > 1:
  176. :ts_loop
  177. if (month - 1) => ts_i:
  178. if ts_i = 1 or ts_i = 3 or ts_i = 5 or ts_i = 7 or ts_i = 8 or ts_i = 10 or ts_i = 12:
  179. temp_timestamp += 44640
  180. elseif ts_i = 4 or ts_i = 6 or ts_i = 9 or ts_i = 11:
  181. temp_timestamp += 43200
  182. elseif ts_i = 2:
  183. temp_timestamp += 40320
  184. if (year mod 4) = 0 and (year mod 100) ! 0 or (year mod 400) = 0:
  185. temp_timestamp += 1440
  186. end
  187. end
  188. ts_i += 1
  189. jump 'ts_loop'
  190. end
  191. end
  192. temp_timestamp += (day - 1) * 24 * 60
  193. temp_timestamp += hour * 60
  194. temp_timestamp += minut
  195. result = temp_timestamp
  196. end
  197. !! Update Milk bottle function
  198. if $ARGS[0] = 'update_mbottle':
  199. !! func('lact_bp', 'update_mbottle', bottle_id)
  200. !! use result = func('lact_bp','update_mbottle', '0')
  201. !! this function is used to update milk bottles whenever the milk is pumped or sveta checkes the bottles in her stash.
  202. !! Room temperature. Freshly expressed breast milk can be kept at room temperature for up to six hours. However, use or proper storage within four hours is optimal. If the room is especially warm, the limit is also four hours.
  203. !! Insulated cooler. Freshly expressed breast milk can be stored in an insulated cooler with ice packs for up to one day.
  204. !! Refrigerator. Freshly expressed breast milk can be stored in the back of the refrigerator for up to five days in clean conditions. However, use or freezer storage within three days is optimal.
  205. !! Deep freezer. Freshly expressed breast milk can be stored in the back of a deep freezer for up to 12 months. However, using the frozen milk within six months is optimal.
  206. !! milk bottle array indices
  207. !! mbarrtype: Size of milk bottle. Normal bottles are 150ml and large bottles are 250ml. Values are ml*10
  208. !! mbarrfill: Filled milk volume in the bottle. Values are in ml*10 and can''t surpass mbarrtype
  209. !! mbarrmage: timestamp the milk was pumped.
  210. !! mbarrcool: Is the milk cooled? 0 = no, 1 = normal cooler, 2 = deep freezer
  211. !! $mbarrstat: State of the milk: fresh, normal, old, rancid
  212. !! $mbarrtemp: Temperature of the milk: hot, warm, normal temparture, cold, frozen
  213. !! mbarrloca: Location of the bottle.
  214. if mbarrfill[ARGS[1]] > 0:
  215. if mbarrfill[ARGS[1]] > mbarrtype[ARGS[1]]: mbarrfill[ARGS[1]] = mbarrtype[ARGS[1]]
  216. if mbarrmage[ARGS[1]] <= 0: mbarrmage[ARGS[1]] = func('lact_bp','time_stamp')
  217. if mbarrcool[ARGS[1]] = 0:
  218. if (mbarrmage[ARGS[1]] + 60) >= func('lact_bp','time_stamp'):
  219. $mbarrtemp[ARGS[1]] = 'warm'
  220. $mbarrstat[ARGS[1]] = 'fresh'
  221. elseif (mbarrmage[ARGS[1]] + 60) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 360) >= func('lact_bp','time_stamp'):
  222. $mbarrtemp[ARGS[1]] = 'normal temparture'
  223. $mbarrstat[ARGS[1]] = 'normal'
  224. elseif (mbarrmage[ARGS[1]] + 360) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 1440) >= func('lact_bp','time_stamp'):
  225. $mbarrtemp[ARGS[1]] = 'normal temparture'
  226. $mbarrstat[ARGS[1]] = 'old'
  227. else
  228. $mbarrtemp[ARGS[1]] = 'normal temparture'
  229. $mbarrstat[ARGS[1]] = 'rancid'
  230. end
  231. elseif mbarrcool[ARGS[1]] = 1:
  232. if (mbarrmage[ARGS[1]] + 1440) >= func('lact_bp','time_stamp'):
  233. $mbarrtemp[ARGS[1]] = 'cold'
  234. $mbarrstat[ARGS[1]] = 'fresh'
  235. elseif (mbarrmage[ARGS[1]] + 1440) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 4320) >= func('lact_bp','time_stamp'):
  236. $mbarrtemp[ARGS[1]] = 'cold'
  237. $mbarrstat[ARGS[1]] = 'normal'
  238. elseif (mbarrmage[ARGS[1]] + 4320) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 7200) >= func('lact_bp','time_stamp'):
  239. $mbarrtemp[ARGS[1]] = 'cold'
  240. $mbarrstat[ARGS[1]] = 'old'
  241. else
  242. $mbarrtemp[ARGS[1]] = 'cold'
  243. $mbarrstat[ARGS[1]] = 'rancid'
  244. end
  245. elseif mbarrcool[ARGS[1]] = 2:
  246. if (mbarrmage[ARGS[1]] + 10080) >= func('lact_bp','time_stamp'):
  247. $mbarrtemp[ARGS[1]] = 'frozen'
  248. $mbarrstat[ARGS[1]] = 'fresh'
  249. elseif (mbarrmage[ARGS[1]] + 10080) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 262080) >= func('lact_bp','time_stamp'):
  250. $mbarrtemp[ARGS[1]] = 'frozen'
  251. $mbarrstat[ARGS[1]] = 'normal'
  252. elseif (mbarrmage[ARGS[1]] + 262080) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 525600) >= func('lact_bp','time_stamp'):
  253. $mbarrtemp[ARGS[1]] = 'frozen'
  254. $mbarrstat[ARGS[1]] = 'old'
  255. else
  256. $mbarrtemp[ARGS[1]] = 'frozen'
  257. $mbarrstat[ARGS[1]] = 'rancid'
  258. end
  259. else
  260. $mbarrtemp[ARGS[1]] = 'warm'
  261. $mbarrstat[ARGS[1]] = 'fresh'
  262. end
  263. else
  264. $mbarrtemp[ARGS[1]] = 'none'
  265. $mbarrstat[ARGS[1]] = 'none'
  266. mbarrmage[ARGS[1]] = 0
  267. mbarrfill[ARGS[1]] = 0
  268. end
  269. end
  270. if $ARGS[0] = 'useable_sbottle_count':
  271. !! use result = func('lact_bp','useable_sbottle_count',)
  272. !! function will give you the amount of 150ml bottles that sveta can use at the moment.
  273. usbc_i = 0
  274. bottlecounter = 0
  275. if reg_bottles_count > 0:
  276. :usbc_loop
  277. if usbc_i <= (reg_bottlem_count + reg_bottles_count):
  278. if mbarrtype[usbc_i] = 1500 and mbarrfill[usbc_i] = 0:
  279. bottlecounter += 1
  280. end
  281. usbc_i += 1
  282. jump 'usbc_loop'
  283. end
  284. end
  285. result = bottlecounter
  286. end
  287. if $ARGS[0] = 'useable_mbottle_count':
  288. !! use result = func('lact_bp','useable_mbottle_count')
  289. !! function will give you the amount of 250ml bottles that sveta can use at the moment.
  290. umbc_i = 0
  291. bottlecounter = 0
  292. if reg_bottlem_count > 0:
  293. :umbc_loop
  294. if umbc_i <= (reg_bottlem_count + reg_bottles_count):
  295. if mbarrtype[umbc_i] = 2500 and mbarrfill[umbc_i] = 0:
  296. bottlecounter += 1
  297. end
  298. umbc_i += 1
  299. jump 'umbc_loop'
  300. end
  301. end
  302. result = bottlecounter
  303. end
  304. !! bp_milking - breast pump milking
  305. !! use href="exec:gt ''lact_bp'',''bp_milking''" or gt 'lact_bp','bp_milking'
  306. if $ARGS[0] = 'bp_milking':
  307. pumptime = 0
  308. pumptype = 0
  309. gs 'lact_bp', 'reg_bottle_count'
  310. if pump_bottletype < 1500: pump_bottletype = 1500
  311. if $location_type ! 'bathroom' and pcs_inhib < 30:
  312. 'You aren''t confident enough to do that here.'
  313. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  314. elseif bp_unbox <= 0:
  315. 'You need to unbox your breast pump first.'
  316. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  317. elseif bp_unbox = 1 and ($location_type = 'bathroom' or $location_type = 'private'):
  318. gt 'lact_bp', 'bp_unbox_event'
  319. else
  320. *clr
  321. cla
  322. '<center><img <<$set_imgh>> src="images/pc/body/tits/breast_pump.jpg"></center>'
  323. 'How long do you want to pump your breasts with the manual breast pump?'
  324. if func('lact_bp','useable_sbottle_count') > 0 and func('lact_bp','useable_mbottle_count') > 0:
  325. if func('lact_bp','useable_sbottle_count') > 0 and pump_bottletype = 1500:
  326. 'Current bottle size in use: &gt;150ml | <a href="exec:pump_bottletype = 2500 & gt ''lact_bp'', ''bp_milking''">250ml</a>'
  327. elseif func('lact_bp','useable_mbottle_count') > 0:
  328. pump_bottletype = 2500
  329. 'Current bottle size in use <a href="exec:pump_bottletype = 1500 & gt ''lact_bp'', ''bp_milking''">150ml</a> | &gt;250ml'
  330. else
  331. 'this should not end up here - got to tfg forums.'
  332. end
  333. elseif func('lact_bp','useable_sbottle_count') > 0 and func('lact_bp','useable_mbottle_count') <= 0:
  334. pump_bottletype = 1500
  335. 'You currently use a 150ml bottle on your breast pump.'
  336. elseif func('lact_bp','useable_sbottle_count') <= 0 and func('lact_bp','useable_mbottle_count') > 0:
  337. pump_bottletype = 2500
  338. 'You currently use a 250ml bottle on your breast pump.'
  339. else
  340. 'You have no bottles left to use. Please empty bottles or buy new ones in the pharmacy.'
  341. end
  342. if (bpbottlem + bpbottles) = 1:
  343. 'You have one bottle. You can check it <a href="exec:gs ''lact_bp'',''view_milk_bottles'', 1">here</a>'
  344. elseif (bpbottlem + bpbottles) > 1:
  345. 'You have <<bpbottlem + bpbottles>> bottles. You can check them <a href="exec:gs ''lact_bp'',''view_milk_bottles'', 1">here</a>'
  346. end
  347. if lactation['breastmv'] > 0 and (func('lact_bp','useable_sbottle_count') > 0 or func('lact_bp','useable_mbottle_count') > 0):
  348. pumptime = (func('lact_lib','$get_breastmilk_time', 3, (lactation['breastmv']/1000)))
  349. if pumptime > 5:
  350. pumptime -= 2
  351. end
  352. if pumptime > 60:
  353. act 'Pump until breasts are empty':
  354. *clr
  355. cla
  356. minut += 2
  357. 'As you prepare for pumping you weight your breasts in your hands. You feel that your breasts carry a large amount of milk and pumping will probably take a long time.'
  358. 'Getting relieve for your breasts with the manual breast pump will probably take at least <<pumptime>> minutes.'
  359. if pcs_know_mward <= 0:
  360. 'You consider visiting a hospital to get help or buying a better breast pump.'
  361. pcs_ask_mward_help = 1
  362. pcs_knows_electric_pump = 1
  363. end
  364. 'Do you want to continue?'
  365. act 'Don''t pump':gt $loc, $loc_arg
  366. act 'Continue':
  367. gt 'lact_bp', 'milking'
  368. end
  369. end
  370. elseif pumptime <= 0:
  371. act 'Pump until breasts are empty':
  372. *clr
  373. cla
  374. minut += 2
  375. 'As you prepare for pumping you weight your breasts in your hands. Your breasts feel really empty. There is no need to pump now.'
  376. act 'Don''t pump':gt $loc, $loc_arg
  377. act 'back':gt 'lact_bp', 'bp_milking'
  378. end
  379. else
  380. act 'Pump until breasts are empty':
  381. pumptime = func('lact_lib','$get_breastmilk_time', 3, (lactation['breastmv']/1000))
  382. if pumptime > 5:
  383. pumptime -= 2
  384. end
  385. gt 'lact_bp', 'milking'
  386. end
  387. end
  388. end
  389. if (func('lact_bp','useable_sbottle_count') > 0 or func('lact_bp','useable_mbottle_count') > 0):
  390. act '15 Minutes':
  391. pumptime = 15
  392. gt 'lact_bp', 'milking'
  393. end
  394. act '30 Minutes':
  395. pumptime = 30
  396. gt 'lact_bp', 'milking'
  397. end
  398. act 'Custom':
  399. pumptime = input ("How long do you plan to pump your breasts? (Not more than 60 minutes)")
  400. if pumptime <= 0 or pumptime > 60:
  401. minut += 2
  402. act 'Don''t pump':menu_off = 0 & gt $loc, $loc_arg
  403. act 'back':gt 'lact_bp', 'bp_milking'
  404. elseif pumptime > 0 and pumptime <= 60:
  405. gt 'lact_bp', 'milking'
  406. end
  407. end
  408. end
  409. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  410. act 'Manually milk your breasts': gt 'lact_bp','man_milking'
  411. else
  412. act 'Massage your breasts': gt 'lact_bp','man_milking'
  413. end
  414. act 'Don''t pump':menu_off = 0 & gt $loc, $loc_arg
  415. end
  416. end
  417. !! man_milking - manual (with hands) milking
  418. !! use href="exec:gt ''lact_bp'',''man_milking''"
  419. !! for manual milk expression in bathrooms etc. please use this function.
  420. if $ARGS[0] = 'massage':
  421. if (($location_type ! 'bathroom' and pcs_inhib >= 30) or $location_type = 'bathroom' and breastpump = 0) and (pcs_horny >= 10 or lactation['active'] > 0) and cheat_NoLactation = 0:
  422. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  423. act 'Milk your breasts': gt 'lact_bp','man_milking'
  424. else
  425. act 'Massage your breasts': gt 'lact_bp','man_milking'
  426. end
  427. end
  428. end
  429. if $ARGS[0] = 'man_milking':
  430. pumptime = 0
  431. *clr
  432. cla
  433. gs 'lact_bp', 'reg_bottle_count'
  434. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  435. 'How long do you want to milk your breasts?'
  436. else
  437. 'How long do you want to massage your breasts?'
  438. end
  439. if lactation['breastmv'] > 0:
  440. pumptime = (func('lact_lib','$get_breastmilk_time', 5, (lactation['breastmv']/1000)))
  441. if pumptime > 60:
  442. act 'Express until breasts are empty':
  443. *clr
  444. cla
  445. minut += 2
  446. 'You prepare yourself and weight your breasts in your hands. You feel that your breasts carry a large amount of milk and manually expressing it will probably take a long time.'
  447. 'Getting relieve for your breasts with manual expression will probably take at least <<pumptime>> minutes.'
  448. if breastpump <= 0 and bp_unbox <= 1:
  449. 'You should consider buying a breast pump'
  450. elseif breastpump = 1 and bp_unbox <= 1 and pain['nipples'] <= 60:
  451. 'You should consider using your breast pump.'
  452. else
  453. 'You should consider the use of a breast pump.'
  454. end
  455. 'Do you want to continue?'
  456. act 'Don''t express':menu_off = 0 & gt $loc, $loc_arg
  457. act 'Express your milk':
  458. gt 'lact_bp', 'hand_milking'
  459. end
  460. end
  461. elseif pumptime <= 0:
  462. act 'Express milk until breasts are empty':
  463. *clr
  464. cla
  465. minut += 2
  466. 'As you prepare yourself you feel your breasts in your hands. Your breasts feel really empty. There is no need to express now.'
  467. act 'Don''t express milk':menu_off = 0 & gt $loc, $loc_arg
  468. act 'back':gt 'lact_bp', 'man_milking'
  469. end
  470. else
  471. act 'Express until breasts are empty':
  472. pumptime = func('lact_lib','$get_breastmilk_time', 5, (lactation['breastmv']/1000))
  473. gt 'lact_bp', 'hand_milking'
  474. end
  475. end
  476. end
  477. act '5 Minutes':
  478. pumptime = 5
  479. gt 'lact_bp', 'hand_milking'
  480. end
  481. act '10 Minutes':
  482. pumptime = 10
  483. gt 'lact_bp', 'hand_milking'
  484. end
  485. act 'Custom':
  486. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  487. pumptime = input ("How long do you plan to milk your breasts? (Not more than 60 minutes)")
  488. else
  489. pumptime = input ("How long do you plan to massage your breasts? (Not more than 60 minutes)")
  490. end
  491. if pumptime <= 0 or pumptime > 60:
  492. minut += 2
  493. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  494. act 'Don''t express':gt $loc, $loc_arg
  495. else
  496. act 'Don''t massage':gt $loc, $loc_arg
  497. end
  498. act 'back':gt 'lact_bp', 'man_milking'
  499. elseif pumptime > 0 and pumptime <= 60:
  500. gt 'lact_bp', 'hand_milking'
  501. end
  502. end
  503. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  504. act 'Don''t express':menu_off = 0 & gt $loc, $loc_arg
  505. else
  506. act 'Don''t massage':menu_off = 0 & gt $loc, $loc_arg
  507. end
  508. end
  509. if $ARGS[0] = 'bp_unbox_event':
  510. if bp_unbox <= 0:
  511. *clr
  512. cla
  513. minut += 5
  514. if $location_type = 'bathroom':
  515. 'You push down the toilet seat to sit down and slowly start to unbox your newly acquired breast pump.'
  516. elseif $location_type = 'private' and $locclass = 'bedr':
  517. 'You sit down on your bed and slowly start to unbox your newly acquired breast pump.'
  518. elseif $location_type = 'private':
  519. 'You sit down and slowly start to unbox your newly acquired breast pump.'
  520. end
  521. if kid <= 0 and preg <= 0 and pregtimes <= 0 and pregchem <= 0 and bp_unbox <= 0:
  522. 'While examining it, you think about why you bought it in the first place. You are not pregnant nor do you have a kid that needs breast milk.'
  523. if lactation['active'] <= 0:
  524. 'Your breasts haven''t got any milk in them too, so it seems this pump is a bit useless.'
  525. else
  526. 'At least it can help to get the milk out of your breasts.'
  527. end
  528. end
  529. if $location_type = 'private':
  530. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_unboxing.jpg"></center>'
  531. elseif $location_type = 'bathroom':
  532. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_unboxing_bath.jpg"></center>'
  533. else
  534. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_unboxing_bath.jpg"></center>'
  535. end
  536. !! creating first 150ml bottle
  537. bpbottles += 1
  538. gs 'lact_bp', 'reg_bottle_count'
  539. !! Actions
  540. if (pcs_inhib > 40 and $location_type = 'private') or $location_type = 'bathroom':
  541. act 'Try out how it works':
  542. *clr
  543. cla
  544. 'You pull up your top to release your breasts'
  545. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/t<<tits>>.jpg"></center><br>'
  546. 'Your fingers glide around the suction cup of the breast pump, while your other hand holds the pump.'
  547. 'Making sure that no one is around, you lift the breast pump to your left breast. The cold cone feels uncomfortable on your nipple.'
  548. milkedvolume = (func('lact_lib','$get_breastmilk', 3, 1))/100
  549. minut += 1
  550. bp_unbox = 2
  551. if lactation['active'] > 0 and milkedvolume > 0:
  552. if milkedvolume <= 50:
  553. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  554. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  555. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  556. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  557. elseif milkedvolume > 50 and milkedvolume <= 1500:
  558. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  559. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  560. 'You go on for a minute and then detach the pump. You collected <<milkedvolume/10>>ml of your breast milk.'
  561. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_half.jpg"></center>'
  562. else
  563. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  564. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  565. 'You go on for a minute and then detach the pump. You easily filed the breast pump bottle with your breast milk just with this little pumping.'
  566. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_full.jpg"></center>'
  567. end
  568. 'You nod at the breast pump, thinking it will come in handy.'
  569. elseif lactation['active'] > 0 and milkedvolume <= 0:
  570. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  571. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  572. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  573. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  574. else
  575. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  576. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  577. 'You go on for a minute and then detach the pump. As expected no milk was collected in the bottle.'
  578. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/breast_pump.jpg"></center>'
  579. end
  580. if lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0:
  581. if pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts <= 0:
  582. 'You are surprised to see that you are lactating!'
  583. lactation['induced'] = 1
  584. elseif pcs_usedbreastpumponherself <= 0 and pcs_massagedherbreasts > 0:
  585. 'Regularily massaging your breasts probably made you lactate!<br>'
  586. lactation['induced'] = 1
  587. elseif pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts > 0:
  588. 'All that pumping and massaging your breasts probably caused you to lactate!<br>'
  589. lactation['induced'] = 1
  590. else
  591. 'To your surprise it is milk. You started lactating!<br>'
  592. if thinkpreg = 1 or knowpreg = 1:
  593. 'This is probably happening because you are pregnant.'
  594. else
  595. 'You should have this checked out by a doctor. You could be pregnant.'
  596. end
  597. lactation['induced'] = 0
  598. end
  599. lactation['pc_aware'] = 1
  600. end
  601. act 'continue':
  602. *clr
  603. cla
  604. if milkedvolume > 50 and $location_type = 'private':
  605. 'You look at the milk in the bottle and then around the room. Having no idea what to do with the excess milk, you look at it and suddenly sip it down.'
  606. 'It is your milk, so it should be okay to drink it.'
  607. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_drink.jpg"></center>'
  608. '<center>The milk is still warm from your breasts.</center>'
  609. pcs_health += milkedvolume/400
  610. pcs_energy += milkedvolume/500
  611. if pcs_hydra >= 100:
  612. pcs_hydra += milkedvolume/200
  613. else
  614. pcs_hydra += milkedvolume/100
  615. end
  616. minut += ((milkedvolume/1000) + 3)
  617. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  618. else
  619. 'You clean up your pump and cover your breasts again.'
  620. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  621. end
  622. end
  623. bp_unbox = 2
  624. end
  625. end
  626. act 'Don''t try it here':
  627. *clr
  628. cla
  629. 'You look around you, not feeling to comfortable to use the breast pump here.'
  630. bp_unbox = 1
  631. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  632. end
  633. elseif bp_unbox = 1:
  634. if $location_type = 'private' and pcs_inhib < 40:
  635. 'You can''t do this here'
  636. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  637. else
  638. 'You pull up your top to release your breasts'
  639. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/t<<tits>>.jpg"></center><br>'
  640. 'Your fingers glide around the suction cup of the breast pump, while your other hand holds the pump.'
  641. 'Making sure that no one is around, you lift the breast pump to your left breast. The cold cone feels uncomfortable on your nipple.'
  642. milkedvolume = (func('lact_lib','$get_breastmilk', 3, 1))/100
  643. minut += 1
  644. bp_unbox = 2
  645. if lactation['active'] > 0 and milkedvolume > 0:
  646. if milkedvolume <= 50:
  647. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  648. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  649. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  650. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  651. elseif milkedvolume > 50 and milkedvolume <= 1500:
  652. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  653. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  654. 'You go on for a minute and then detach the pump. You collected <<milkedvolume/10>>ml of your breast milk.'
  655. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_half.jpg"></center>'
  656. else
  657. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  658. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  659. 'You go on for a minute and then detach the pump. You easily filed the breast pump bottle with your breast milk just with this little pumping.'
  660. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_full.jpg"></center>'
  661. end
  662. 'You nod at the breast pump, thinking it will come in handy.'
  663. elseif lactation['active'] > 0 and milkedvolume <= 0:
  664. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  665. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  666. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  667. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  668. else
  669. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  670. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  671. 'You go on for a minute and then detach the pump. As expected no milk was collected in the bottle.'
  672. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/breast_pump.jpg"></center>'
  673. end
  674. act 'continue':
  675. *clr
  676. cla
  677. if milkedvolume > 50 and $location_type = 'private':
  678. 'You look at the milk in the bottle and then around the room. Having no idea what to do with the excess milk, you look at it and suddenly sip it down.'
  679. 'It is your milk, so it should be okay to drink it.'
  680. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_drink.jpg"></center>'
  681. '<center>The milk is still warm from your breasts.</center>'
  682. pcs_health += milkedvolume/400
  683. pcs_energy += milkedvolume/500
  684. if pcs_hydra >= 100:
  685. pcs_hydra += milkedvolume/200
  686. else
  687. pcs_hydra += milkedvolume/100
  688. end
  689. minut += ((milkedvolume/1000) + 3)
  690. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  691. else
  692. 'You clean up your pump and cover your breasts again.'
  693. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  694. end
  695. end
  696. end
  697. elseif bp_unbox >= 2:
  698. *clr
  699. cla
  700. 'You unboxed your breast pump already.'
  701. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  702. end
  703. end
  704. if $ARGS[0] = 'reg_bottle_count':
  705. if reg_bottles_count <= 0: reg_bottles_count = 0
  706. if reg_bottlem_count <= 0: reg_bottlem_count = 0
  707. if (reg_bottlem_count + reg_bottles_count) < (bpbottlem + bpbottles):
  708. :rbc_loop
  709. rbc_index = (reg_bottlem_count + reg_bottles_count) - 1
  710. if (bpbottles - reg_bottles_count) > 0:
  711. reg_bottles_count += 1
  712. rbc_index = (reg_bottlem_count + reg_bottles_count) - 1
  713. mbarrtype[rbc_index] = 1500
  714. mbarrfill[rbc_index] = 0
  715. mbarrmage[rbc_index] = 0
  716. mbarrcool[rbc_index] = 0
  717. $mbarrstat[rbc_index] = 'none'
  718. $mbarrtemp[rbc_index] = 'none'
  719. mbarrloca[rbc_index] = 1
  720. jump 'rbc_loop'
  721. end
  722. if (bpbottlem - reg_bottlem_count) > 0:
  723. reg_bottlem_count += 1
  724. rbc_index = (reg_bottlem_count + reg_bottles_count) - 1
  725. mbarrtype[rbc_index] = 2500
  726. mbarrfill[rbc_index] = 0
  727. mbarrmage[rbc_index] = 0
  728. mbarrcool[rbc_index] = 0
  729. $mbarrstat[rbc_index] = 'none'
  730. $mbarrtemp[rbc_index] = 'none'
  731. mbarrloca[rbc_index] = 1
  732. jump 'rbc_loop'
  733. end
  734. end
  735. end
  736. !! milking
  737. !! never use directly. Always use bp_milking, man_milking or sex_milking
  738. if $ARGS[0] = 'milking':
  739. gs 'lact_bp', 'reg_bottle_count'
  740. if lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] > 0:
  741. milkedvolume = (func('lact_lib','$get_breastmilk', 3, pumptime))/100
  742. !!act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  743. bp_used_mbottle = 0
  744. bp_used_sbottle = 0
  745. bp_useable_sbottle = func('lact_bp','useable_sbottle_count')
  746. bp_useable_mbottle = func('lact_bp','useable_mbottle_count')
  747. pump_timestamp = func('lact_bp','time_stamp')
  748. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_lactating.jpg"></center>'
  749. if pumptime > 1:
  750. 'You attach the pump to your breast and start rhythmically squeezing the bulb for <<pumptime>> minutes.'
  751. else
  752. 'You attach the pump to your breast and start rhythmically squeezing the bulb for one minute.'
  753. end
  754. if milkedvolume > pump_bottletype and (bp_useable_sbottle*1500 + bp_useable_mbottle*2500) = pump_bottletype:
  755. 'During pumping you have to empty the collecting bottle as it filled up with your milk.'
  756. 'You give it a few more pumps and detach the pump.<br>You filled the bottle with <<pump_bottletype/10>>ml of your milk.'
  757. 'To collect all your pumped milk you should probably check if the pharmacy has additional bottles for your breast pump.'
  758. if (bp_useable_sbottle - bp_used_sbottle) > 0:
  759. bottlecounter = 0
  760. :sbottle_loneloop
  761. if bottlecounter < (bpbottlem + bpbottles) and milkedvolume > 1500:
  762. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  763. func('lact_bp','fill_milk_bottle',bottlecounter,1500)
  764. jump 'bottlefull_loopbreak'
  765. end
  766. bottlecounter += 1
  767. jump 'sbottle_loneloop'
  768. end
  769. elseif (bp_useable_mbottle - bp_used_mbottle) > 0 and milkedvolume > 2500:
  770. bottlecounter = 0
  771. :mbottle_loneloop
  772. if bottlecounter < (bpbottlem + bpbottles):
  773. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  774. func('lact_bp','fill_milk_bottle',bottlecounter,2500)
  775. jump 'bottlefull_loopbreak'
  776. end
  777. bottlecounter += 1
  778. jump 'mbottle_loneloop'
  779. end
  780. else
  781. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  782. 'first fork case'
  783. 'bp_used_mbottle: <<bp_used_mbottle>>'
  784. 'bp_used_sbottle: <<bp_used_sbottle>>'
  785. 'milkedvolume: <<milkedvolume>>'
  786. 'pump_bottletype: <<pump_bottletype>>'
  787. 'bp_useable_sbottle: <<bp_useable_sbottle>>'
  788. 'bp_useable_mbottle: <<bp_useable_mbottle>>'
  789. end
  790. :bottlefull_loopbreak
  791. elseif milkedvolume > pump_bottletype and (bp_useable_sbottle*1500 + bp_useable_mbottle*2500) > pump_bottletype:
  792. !! Checking which bottletype is used and filling those bottles up before the other type is used.
  793. :sbottleloop
  794. if pump_bottletype < 2500 and milkedvolume >= 1500 and bp_used_sbottle < bp_useable_sbottle:
  795. bp_used_sbottle += 1
  796. milkedvolume -= 1500
  797. bottlecounter = 0
  798. :sbottle_searchloop
  799. if bottlecounter < (bpbottlem + bpbottles):
  800. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  801. func('lact_bp','fill_milk_bottle',bottlecounter,1500)
  802. jump 'sbottle_searchloopbreak'
  803. end
  804. bottlecounter += 1
  805. jump 'sbottle_searchloop'
  806. end
  807. :sbottle_searchloopbreak
  808. jump 'sbottleloop'
  809. end
  810. :mbottleloop
  811. if pump_bottletype >= 2500 and milkedvolume >= 2500 and bp_used_mbottle < bp_useable_mbottle:
  812. bp_used_mbottle += 1
  813. milkedvolume -= 2500
  814. bottlecounter = 0
  815. :mbottle_searchloop
  816. if bottlecounter < (bpbottlem + bpbottles):
  817. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  818. func('lact_bp','fill_milk_bottle',bottlecounter,2500)
  819. jump 'mbottle_searchloopbreak'
  820. end
  821. bottlecounter += 1
  822. jump 'mbottle_searchloop'
  823. end
  824. :mbottle_searchloopbreak
  825. jump 'mbottleloop'
  826. end
  827. !! Checking for the milkedvolume and if there are bottles left. if yes - use these bottles
  828. if milkedvolume > 0 and (((bp_useable_mbottle - bp_used_mbottle) > 0) or ((bp_useable_sbottle - bp_used_sbottle) > 0)):
  829. :altfill01
  830. if pump_bottletype < 2500 and milkedvolume >= 2500 and bp_used_mbottle < bp_useable_mbottle:
  831. bp_used_mbottle += 1
  832. milkedvolume -= 2500
  833. bottlecounter = 0
  834. :sbottle_altsearchloop
  835. if bottlecounter < (bpbottlem + bpbottles):
  836. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  837. func('lact_bp','fill_milk_bottle',bottlecounter,2500)
  838. jump 'sbottle_altsearchloopbreak'
  839. end
  840. bottlecounter += 1
  841. jump 'sbottle_altsearchloop'
  842. end
  843. :sbottle_altsearchloopbreak
  844. jump 'altfill01'
  845. end
  846. :altfill02
  847. if pump_bottletype >= 2500 and milkedvolume >= 1500 and bp_used_sbottle < bp_useable_sbottle:
  848. bp_used_sbottle += 1
  849. milkedvolume -= 1500
  850. bottlecounter = 0
  851. :mbottle_altsearchloop
  852. if bottlecounter < (bpbottlem + bpbottles):
  853. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  854. func('lact_bp','fill_milk_bottle',bottlecounter,1500)
  855. jump 'mbottle_altsearchloopbreak'
  856. end
  857. bottlecounter += 1
  858. jump 'mbottle_altsearchloop'
  859. end
  860. :mbottle_altsearchloopbreak
  861. jump 'altfill02'
  862. end
  863. end
  864. !! by this point all bottles should have been used up. Everything else needs to end up in the drain.
  865. if milkedvolume > 0 and bp_useable_mbottle = bp_used_mbottle and bp_useable_sbottle = bp_used_sbottle:
  866. 'During pumping you have to switch the collecting bottle as it filled up with your milk. Unfortunately you don''t have enough bottles to collect all your milk.'
  867. 'You had to pour <<milkedvolume/10>>ml of your breast milk into the sink.'
  868. milkedvolume = ((bp_used_mbottle*2500) + (bp_used_sbottle*1500))
  869. elseif milkedvolume > 0 and milkedvolume < 1500 and (bp_useable_sbottle - bp_used_sbottle) > 0:
  870. 'During pumping you have to switch the collecting bottle as it filled up with your milk.'
  871. elseif milkedvolume > 0 and milkedvolume < 2500 and milkedvolume > 1500 and (bp_useable_mbottle - bp_used_mbottle) > 0:
  872. 'During pumping you have to switch the collecting bottle as it filled up with your milk.'
  873. else
  874. 'During pumping you have to switch the collecting bottle as it filled up with your milk.'
  875. end
  876. if bp_used_mbottle >= 1 or bp_used_sbottle >= 1:
  877. '<center><img <<$set_imgh>> src="images/pc/body/tits/bottles_full.jpg"></center>'
  878. if milkedvolume = ((bp_used_mbottle*2500) + (bp_used_sbottle*1500)):
  879. 'You pumped <<milkedvolume/10>>ml of milk from your breasts, collecting it in:'
  880. if bp_useable_sbottle = 1:
  881. 'One 150ml bottle'
  882. elseif bp_used_sbottle > 1:
  883. '<<bp_used_sbottle>> x 150ml bottles'
  884. end
  885. if bp_used_mbottle = 1:
  886. 'One 250ml bottle'
  887. elseif bp_used_mbottle > 1:
  888. '<<bp_used_mbottle>> x 250ml bottles'
  889. end
  890. else
  891. 'You pumped <<((bp_used_mbottle*2500)+(bp_used_sbottle*1500)+milkedvolume)/10>>ml of milk from your breasts collecting it in:'
  892. if bp_used_sbottle = 1:
  893. 'One 150ml bottle'
  894. elseif bp_used_sbottle > 1:
  895. '<<bp_used_sbottle>> x 150ml bottles'
  896. end
  897. if bp_used_mbottle = 1:
  898. 'One 250ml bottle'
  899. elseif bp_used_mbottle > 1:
  900. '<<bp_used_mbottle>> x 250ml bottles'
  901. end
  902. if (bp_useable_sbottle - bp_used_sbottle) > 0 and milkedvolume <= 1500:
  903. bottlecounter = 0
  904. :sbottle_restsearchloop
  905. if bottlecounter < (bpbottlem + bpbottles):
  906. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  907. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  908. jump 'sbottlefilled_break'
  909. end
  910. bottlecounter += 1
  911. jump 'sbottle_restsearchloop'
  912. end
  913. :sbottlefilled_break
  914. 'You also stored <<milkedvolume/10>>ml of breast milk in a 150ml bottle.'
  915. elseif (bp_useable_mbottle - bp_used_mbottle) > 0 and milkedvolume <= 2500:
  916. bottlecounter = 0
  917. :mbottle_restsearchloop
  918. if bottlecounter < (bpbottlem + bpbottles):
  919. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  920. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  921. jump 'mbottlefilled_break'
  922. end
  923. bottlecounter += 1
  924. jump 'mbottle_restsearchloop'
  925. end
  926. :mbottlefilled_break
  927. 'You also stored <<milkedvolume/10>>ml of breast milk in a 250ml bottle.'
  928. else
  929. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  930. 'second fork case'
  931. 'bp_used_mbottle: <<bp_used_mbottle>>'
  932. 'bp_used_sbottle: <<bp_used_sbottle>>'
  933. 'milkedvolume: <<milkedvolume>>'
  934. 'pump_bottletype: <<pump_bottletype>>'
  935. 'bp_useable_sbottle: <<bp_useable_sbottle>>'
  936. 'bp_useable_mbottle: <<bp_useable_mbottle>>'
  937. end
  938. milkedvolume += bp_used_mbottle*2500 + bp_used_sbottle*1500
  939. end
  940. else
  941. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  942. 'third fork case'
  943. 'bp_used_mbottle: <<bp_used_mbottle>>'
  944. 'bp_used_sbottle: <<bp_used_sbottle>>'
  945. 'milkedvolume: <<milkedvolume>>'
  946. 'pump_bottletype: <<pump_bottletype>>'
  947. 'bpbottles: <<bpbottles>>'
  948. 'bpbottlem: <<bpbottlem>>'
  949. end
  950. else
  951. 'You give it a few more pumps and detach the pump.<br>You filled the bottle with <<milkedvolume/10>>ml of your milk.'
  952. if (bp_useable_sbottle - bp_used_sbottle) > 0 and milkedvolume <= 1500:
  953. bottlecounter = 0
  954. :single_sbottle_searchloop
  955. if bottlecounter < (bpbottlem + bpbottles):
  956. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  957. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  958. jump 'single_sbottlefilled_break'
  959. end
  960. bottlecounter += 1
  961. jump 'single_sbottle_searchloop'
  962. end
  963. :single_sbottlefilled_break
  964. elseif (bp_useable_mbottle - bp_used_mbottle) > 0 and milkedvolume <= 2500:
  965. bottlecounter = 0
  966. :single_mbottle_searchloop
  967. if bottlecounter < (bpbottlem + bpbottles):
  968. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  969. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  970. jump 'single_mbottlefilled_break'
  971. end
  972. bottlecounter += 1
  973. jump 'single_mbottle_searchloop'
  974. end
  975. :single_mbottlefilled_break
  976. else
  977. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  978. 'second fork case'
  979. 'bp_used_mbottle: <<bp_used_mbottle>>'
  980. 'bp_used_sbottle: <<bp_used_sbottle>>'
  981. 'milkedvolume: <<milkedvolume>>'
  982. 'pump_bottletype: <<pump_bottletype>>'
  983. 'bp_useable_sbottle: <<bp_useable_sbottle>>'
  984. 'bp_useable_mbottle: <<bp_useable_mbottle>>'
  985. end
  986. milkedvolume += bp_used_mbottle*2500 + bp_used_sbottle*1500
  987. end
  988. breastcounter += 1
  989. if energytomilkpump > 0 and pcs_energy = 0:
  990. '<br>During pumping you feel really hungry, producing breast milk seems to be more exhausting then thought.'
  991. energytomilkpump = 0
  992. elseif energytomilkpump > 0:
  993. '<br>You feel a bit thirsty after pumping.'
  994. energytomilkpump = 0
  995. end
  996. if bcream_used = 1:
  997. pcs_nips += rand(0,2)
  998. !! bcream_used = 0
  999. end
  1000. minut += pumptime
  1001. elseif lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0:
  1002. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  1003. if pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts <= 0:
  1004. 'As usual, you attach the pump, but after a few pumps white liquid suddenly starts flowing from your nipples.<br>Using the breast pump regularly probably made you lactate!'
  1005. lactation['induced'] = 1
  1006. elseif pcs_usedbreastpumponherself <= 0 and pcs_massagedherbreasts > 0:
  1007. 'You attach the pump but after a few pumps white liquid suddenly comes from your nipples. Regularly massaging your breasts probably made you lactate!<br>'
  1008. lactation['induced'] = 1
  1009. elseif pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts > 0:
  1010. 'You attach the pump but after a few pumps white liquid suddenly comes from your nipples. All that pumping and massaging your breasts probably caused you to lactate!<br>'
  1011. lactation['induced'] = 1
  1012. else
  1013. 'You attach the pump and give it a few pumps. To your surprise white liquid suddenly comes from your nipples. You started lactating!<br>'
  1014. if thinkpreg = 1 or knowpreg = 1:
  1015. 'This is probably happening because you are pregnant.'
  1016. else
  1017. 'You should have this checked out by a doctor. You could be pregnant.'
  1018. end
  1019. lactation['induced'] = 0
  1020. end
  1021. pcs_usedbreastpumponherself = 0
  1022. pcs_massagedherbreasts = 0
  1023. lactation['pc_aware'] = 1
  1024. elseif lactation['active'] = 0 and pain['nipples'] < 60:
  1025. milkedvolume = (func('lact_lib','$get_breastmilk', 3, pumptime))/100
  1026. pcs_usedbreastpumponherself += 1
  1027. '<center><img <<$set_imgh>> src="images/pc/body/tits/t<<tits>>.jpg"></center>'
  1028. if breastcounter < 100:
  1029. 'You attach the pump to your nipples and start squeezing the bulb. The vacuum feels uncomfortable on your nipples.'
  1030. elseif breastcounter >= 100 and breastcounter < 200:
  1031. 'You attach the pump to your nipples and start squeezing the bulb. You are used to the vacuum on your nipples.'
  1032. else
  1033. 'You attach the pump to your nipples and start squeezing the bulb. The vacuum feels good on your nipples.'
  1034. end
  1035. if lactation['prolactinlvl'] > 100: 'A few droplets of liquid come out of your nipples but it is not milk.'
  1036. breastcounter += 1
  1037. if pump_stop_brake = 1:
  1038. 'During pumping your nipples start to hurt extremely. You have to stop after <<pumptime>> minutes, because you couldn''t go on.'
  1039. end
  1040. if lactation['prolactinlvl'] > 100:
  1041. 'After finishing, your breasts feel weirdly engorged.'
  1042. end
  1043. if bcream_used = 1:
  1044. pcs_nips += rand(0,2)
  1045. bcream_used = 0
  1046. end
  1047. minut += pumptime
  1048. else
  1049. 'Your nipples feel too sore to use the pump right now.'
  1050. end
  1051. if milkedvolume > 0:
  1052. lact_engorgement = 0
  1053. lactatemess = 0
  1054. act 'Pour it into the sink':
  1055. *clr
  1056. cla
  1057. piits_i = 0
  1058. :piits_emptyloop
  1059. if piits_i < (bpbottlem + bpbottles):
  1060. if mbarrmage[piits_i] = (pump_timestamp):mbarrfill[piits_i] = 0
  1061. piits_i += 1
  1062. jump 'piits_emptyloop'
  1063. end
  1064. if milkedvolume > 1500 and bpbottles <= 1:
  1065. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_sink.jpg"></center>'
  1066. '<center>You pour 150ml of your breast milk into the sink and clean up your breast pump.</center>'
  1067. else
  1068. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_sink.jpg"></center>'
  1069. '<center>You pour <<milkedvolume/10>>ml of your breast milk into the sink and clean up your breast pump.</center>'
  1070. end
  1071. minut += ((milkedvolume/1500) + 3)
  1072. act 'Finish':
  1073. milkedvolume = 0
  1074. menu_off = 0 & gt $loc, $loc_arg
  1075. end
  1076. end
  1077. act 'Leave it here':
  1078. *clr
  1079. cla
  1080. 'You screw the cap onto the bottle and put it away.'
  1081. act 'Finish':
  1082. milkedvolume = 0
  1083. menu_off = 0 & gt $loc, $loc_arg
  1084. end
  1085. end
  1086. if pcs_hydra < 100:
  1087. act 'Drink it':
  1088. *clr
  1089. cla
  1090. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_drink.jpg"></center>'
  1091. '<center>You drink your own breast milk and clean up your breast pump.</center>'
  1092. '<center>The milk is still warm from your breasts.</center>'
  1093. di_i = 0
  1094. :di_emptyloop
  1095. if di_i < (bpbottlem + bpbottles):
  1096. if mbarrmage[di_i] = (pump_timestamp):mbarrfill[di_i] = 0
  1097. di_i += 1
  1098. jump 'di_emptyloop'
  1099. end
  1100. pcs_health += milkedvolume/400
  1101. pcs_energy += milkedvolume/500
  1102. if pcs_hydra >= 100:
  1103. pcs_hydra += milkedvolume/200
  1104. else
  1105. pcs_hydra += milkedvolume/100
  1106. end
  1107. minut += ((milkedvolume/1000) + 3)
  1108. act 'Finish':
  1109. milkedvolume = 0
  1110. menu_off = 0 & gt $loc, $loc_arg
  1111. end
  1112. end
  1113. end
  1114. else
  1115. act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  1116. end
  1117. end
  1118. if $ARGS[0] = 'hand_milking':
  1119. *clr
  1120. cla
  1121. if lactation['active'] > 0 and pain['nipples'] <= 60 and lactation['pc_aware'] > 0:
  1122. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple.'
  1123. 'Several small streams of your milk start to jet out of your nipples.'
  1124. 'You go on for <<pumptime>> minutes until you stop. You clean yourself up and everything else that got wet from your milk.<br>'
  1125. '<center><video autoplay loop src="images/pc/body/tits/bathroom_milking.mp4"></video></center>'
  1126. milkedvolume = (func('lact_lib','$get_breastmilk', 5, pumptime))/1000
  1127. minut += pumptime
  1128. elseif lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0:
  1129. '<center><img <<$set_imgh>> src="images/pc/body/tits/lactate_start.jpg"></center>'
  1130. if pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts <= 0:
  1131. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. After a few squeezes white liquid suddenly starts flowing from your nipples.<br>Using the breast pump regularly probably made you lactate!'
  1132. lactation['induced'] = 1
  1133. elseif pcs_usedbreastpumponherself <= 0 and pcs_massagedherbreasts > 0:
  1134. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. After a few squeezes white liquid suddenly starts flowing from your nipples. Regularly massaging your breasts probably made you lactate!<br>'
  1135. lactation['induced'] = 1
  1136. elseif pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts > 0:
  1137. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. After a few squeezes white liquid suddenly starts flowing from your nipples. All that pumping and massaging your breasts probably caused you to lactate!<br>'
  1138. lactation['induced'] = 1
  1139. else
  1140. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. To your surprise white liquid suddenly starts flowing from your nipples. You started lactating!<br>'
  1141. if thinkpreg = 1 or knowpreg = 1:
  1142. 'This is probably happening because you are pregnant.'
  1143. else
  1144. 'You should have this checked out by a doctor. You could be pregnant.'
  1145. end
  1146. lactation['induced'] = 0
  1147. end
  1148. pcs_usedbreastpumponherself = 0
  1149. pcs_massagedherbreasts = 0
  1150. lactation['pc_aware'] = 1
  1151. elseif lactation['active'] = 0 and pain['nipples'] <= 60:
  1152. pcs_massagedherbreasts += 0
  1153. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple,'
  1154. 'kneading your breasts as well.'
  1155. '<center><video autoplay loop src="images/pc/body/tits/bathroom_massage.mp4"></video></center>'
  1156. milkedvolume = (func('lact_lib','$get_breastmilk', 5, pumptime))/1000
  1157. minut += pumptime
  1158. else
  1159. 'Your nipples are too sore to hand massage right now.'
  1160. end
  1161. act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  1162. end
  1163. --- lact_bp ---------------------------------