Quote: "Should be easier to sort if it is not mixing both udt and multi dimension"
Well to give a better detail, this is what I'm doing now with the UDT..
type playerdata
Name as String
Pos as String
Height as Integer
Age as Integer
Minutes as Integer
Money as Double Integer
YearsLeft as Integer
OFF as float
DEF as float
FG as float
FT as float
P3 as float
REB_RAT as float
AST_RAT as float
STL_RAT as float
BLK_RAT as float
OVR as float
endtype
global dim player(40,15) as playerdata
I dont know if anyone is familiar with basketball but this is an array to hold players data.. 40 teams, 15 players a peice
All the players have been randomly given values from name to ratings..
Doing this however, it doesn't fix the depth chart accordingly...
like..
.Name .Pos .Height .Age .OVR
---------------------------------------------------
player(1,1) Justin Powers PF 6'11" 26 77 starters
player(1,2) Rob Manowski SF 6'10" 23 82
player(1,3) Jim Jefferson C 6'11" 27 78
player(1,4) Brandon Hollis PG 6'2" 29 76
player(1,5) Jimmy Gordon SG 6'5" 32 73
---------------------------------------------------
player(1,6) Al Harris PF 6'8" 30 73 bench
player(1,7) Steve Porter SF 6'8" 35 61
player(1,8) Harold Woods C 6'10" 30 72
player(1,9) Stevie Hardy PG 6'7" 21 70
player(1,10) Prince Powers SG 6'5" 22 84
player(1,11) Jin Lee PF 6'11" 22 74
player(1,12) John Martinez SF 6'10" 22 70
player(1,13) Jeff Brown C 6'11" 25 68
player(1,14) Daquan Sanders PG 6'1" 18 68
player(1,15) Drazen Mozgov SG 6'4" 19 69
If your familiar with basketball.. You know the starting five most likely are the best 5 players. This isn't the case here as random values are given. I want to sort it so the best PF overall is always first. E.g. player(x,1) with x being the team number. The 2nd best PF would be 6 and last would be 11.
starting bench bench
1 PF 6 PF 11 PF
2 SF 7 SF 12 SF
3 C 8 C 13 C
4 PG 9 PG 14 PG
5 SG 10 SG 15 SG
so looking back at the data table..
Prince Powers should be the starting SG because he is 84 OVR and the current starter is only 73 OVR
My fault to get into detail, but thats the only way I can explain it fully...
*side note* if you want a name generator or a schedule maker, I have source available...
- Infinity is Simplicity -