dark0512 wrote: Sun Aug 08, 2021 2:58 pm
I tried to look at it yesterday but didn't have time to figure out what's causing the issue.
It's on page '21-punishBalls-1'
In your last "IF" action, your condition is "punishEdges < 1;" note the ";". Can't have those in conditions. Drop the ";" and it should work.
(A quick glance through your tease's JSON shows you have another ";" in an IF condition on page '9-Variables': "varCock >= 1;"
-- That IF will also crash.)
Also, you're allowing players to enter numbers, but not really validating them. They could enter a non-number that may make things unpredictable. You could validate the number they entered with an IF condition like:
If that evaluates true, then they didn't enter a valid number.
Another thing I noticed was that your string match condition of things like this are awfully strict:
Code: Select all
beg1 == "I am very sorry Mistress Jennifer. I will do anything for your forgiveness."
Accidentally miss some punctuation, add an extra space, or get the case of a letter wrong, and it'll evaluate false.
Using a
regular expression, you can be a little more lose in matching with something like:
Code: Select all
beg1 && beg1.match(/^\s*I[ ']*a*m *(very[, ]*)+ *sorry *Mistress *Jennifer[\.,\s ]*I[' ]*w*i*ll *do *anything *for *your *forgiveness[\.,\s ]*$/i)
This would match on "I'm very sorry mistress jennifer Ill do anything for your forgiveness" as well as "I am very sorry Mistress Jennifer. I will do anything for YOUR forgiveness.", "I am very, very very sorry Mistress Jennifer. I will do anything for your forgiveness.", etc. etc.
Edit:
You could also add an extra punishment check with another IF condition of something like:
Code: Select all
beg1.match(/(fuck|bitch|pussy|suck|cock|dick)/i)
That would match any of those words in the string -- and you could decide to beat them into submission if so.