Decided to work on a way to determine what level the player character is based on what is their highest attribute level is (e.g. If agility is the highest then the player's level is equal to the level of agility)
So lets say that we have a strength level of 30, an agility level of 25 and an intelligence level of 20
Select Case Level
Case Level
If Strength > Agility And Strength > Intelligence Then
Level = Strength
If Agility > Strength And Agility > Intelligence Then
Level = Agility
If Intelligence > Strength And Intelligence > Agility Then
Level = Intelligence
End If
End If
End If
End Select
Using this case statement the program would determine that strength is the attribute with the highest value and thus is the level of the character
No comments:
Post a Comment