HunterMetroid64
New member
- Joined
- Apr 22, 2009
- Messages
- 1
- Programming Experience
- Beginner
I'm making a simple game as my first personal Visual Basic program, and I've run into a small problem. I'm trying to make it so when you reach or pass certain amounts of experience, you receive 5 stat points, but the best I've been able to do so far is have the program add the points when you are in a small window of 2 values. This is what I have now:
If Val(lblTtlExp.Text) >= 100 And Val(lblTtlExp.Text) < 110 Then
lblStats.Text = Val(lblStats.Text) + 5
ElseIf Val(lblTtlExp.Text) >= 200 And Val(lblTtlExp.Text) < 210 Then
lblStats.Text = Val(lblStats.Text) + 5
ElseIf Val(lblTtlExp.Text) >= 300 And Val(lblTtlExp.Text) < 310 Then
lblStats.Text = Val(lblStats.Text) + 5
End If
If Val(lblTtlExp.Text) >= 100 And Val(lblTtlExp.Text) < 110 Then
lblStats.Text = Val(lblStats.Text) + 5
ElseIf Val(lblTtlExp.Text) >= 200 And Val(lblTtlExp.Text) < 210 Then
lblStats.Text = Val(lblStats.Text) + 5
ElseIf Val(lblTtlExp.Text) >= 300 And Val(lblTtlExp.Text) < 310 Then
lblStats.Text = Val(lblStats.Text) + 5
End If