I think you're doing well with coding. I cannot invest a lot of time in this, but I will like to help you with bugs as I did in previous releases. :-)
Pregnancy chance by sperm count could be calculated like:
if pregnancy_chancebyyou > 0:
if "f_zerocount" in charactermainflags:
$pregnancy_chancebyyou = 0
if "f_lowcount" in charactermainflags:
$pregnancy_chancebyyou = int( pregnancy_chancebyyou * 0.25 )
if "f_highcount" in charactermainflags:
$pregnancy_chancebyyou = int( pregnancy_chancebyyou * 1.2 )
It should work if you copy it above
$ schancetobefather = 0.0.
2021-04-21 17:41:35 +0000 UTC
Now I realized what you mean. if pregnancy_chancebyall > 99: will solve my problem
2021-04-21 16:15:25 +0000 UTC
Delasoto. One more thing. If you are a programmer you can code. Maximum you have to learn a new syntax. Renpy is killing me. it forces me to code organised. My Java code looks awful.
2021-04-21 15:03:43 +0000 UTC
I think no other game game has a calculation method like this.
2021-04-21 15:00:06 +0000 UTC
I did that on purpose. pregnancy is not always 100%. Even when she fucked unprotected all month. But thx for review.
2021-04-21 14:58:42 +0000 UTC
I am a programmer, but not in Ren'Py. :-)
I think there should be higher or equal conditional, so it never returns pregnancy_chancebyall = 1.00.
if pregnancy_chancebyall > 100:
// There should be if pregnancy_chancebyall >= 100
$pregnancy_chancebyall = 0.99
else:
$pregnancy_chancebyall = pregnancy_chancebyall / 100
// If pregnancy_chancebyall is 100, it returns 1.00 in your implementation.