Types, How to

Blitz3D Forums/Blitz3D Beginners Area/Types, How to

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

One way is to make the .skill type contain the player name, you don't need to include one type inside the other this way;

Type skill
Field playername$
Field name$
Field comline$
End Type


Then you can just search for the players name. However you have to make sure the names are all different. The other way would be to allocate an ID for each player, Then provided you know the player you can look up his id and search for his skills.

Type player
Field name$
Field id
End Type

Type skill
Field id
Field name$
Field comline$
End Type


You have some overhead looking through the complete skills list but unless it is very big you should not notice.

SJT