Addressing another type within same type

Blitz3D Forums/Blitz3D Programming/Addressing another type within same type

The what-what?
You can have more than one variable of the type defined. Or am I not understanding you right?

Example:
SeedRnd 143

Type player
	Field name$
End Type

players.player = New player
players\name = "Luke"
players.player = New player
players\name = "Joe"
players.player = New player
players\name = "William"
players.player = New player
players\name = "Jack"
players.player = New player
players\name = "Averell"

For players.player = Each player
	For otherplayers.player = Each player
		If Rand(1, 4) = 1 Then
			Exit
		End If
	Next
	Print players\name + " vs " + otherplayers\name
Next

While Not KeyDown(1)
Wend