Looks like its working! only problem is that it goes under 3 but not over 6.
Sounds like what Doogle said:
Int(6 * Rnd) will generate an Integer number between 0 and 5, adding 1 will give a number between 1 and 6
So why is that a problem? Can you not just ignore numbers less than 3?
If the number is 1, 2, 3, 4, 5 you make intBHP = 6Code:If intBHP < 6 Then intBHP = 6 End If If intBHP > 3 Then intBHP = 3
Then immediately following that you say if the number is 4, 5, 6, etc then make it = 3
First time through intBHP = 5 so you make it equal 6 then because it's greater than 3 you you make it 3. So, 5 becomes 6 just to become 3.
Is this what you want?




Reply With Quote