I've been working on a slots script for my Twitch bot and for some damn reason, it is extremely heavily weighted towards the first two options. I've even removed all the balancing stuff and made it so it's just a 1 in 6 chance to spawn each of the 6 emotes.
Also, disclaimer, I've literally never worked with python before, so please forgive my awful code.
rangeb = ["Kappa", "DansGame", "SMOrc", "OSfrog", "KAPOW", "KappaPride"]
intcap = 6
kappa = 6
kapow = 5
osfrog = 4
smorc = 3
dansgame = 2
total1 = random.randrange(1, intcap)
total2 = random.randrange(1, intcap)
total3 = random.randrange(1, intcap)
if total1 >= kappa:
emote1 = 5
elif total1 >=kapow:
emote1 = 4
elif total1 >=osfrog:
emote1 = 3
elif total1 >=smorc:
emote1 = 2
elif total1 >=dansgame:
emote1 = 1
else:
emote1 = 0
if total2 >= kappa:
emote2 = 5
elif total2 >=kapow:
emote2 = 4
elif total2 >=osfrog:
emote2 = 3
elif total2 >=smorc:
emote2 = 2
elif total2 >=dansgame:
emote2 = 1
else:
emote2 = 0
if total3 >= kappa:
emote3 = 5
elif total3 >=kapow:
emote3 = 4
elif total3 >=osfrog:
emote3 = 3
elif total3 >=smorc:
emote3 = 2
elif total3 >=dansgame:
emote3 = 1
else:
emote3 = 0
Parent.SendTwitchMessage(rangeb[emote1])
Parent.SendTwitchMessage(rangeb[emote2])
Parent.SendTwitchMessage(rangeb[emote3])
The idea is to have it "spin," generate 3 emotes and display them seperately in chat, then tell the user if they won. Thing is, it almost always displays one of the first 3 emotes, Kappa, DansGame, or SMorc. Ideally the percentage values of each emote should be 30,25,20,12,8,5, with 30 being Kappa and 5 being KappaPride. No damn idea why it never picks them truly randomly.