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.

How to do search thru the following p\sk.skills? Using this code, and without making a linked list, is it possible?

Type player
Field name$
Field sk.skill
End Type

Type skill
Field name$
Field comline$
End Type

p.player=New Player
p\name$="George"
p\sk.skill=New skill
p\sk\name$="disarm"
p\sk\comline$="You disarm your friend!"
p\sk.skill=New skill
p\sk\name$="bash"
p\sk\comline$="You bash soandso!"

p.player=New Player
p\name$="Henry"
p\sk.skill=New skill
p\sk\name$="fireball"
p\sk\comline$="You cast a fireball !!!"
p\sk.skill=New Skill
p\sk\name$="Chain"
p\sk\comline$="You chain stuff!!"

For p.player=Each player
Print p\name$
Next

For s.skill=Each skill
Print s\name$
Next
Print
Print

For p.player=Each player
Print p\name$
For sk.skill=Each p\sk.skill ;How to search thru this players skills?
Print p\sk\comline$
Next
Next

waitkey()