0
I wanted a simple scrip where it counts up to 6 using while or another repeating method. And there’s going to be a list with 5 failed and 1 died and he’s counting to 6 drawing this list and when he talks died wanted it to look like. but in my script it continues talking until completing 6 loops
def russa(self, message, name_sender, to=''):
list_morte = ['Morreu','falho','falho','falho','falho','falho',]
self.post(message='Vamos nós matar hehehe')
self.post(message='Go.!')
contador =0
while (contador<6):
time.sleep(3) #delay de 5 segundos
self.post(message='/roll')
list_morte = random.choice(list_morte)
self.post('/me %s' % list_morte)
contador =contador+1
if list_morte == 'Morreu':
self.post(message='Morreu')
Could [Edit] the question and add your code?
– Woss
like I said above I don’t know how to make him stop when he talks died and something very simple but useful for a beginner
– user109946