This is a love calculator for a bot that I made. It can do sexual and non-sexual relationships. It's actually quite simple to use, and can provide hours of entertainment for your channel.
Syntax is: !lovecalc {sexual}
The sexual portion is optional. Basically, it bases sexual relationships off of how successful non-sexual relationships between the people turn out. Have fun with this.
;Here is a lovecalc script.
;made by Lemmy
on *:text:!lovecalc * *:#:{
var %lc1 = $2 $+ $3
var %lc2 = $3 $+ $2
if (!$4) {
if ((!%lc [ $+ [ %lc1 ] ]) && (!%lc [ $+ [ %lc2 ] ])) {
set %lc [ $+ [ %lc1 ] ] $rand(0,100)
set %lc [ $+ [ %lc2 ] ] %lc [ $+ [ %lc1 ] ]
}
msg $chan The probability of $2 and $3 having a successful relationship is %lc [ $+ [ %lc1 ] ] percent.
}
elseif ($4 == sexual) {
if ((!%lcsex [ $+ [ %lc1 ] ]) && (!%lcsex [ $+ [ %lc2 ] ]) && (%lc [ $+ [ %lc1 ] ] != $null)) {
;if you don't want the probability of sexual relationships to be based off of the regular relationships, replace the next line with "set %lcsex [ $+ [ %lc1 ] ] $rand(0,100)"
set %lcsex [ $+ [ %lc1 ] ] $rand(0,%lc [ $+ [ %lc1 ] ])
set %lcsex [ $+ [ %lc2 ] ] %lcsex [ $+ [ %lc1 ] ]
}
elseif ((!%lcsex [ $+ [ %lc1 ] ]) && (!%lcsex [ $+ [ %lc2 ] ])) {
set %lc [ $+ [ %lc1 ] ] $rand(0,100)
set %lc [ $+ [ %lc2 ] ] %lc [ $+ [ %lc1 ] ]
;if you don't want the probability of sexual relationships to be based off of the regular relationships, replace line 18 and line 25 with "set %lcsex [ $+ [ %lc1 ] ] $rand(0,100)"
set %lcsex [ $+ [ %lc1 ] ] $rand(0,%lc [ $+ [ %lc1 ] ])
set %lcsex [ $+ [ %lc2 ] ] %lcsex [ $+ [ %lc1 ] ]
}
msg $chan The probability that $2 and $3 will have a successful sexual relationship is %lcsex [ $+ [ %lc1 ] ] percent.
}
}
;example is as follows
;<Weegeee> !lovecalc Amos Tormentor2
;<~Gallade> The probability of Amos and Tormentor2 having a successful relationship is 92 percent.
;<Weegeee> !lovecalc Amos Tormentor2 Sexual
;<~Gallade> The probability that Amos and Tormentor2 will have a successful sexual relationship is 28 percent.
;I highly recommend leaving the probability of successful sexual relationships based off of their non-sexual relationships because
;if your probability of a successful sexual relationship is higher than your probability of a normal relationship, that's called prostitution, and that's not good ;D
Because that doesn't save the result. You don't want it to go:
!lovecalc WorldDMT mountaindew
The probability of WorldDMT and mountaindew having a successful relationship is 84 percent.
!lovecalc WorldDMT mountaindew
The probability of WorldDMT and mountaindew having a successful relationship is 12 percent.