The 3.2.0 update is now live on PC and consoles. For more information, click here: https://forum.deadbydaylight.com/en/discussion/87832/
We have updated our Forum Rules. Please take a moment to read through them: https://forum.deadbydaylight.com/en/discussion/87004/

I made a DBD Skillcheck machine

This snippet of Python will "trigger" a "Skillcheck" based on random odds. The odds here are 2/8 chances for a Skillcheck

Source:

#dbd skillcheck odds machine

#Importing modules

import random

from time import sleep

#Setting up odds and timer. 1 is skillcheck and 0 is not

odds= ["1", "0", "0", "0", "1", "0", "0", "0", "0", "0"]

#The Odds of a skillcheck/second is 2/8

timer= []

#Loop at 1/sec for 80 seconds

while (len(timer)) != 80:

  timer.append(len(timer))

  sleep(1)

  sc=random.choice(odds)

  if sc == "0":

    print ("You did not get a skillcheck")

     

  else:

    print ("You got a skillcheck")

Comments

Sign In or Register to comment.