Surreal Killa
Member
- Joined
- Apr 30, 2009
- Messages
- 11
- Location
- Melbourne, Victoria, Australia.
- Programming Experience
- Beginner
If you're not familiar:
The game I'm working on is going to use this style of system.
Here's a screenshot:
What I need to do is:
1. All SPECIAL values have to be between 1 and 10. [DONE]
2. When adding and subtracting from any SPECIAL; update remaining points accordingly.
3. If remaining points = 0, then you cannot increase any SPECIAL.
4. If remaining points <> 0, then you cannot continue until all are spent.
I'm up to task 2, but having some difficulty.
I managed to figure out how to do it for one. For example:
But I'm having trouble figuring out how to make it work for all. I've had some ideas but upon trying to implement them I've been having data type conversion errors.
VB.NET:
Dim SPECIAL As Acronym = "Strength, Perception, Endurance, Charisma, Intelligence, Agility, and Luck."
The game I'm working on is going to use this style of system.
Here's a screenshot:

What I need to do is:
1. All SPECIAL values have to be between 1 and 10. [DONE]
2. When adding and subtracting from any SPECIAL; update remaining points accordingly.
3. If remaining points = 0, then you cannot increase any SPECIAL.
4. If remaining points <> 0, then you cannot continue until all are spent.
I'm up to task 2, but having some difficulty.
I managed to figure out how to do it for one. For example:
VB.NET:
Sub Numeric_Up_Down_Strength_Value_Changed() Handles Numeric_Up_Down_Strength.ValueChanged
Label_Remaining_Value.Text = CStr(10 - Numeric_Up_Down_Strength.Value)
End Sub
But I'm having trouble figuring out how to make it work for all. I've had some ideas but upon trying to implement them I've been having data type conversion errors.
Last edited: