ID:145916
 
Code:
var/miss=(rand(1,100))
if(miss >= 1 && miss <= 50)


Problem description: Why doesn't this work, and how could you simplify?

You could use the prob() proc. Look at its entry in the reference to see how it works.
In response to Jon88
I simply stared at the prob() proc a few times, never understood it.. :/ Could some of you give me an example, please?
In response to Mysame
Mysame wrote:
I simply stared at the prob() proc a few times, never understood it.. :/ Could some of you give me an example, please?
if(prob(50))
// This stuff will happen 50% of the time

if(prob(30))
// There's a 30% chance that this stuff will happen
In response to Jon88
Ty ^^