Page 1 of 1

Extra Fields

Posted: Wed Jan 18, 2006 2:12 pm
by Brodie
Are you going to keep the extra fields in the player attributes database .
What effect does hight and weight have on the game?

RE: Extra Fields

Posted: Wed Jan 18, 2006 6:15 pm
by David Winter
There are a few. .they've always been there. Height and Weight effect the physics.

RE: Extra Fields

Posted: Wed Jan 18, 2006 8:14 pm
by Brodie
Okay thanks
For the random name generator how will the names look
Earl The Pearl Windfield
EARL THE PEARL WINDFIELD
Earl The PEARL WINDFIELD

A program is being built to randomly generate colleges .Is there a need for this or will the game generate colleges.I am going with the game can`t because of copy right laws.
Also the reason for the name question theres going to be a section in the program to generately purely french Canadian names so need to know the format of that also.
Also in the program there is a equation when generating collages to put in the extra fields players weights and height in Metric.

Private Sub Command1_Click()
Dim result
Text4 = Label7 * 2.54
Text6 = Label8 * 0.45359
Randomize

result = Int((203 - 1 + 1) * Rnd + 1)
Select Case Val(result)

Case Is = 1
Text5 = "Weber State"

Case Is = 2
Text5 = "Toronto "

Case Is = 3
Text5 = "Waterloo"

^^^^^^^^^^^^^^^^^^^^^^^

Case Is = 202
Text5 = "York"

Case Is = 203
Text5 = "Sherbrooke"

End Select
End Sub

RE: Extra Fields

Posted: Wed Jan 18, 2006 8:59 pm
by David Winter
Random names are generated from a list of male first names and surnames. There are about 15000 surnames in the database from all nationalities.

BTW, some comments on the code above.

1. You should never declare a variable without a datatype. The result is a declaration of variable as a variant datatype and, not only is that not best coding practice, but it also leads to bad things happening in code. In the code snippet above, use Dim lngResult as Long.

2. You also might want to look at object names more appropriate than Command1 and Text4

3. Don't rely on the default properly for an object to assign a value to that object. Text4 = "Something is bad. Text4.Text = "Something" is much better, faster to execute by the system, and is upgradeable to .Net platform code that doesn't understand default properties like VB6 does.

Just an FYI...