Cum_Manage 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. # Cum_Manage
  2. !!
  3. !! THIS IS A CORE FILE TO GAME MECHANICS. Please edit CAREFULLY, and leave as many comments as possible!!
  4. !!
  5. !! The comments in this file serve as tutorial to managing cum/sperm during scene writing and game-play. Please read them.
  6. !!
  7. !! spafinloc and cum array naming takes precident over other naming schemes. Always import and export variables by their cum array names
  8. !!
  9. !!------------------------------------------------------------------------------------------------------------
  10. !!
  11. !! Cum Array indices:
  12. !!
  13. !! cumarrnam : Sperm Owner
  14. !! cumarrppt : Sperm Potential Potency (max sperm delivery)
  15. !! cumarrcpt : Sperm Current Potency (current amount of sperm)
  16. !! cumarrdel : Sperm "Delivery" (method of *VAGINAL ONLY* acquisition)
  17. !! cumarrcon : Contraception typ used
  18. !! cumarrage : Sperm age in hours
  19. !! cumarrkno : Did you know/realize who did it?
  20. !!
  21. !!
  22. !!
  23. !! Values of 'cumarrdel' as defined by the cum_arr:
  24. !!
  25. !! cumarrdel = 0 : 'Vaginal intercourse'
  26. !! cumarrdel = 1 : 'From spatter on labia'
  27. !! cumarrdel = 2 : 'From the anal area'
  28. !! cumarrdel = 3 : 'From sperm on clothing'
  29. !! cumarrdel = 4 : 'From sperm on fingers'
  30. !! cumarrdel = 5 : 'From sperm on wipes'
  31. !! cumarrdel = 6 : 'Unknown'
  32. !!
  33. !!
  34. !!
  35. !! Values of 'cumarrcon' as defined by the cum_arr:
  36. !!
  37. !! cumarrcon = 0: 'No contraception used'
  38. !! cumarrcon = 1: 'You lied about being on the pill'
  39. !! cumarrcon = 2: 'You were on the pill'
  40. !! cumarrcon = 3: 'You used a condom'
  41. !! cumarrcon = 4: 'The condom broke'
  42. !! cumarrcon = 5: 'The condom slipped off inside you'
  43. !! cumarrcon = 6: 'The condom was sabotaged by someone else'
  44. !! cumarrcon = 7: 'You sabotaged the condom'
  45. !! cumarrcon = 8: 'Precum had sperm in it'
  46. !! cumarrcon = 9: 'You believe are sterile'
  47. !!
  48. !!
  49. !!
  50. !! Values of 'cumarrkno' as defined by the cum_arr:
  51. !!
  52. !! cumarrkno = -2 : 'You were unaware there was sperm in you'
  53. !! cumarrkno = -1 : 'You do not think that any sperm has gotten into you'
  54. !! cumarrkno = 0 : 'You know somebody got sperm in you, but you don''t know that person'
  55. !! cumarrkno = 1 : 'You know who got sperm in you'
  56. !!
  57. !!
  58. !!
  59. !! Locations to be defined by 'spafinloc'
  60. !!
  61. !! 0 = 'In your Vagina'
  62. !! 1 = 'On your labia'
  63. !! 2 = 'On your panties over your vagina'
  64. !! 3 = 'In your anus'
  65. !! 4 = 'On your butt'
  66. !! 5 = 'On your panties over your butt'
  67. !! 6 = 'On your clothes in your groin area'
  68. !! 7 = 'On your clothes'
  69. !! 8 = 'On your back'
  70. !! 9 = 'On your legs'
  71. !! 10 = 'On your arms'
  72. !! 11 = 'On your face'
  73. !! 12 = 'Inside your mouth'
  74. !! 13 = 'On your hands'
  75. !! 14 = 'On your stomach'
  76. !! 15 = 'On your breasts'
  77. !! 16 = 'In your hair'
  78. !! 17 = 'In a condom in your vagina'
  79. !!
  80. !!
  81. !!
  82. !!------------------------------------------------------------------------------------------------------------
  83. if $ARGS[0] = '':
  84. !!{ Debug information, comment out in release versions. }
  85. !! '<br><b><font color="red">Cum_Manage</font> called with: spafinloc=<<spafinloc>> cumarrkno=<<cumarrkno>> cummarrcon=<<cumarrcon>> cumarrdel=<<cumarrdel>></b>'
  86. !!{ We count every time somebody cum on or inside the MC. It is used for spatter and cum matching in femcyc}
  87. stat['cum_count'] += 1
  88. !!{ Here we define our important variables.}
  89. tempfindN = mid($boy, 2)
  90. $tempfindL = mid($boy,1,1)
  91. if $tempfindL = 'A':
  92. dick = Astat_dick[tempfindN]
  93. sexspecpot = Astat_spermpot[tempfindN]
  94. elseif $tempfindL = 'B':
  95. dick = Bstat_dick[tempfindN]
  96. sexspecpot = Bstat_spermpot[tempfindN]
  97. elseif $tempfindL = 'C':
  98. dick = Cstat_dick[tempfindN]
  99. sexspecpot = Cstat_spermpot[tempfindN]
  100. end
  101. if sexvolume <= 0: sexvolume = 40
  102. if sexspecpot = 0: sexspecpot = sexvolume * rand(250, 300)
  103. if sexspecpot < 0: sexspecpot = 0
  104. if vibratorIN = 1 and spafinloc = 0 and replace_vib = 0: vibratorIN = 0
  105. if analplugIN = 1 and spafinloc = 3 and replace_analplug = 0: analplugIN = 0
  106. !!{ Set the cum array temp to the current size of the cum array to add a new entry to the end of file. Then checks to see if you are on the pill. If you are and there is no contraception used, it flags this as a "done with pill" act, which means a pregnancy will be a pill failure.}
  107. cumarrtemp = arrsize('$cumarrnam')
  108. if sexcontra = 0 and pillcon > 1000: sexcontra = 2
  109. !{Check for previous deposit, and if it was by the same guy and precum, it sets cumarrtemp back by one}
  110. ! if $cumarrnam[cumarrtemp-1] = $boy and cumarrkno[cumarrtemp-1] = -1:cumarrtemp -= 1 & sexspecpot = cumarrppt[cumarrtemp]
  111. if cumprecheck = 1:
  112. cumarrkno[cumarrtemp] = -1
  113. elseif sexunaware > 0:
  114. cumarrkno[cumarrtemp] = -2
  115. elseif sexpartkno = 1:
  116. cumarrkno[cumarrtemp] = 1
  117. else
  118. cumarrkno[cumarrtemp] = 0
  119. end
  120. !!{ If a condom slipped in the vagina, it will pushed deeper inside the vagina during vaginal sex.}
  121. if spafinloc <= 0 and cumcondslip > 0:
  122. if dick > cumcondslip_deep:
  123. cumcondslip_deep = dick + rand (0,2)
  124. else:
  125. cumcondslip_deep += rand (0,2)
  126. end
  127. end
  128. sparrtemp = arrsize('sparrvol')
  129. !!{ Check to see if this is flagged as a preejaculate emmission. All vaginal penetrations that flag this as cumprecheck contain preejaculate. Guidelines for calling it: If your boy is likely to have masterbated, had sex, or otherwise encouraged semen to leak out of their urethra in the last 48 hours, they probably have some fertile preejaculate. If in doubt, let it leak. The chances of pregnancy from it are low, and the MC should have been wearing protection.}
  130. if cumprecheck ! 1:
  131. !!{ Here it checks for vaginal deposit.}
  132. if spafinloc <= 0:
  133. !!{ Next it sets the variables in the array. The cumming boys name is first and cum age to 0.
  134. !! The cum delivery location is set to vaginally, and we check to see if this is an unknowing sex act.
  135. !! If it is, it makes it so the MC doesnt know who did it.
  136. !! If the boy has a custom specified potency 'sexspecpot', it flags the potency. Otherwise it sets it to the default.
  137. !! Default potency potential is generated from a random multiplier of sexvolume.
  138. !! Sexvolume defaults to 40 (4 mL), but may be overwritten with 'sexvolume'.}
  139. $cumarrnam[cumarrtemp] = $boy
  140. cumarrage[cumarrtemp] = 0
  141. cumarrdel[cumarrtemp] = 0
  142. cumarrcnt[cumarrtemp] = stat['cum_count']
  143. cumarrppt[cumarrtemp] = sexspecpot
  144. !!{ Now it sets up the splatter and actual internal cum.
  145. !! First it sets the array to the spatter end of file. Then it checks for riding bareback.
  146. !! If theres a condom, it gives a chance for the condom to fail in general, slip off and remain in the vagina, or break.}
  147. if sexcontra > 2:
  148. if noprotect = 1: noprotect = 0 & sexcontra = 4
  149. if sexcontra = 3:
  150. temprand = rand(0,1000)
  151. dick_wid = 3
  152. if $dick_girth = 'skinny': dick_wid = 2
  153. if $dick_girth = 'slim': dick_wid = 3
  154. if $dick_girth = 'well proportioned': dick_wid = 3
  155. if $dick_girth = 'thicker than average': dick_wid = 4
  156. if $dick_girth = 'thick': dick_wid = 4
  157. if $dick_girth = 'massive': dick_wid = 5
  158. if $dick_girth = 'monstrous': dick_wid = 6
  159. break_thresh = dick_wid * 2
  160. break_thresh -= vagina / 4
  161. break_thresh += dick / 4
  162. slip_thresh = 36 - (dick_wid * 2)
  163. slip_thresh -= (vagina / 2)
  164. slip_thresh -= dick / 2
  165. if break_thresh < 1: break_thresh = 1
  166. if slip_thresh < 4: slip_thresh = 4
  167. break_thresh += slip_thresh
  168. if temprand = 0:
  169. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/4
  170. cumarrcon[cumarrtemp] = 3
  171. elseif temprand <= slip_thresh:
  172. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/200
  173. cumarrcon[cumarrtemp] = 5
  174. cumcondslip = 1
  175. cumcondsanb = cumarrtemp
  176. sexcontra = 5
  177. sparrage[sparrtemp] = 0
  178. sparrloc[sparrtemp] = 17
  179. $sparrnam[sparrtemp] = $boy
  180. sparrcnt[sparrtemp] = stat['cum_count']
  181. sparrppt[sparrtemp] = sexspecpot
  182. sparrvol[sparrtemp] += sexvolume
  183. cumsumbod += sexvolume
  184. cumsumvag += sexvolume
  185. sparridt[sparrtemp] = cumarrkno[cumarrtemp]
  186. sparrslc[sparrtemp] = 0
  187. cumcondslip += 1
  188. if cumcondslip_deep <= 0:cumcondslip_deep = rand(1, dick)
  189. if sparridt[sparrtemp] >= 0:cumcondslip_aware = 1
  190. dynamic $ferteggfather
  191. elseif temprand <= break_thresh:
  192. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/2
  193. cumarrcon[cumarrtemp] = 4
  194. sexcontra = 4
  195. sparrage[sparrtemp] = 0
  196. sparrloc[sparrtemp] = 0
  197. $sparrnam[sparrtemp] = $boy
  198. sparrcnt[sparrtemp] = stat['cum_count']
  199. sparrppt[sparrtemp] = sexspecpot
  200. sparrvol[sparrtemp] += sexvolume
  201. cumsumbod += sexvolume
  202. cumsumvag += sexvolume
  203. sparridt[sparrtemp] = cumarrkno[cumarrtemp]
  204. sparrslc[sparrtemp] = 0
  205. dynamic $ferteggfather
  206. else
  207. cumarrcpt[cumarrtemp] += 5
  208. cumarrcon[cumarrtemp] = 3
  209. end
  210. !!{ Next it checks to see if the event is calling specifically for a burst or slipped off condom.
  211. !! It treats them the same as if the condom above had a failure.}
  212. elseif sexcontra = 4:
  213. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/2
  214. cumarrcon[cumarrtemp] = 4
  215. sparrage[sparrtemp] = 0
  216. sparrloc[sparrtemp] = 0
  217. $sparrnam[sparrtemp] = $boy
  218. sparrcnt[sparrtemp] = stat['cum_count']
  219. sparrppt[sparrtemp] = sexspecpot
  220. sparrvol[sparrtemp] += sexvolume
  221. cumsumbod += sexvolume
  222. cumsumvag += sexvolume
  223. sparridt[sparrtemp] = cumarrkno[cumarrtemp]
  224. sparrslc[sparrtemp] = 0
  225. dynamic $ferteggfather
  226. elseif sexcontra = 5:
  227. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/200
  228. cumarrcon[cumarrtemp] = 5
  229. cumcondslip = 1
  230. cumcondsanb = cumarrtemp
  231. sparrage[sparrtemp] = 0
  232. sparrloc[sparrtemp] = 17
  233. $sparrnam[sparrtemp] = $boy
  234. sparrcnt[sparrtemp] = stat['cum_count']
  235. sparrppt[sparrtemp] = sexspecpot
  236. sparrvol[sparrtemp] += sexvolume
  237. cumsumbod += sexvolume
  238. cumsumvag += sexvolume
  239. sparridt[sparrtemp] = cumarrkno[cumarrtemp]
  240. sparrslc[sparrtemp] = 0
  241. cumcondslip += 1
  242. if cumcondslip_deep <= 0:cumcondslip_deep = rand(1, dick)
  243. if sparridt[sparrtemp] >= 0:cumcondslip_aware = 1
  244. dynamic $ferteggfather
  245. !!{ Next, check for sabotaged condoms. First sabotaged by you, then sabotaged by the guy.
  246. !! If they were sabotaged, it acts similar to a condom failure, but worse.}
  247. elseif sexcontra = 6:
  248. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/3
  249. cumarrcon[cumarrtemp] = 6
  250. elseif sexcontra = 7:
  251. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/3
  252. cumarrcon[cumarrtemp] = 7
  253. dynamic $ferteggfather
  254. end
  255. !!{ If you have no protection, you get a nice, full load of semen.}
  256. else
  257. sparrage[sparrtemp] = 0
  258. sparrloc[sparrtemp] = 0
  259. $sparrnam[sparrtemp] = $boy
  260. sparrcnt[sparrtemp] = stat['cum_count']
  261. sparrppt[sparrtemp] = sexspecpot
  262. sparrvol[sparrtemp] += sexvolume
  263. cumsumbod += sexvolume
  264. cumsumvag += sexvolume
  265. sparridt[sparrtemp] = cumarrkno[cumarrtemp]
  266. sparrslc[sparrtemp] = 0
  267. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/5*4
  268. cumarrcon[cumarrtemp] = sexcontra
  269. dynamic $ferteggfather
  270. end
  271. !!{ If you arent getting it in the vagina, and the boy isnt pumping it into a condom, a spatter is made and applied.
  272. !! If you arent wearing any panties and it was called to hit your panties, it goes directly to your groin.
  273. !! If you are naked and it calls for a clothing strike, it will go to your body instead.}
  274. elseif spafinloc > 0 and sexcontra < 3:
  275. sparrage[sparrtemp] = 0
  276. sparrcnt[sparrtemp] = stat['cum_count']
  277. if tanga = 0:
  278. if spafinloc = 2:
  279. spafinloc = 1
  280. elseif spafinloc = 5:
  281. spafinloc = 4
  282. end
  283. end
  284. if $clothingworntype = 'nude':
  285. if spafinloc = 2:
  286. spafinloc = 1
  287. elseif spafinloc = 5:
  288. spafinloc = 4
  289. elseif spafinloc = 6:
  290. if rand(0,1) = 0:
  291. spafinloc = 1
  292. else
  293. spafinloc = 4
  294. end
  295. elseif spafinloc = 7:
  296. if rand(0,1) = 0:
  297. spafinloc = 14
  298. else
  299. spafinloc = 15
  300. end
  301. end
  302. end
  303. sparrloc[sparrtemp] = spafinloc
  304. if spafinloc = 12 and swallow >= 10 and rand(0,3) = 0: energy += 2
  305. $sparrnam[sparrtemp] = $boy
  306. sparrppt[sparrtemp] = sexspecpot
  307. sparrvol[sparrtemp] += sexvolume
  308. cumsumbod += sexvolume
  309. if spafinloc = 3:
  310. cumsumass += sexvolume
  311. end
  312. sparridt[sparrtemp] = cumarrkno[cumarrtemp]
  313. sparrslc[sparrtemp] = 0
  314. end
  315. if cumarrppt[cumarrtemp] < cumarrcpt[cumarrtemp]:cumarrcpt[cumarrtemp] = cumarrppt[cumarrtemp]
  316. sexpartkno = 0
  317. sexunaware = 0
  318. !!{ And this is the pre ejaculate release talked about above.}
  319. elseif sexcontra < 3 and spafinloc = 0:
  320. $cumarrnam[cumarrtemp] = $boy
  321. cumarrcnt[cumarrtemp] = stat['cum_count']
  322. cumarrppt[cumarrtemp] = sexspecpot
  323. cumarrage[cumarrtemp] = 0
  324. cumarrdel[cumarrtemp] = 0
  325. cumarrcon[cumarrtemp] = sexcontra
  326. cumarrcpt[cumarrtemp] += cumarrppt[cumarrtemp]/12
  327. if cumarrppt[cumarrtemp] < cumarrcpt[cumarrtemp]:cumarrcpt[cumarrtemp] = cumarrppt[cumarrtemp]
  328. end
  329. cumprecheck = 0
  330. spafinloc = 0
  331. sexvolume = 0
  332. dynamic $din_Update_Condom_Counts
  333. if cumsumass >= 60:
  334. arrmodtmp = arrpos('sparrloc',3)
  335. if sparrslc[arrmodtmp] <= 0: sparrslc[arrmodtmp] += 1
  336. end
  337. if cumsumvag >= 60:
  338. arrmodtmp = arrpos('sparrloc',0)
  339. if sparrslc[arrmodtmp] <= 0: sparrslc[arrmodtmp] += 1
  340. end
  341. end
  342. if $ARGS[0] = 'cumgather':
  343. cloc = ARGS[1]
  344. i = arrpos('sparrloc', cloc)
  345. if i ! -1 and i < arrsize('sparrloc'):
  346. if cloc = 0:
  347. $part = 'pussy'
  348. elseif cloc = 1:
  349. $part = 'pussylips'
  350. elseif cloc = 2 or cloc = 5:
  351. $part = 'your panties'
  352. elseif cloc = 3:
  353. $part = 'anus'
  354. elseif cloc = 4:
  355. $part = 'buttocks'
  356. elseif cloc = 6 or cloc = 7:
  357. $part = 'clothes'
  358. elseif cloc = 8:
  359. $part = 'back'
  360. elseif cloc = 9:
  361. $part = 'legs'
  362. elseif cloc = 10:
  363. $part = 'arms'
  364. elseif cloc = 11:
  365. $part = 'face'
  366. elseif cloc = 14:
  367. $part = 'stomach'
  368. elseif cloc = 15:
  369. $part = 'breasts'
  370. elseif cloc = 16:
  371. $part = 'hair'
  372. else
  373. $part = 'unknown'
  374. end
  375. if salfetka > 0:
  376. salfetka -= 1
  377. minut += 5
  378. 'You use a wipe to clean the sperm from your <<$part>>.'
  379. gs 'cum_cleanup', 'cleanloc', cloc
  380. gs 'stat'
  381. end
  382. end
  383. end
  384. if $ARGS[0] = 'cumeater':
  385. cloc = ARGS[1]
  386. i = arrpos('sparrloc', cloc)
  387. if i ! -1 and i < arrsize('sparrloc'):
  388. spdirtyb = 1
  389. fbreath = 0
  390. vaf += 1
  391. $part = ''
  392. if cloc = 13:
  393. gs 'cum_cleanup', 'cleanloc', cloc
  394. 'You carefully lick the sperm residue from both hands, enjoying the tart taste of semen.'
  395. else
  396. if cloc = 0:
  397. $part = 'pussy'
  398. elseif cloc = 1:
  399. $part = 'pussylips'
  400. elseif cloc = 2 or cloc = 5:
  401. $part = 'your panties'
  402. gs 'cum_cleanup', 'cleanloc', 2
  403. gs 'cum_cleanup', 'cleanloc', 5
  404. elseif cloc = 3:
  405. $part = 'anus'
  406. elseif cloc = 4:
  407. $part = 'buttocks'
  408. elseif cloc = 6 or cloc = 7:
  409. $part = 'clothes'
  410. gs 'cum_cleanup', 'cleanloc', 6
  411. gs 'cum_cleanup', 'cleanloc', 7
  412. elseif cloc = 8:
  413. $part = 'back'
  414. elseif cloc = 9:
  415. $part = 'legs'
  416. elseif cloc = 10:
  417. $part = 'arms'
  418. elseif cloc = 11:
  419. $part = 'face'
  420. elseif cloc = 14:
  421. $part = 'stomach'
  422. elseif cloc = 15:
  423. $part = 'breasts'
  424. elseif cloc = 16:
  425. $part = 'hair'
  426. else
  427. $part = 'unknown'
  428. end
  429. if rand(0, 1) = 0:
  430. 'You collect a handful of sperm from your <<$part>> in your hand and lick it all up, enjoying the tart taste of semen.'
  431. else
  432. 'You collect the sperm from your <<$part>> with your fingers and lick them, enjoying the tart taste of semen.'
  433. end
  434. gs 'cum_cleanup', 'cleanloc', cloc
  435. end
  436. minut += 5
  437. gs 'stat'
  438. end
  439. end
  440. --- Cum_Manage ---------------------------------