I made a function to make fun of ogres as you kill them. I need more insults though… Any suggestions?
def addInsultToInjury():
insults = [
'Ouch...',
'Did that hurt?',
'I am invincible!',
'Ha ha ha'
]
index = (Math.floor(Math.random()*len(insults))) #gives a random insult
self.say(insults[index])
Things I wish were in the complier:
random.choice(list)
random.int(1,len(list))
yield