- Mar 20, 2022
- 872
- 2,727
Fixed #1 and also fixed drug dens with a similar problem.Bug(?) #1: best friend can't become a courier and whore must be your best friend. Because now it's under this condition:if otn['<<you>>,<<npc>>']>=100 and youslut[npc]>0
(previously was or instead and). Is this intentional?
Bug #2: Your sexual partners list in statistics completely bugged and shows only last partner at best. Because game puts npc indexes in array during first sex like this:num_havesex[]=num
but $d_clean_NPC and revertnpc code uses it like this:num_havesex[i]
(i is npc index). Suggesting completely remove num_havesex array and show list like this:
Code:$partnertext='' partner=3 :markpartner if day_sex[partner]!0 and $name[partner]!'': $partnertext+='<br><<day_sex[partner]>> <<$month_sex[partner]>> <<$name[partner]>> <<$surname[partner]>>' end partner+=1 if partner<=npcmaxgen:jump'markpartner' if $partnertext!'':pl'Your sexual partners:'&pl'<<$partnertext>>'
Fixed #2 as you suggested but also found out that some NPCs weren't showing up in the list. This opened up a can of worms!
I modified your code to this (line 4 was modified):
Code:
$partnertext=''
partner=3
:markpartner
if (day_sex[partner]!0 or havesex[partner]!0) and $name[partner]!'':
$partnertext+='<br><<day_sex[partner]>> <<$month_sex[partner]>> <<$name[partner]>> <<$surname[partner]>>'
end
partner+=1
if partner<=npcmaxgen:jump'markpartner'
if $partnertext!'':pl'Your sexual partners:'&pl'<<$partnertext>>'

I fixed the 5 random/special event girls so their dates are now showing (on a new game only). I'm now trying to find out how others are not getting dates. I made quite a few changes to how the '$d_presex=' code works, removed presex2 and consolidated them into one as well as making it more modular. I can PM you my latest code if you'd like to help troubleshoot it.
Thank you for the bug reports and for your great code suggestions!
Last edited: