NeoSpectre said:
Overhauled the punishment systems completely
Your code is
_chance>= or
_chance<=
Should be
_chance gte or
_chance lte
the first example works by accident and the second example doesn't work currently and will never trigger in it's current state so far as I can see.
You should probably stop trying to use < or > because in the resulting html they have other meanings.
gte stand for "greater than or equal" and lte is "less than or equal"
To be clear, here is an example;
Code:
<<if $PlayerCorruption>=60>>\
<<if $dad.corruption>=20>>\
<<link "Attempt to convince him using sex...">>
<<replace "#action">>
<font color="pink">"If you ignore my mistake this time... I will let you use my pussy, daddy"</font>
<<if $punishTimes==1>>\
<<set _chance=random(1,50)>>\
<<elseif $punishTimes==2>>\
<<set _chance=random(1,50)>>\
<<elseif $punishTimes==3>>\
<<set _chance=random(5,100)>>\
<<elseif $punishTimes==4>>\
<<set _chance=random(15,100)>>\
<<elseif $punishTimes==5>>\
<<set _chance=random(25,100)>>\
<<elseif $punishTimes>5>>\
<<set _chance=random(40,100)>>\
<<endif>>\
<<if _chance<=50>>\
He walks forward and immediately starts groping her tits without asking
Thats what you have currently.
First of all, I believe you want the chance to be greater then or equal, not less than or equal, so the lt is already incorrect even if it did work.
Change it to this and I believe it'll have the functionality you're after.
Code:
<<if $PlayerCorruption>=60>>\
<<if $dad.corruption>=20>>\
<<link "Attempt to convince him using sex...">>
<<replace "#action">>
<font color="pink">"If you ignore my mistake this time... I will let you use my pussy, daddy"</font>
<<if $punishTimes==1>>\
<<set _chance=random(1,50)>>\
<<elseif $punishTimes==2>>\
<<set _chance=random(1,50)>>\
<<elseif $punishTimes==3>>\
<<set _chance=random(5,100)>>\
<<elseif $punishTimes==4>>\
<<set _chance=random(15,100)>>\
<<elseif $punishTimes==5>>\
<<set _chance=random(25,100)>>\
<<elseif $punishTimes>5>>\
<<set _chance=random(40,100)>>\
<<endif>>\
<<if _chance gte 50>>\
He walks forward and immediately starts groping her tits without asking
Also you should think about changing all other instances of _chance>= to _chance gte too, my notepad++ says there are 36 of them.