Hi, so i'm making a simple RPG style text-based game, and I want some creatures to have "hidden" abilities. For example, I want there to be a 50% chance of getting 2+ all stats. I figured out how to use the 'import random random.random()' command, and i want to say 'If number is higher than 0.5, then it gains 2+ all stats. is there a way of assigning the 'random.random()' to a variable and saying 'If 'variable' is == to 0.5 or higher: print("Blah Blah has 2+ all stats.")
Sorry if this sounds confusing, I'm sure there's someone who will understand.
Thank you all.
Last edited by Yoriz
on Sun Jun 15, 2014 9:07 am, edited 2 times in total.
Reason: First post lock, Changed tittle.