Why create a new UDT in a function, just use the same UDT that you'd use in the rest of the game. Plus, I don't believe there's a command for saving UDT's. (Save Array doesn't work I believe)
Just instantiate the UDT in your main code... (for example)
Type tRace
Gender
SkinColor as Double
Name$
EndType
Dim Player( 1 ) As tRace
Createplayer( 1 )
Do
Print 0, 0, Str$( Player( 1 ).Race )
Sync
Loop
End
Function CreatePlayer( Id )
Player( ID ).Gender = Blah blah blah
Player( Id ).SkinColor = RGB( Blah, Blah, Blah )
EndFunction
This is a fantastically oversimplified way to do it, but it's how I'd do it.
I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]