View Single Post
  #2  
Old 10-15-2008, 07:16 PM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

Code:
|| wipechance = 0)
is assigning a value of 0 to the variable wipechance, I think you want to check if it is equal to zero.
Code:
|| wipechance == 0)
So lucy says it's a 1% chance for Guide Memory Blur, not 100% so you shouldn't use || wipechance == 0) either. Maybe if the value is 0 then set it to 1?
Code:
if(wipechance == 0) {
    wipechance = 1;
}
if(MakeRandomInt(0, 100) < wipechance)
or maybe it's a float value and it's coming back as 0 since wipechance is an int and it's really equal to 0.9999997
Reply With Quote