Types Again!!!

Blitz3D Forums/Blitz3D Beginners Area/Types Again!!!

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.

Okay lets try this...heres what i got! I only know how to loop thru all the skills, I need to know how to loop thru the players individual skills.

Graphics 400,300,16,3

Type Player
Field Playername$
Field psk.skill
End Type

Type skill
Field skillname$
End Type

p.player=New Player
p\playername$="John"
p\psk.skill=New skill
p\psk\skillname$="Jump"
p\psk.skill=New skill
p\psk\skillname$="Hello"

p.player=New Player
p\playername$="Joe"
p\psk.skill=New skill
p\psk\skillname$="Punch"
p\psk.skill=New skill
p\psk\skillname$="Duck"

Print "Players: "
For a.player=Each player
Print a\playername$
Next

Print " "
Print "Skills:"
For j.skill=Each skill
Print j\skillname$
Next

For a.player=Each player
For j.skill=Each p.psk.skills;this doesn't work
Print p\psk\skillname$
Next
Next



Now how can I print out each players individual skills???