Type Lists?

BlitzMax Forums/BlitzMax Beginners Area/Type Lists?

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.

            Local Boss:Player
			Boss = New Player

			Boss.id   = 1
			Boss.name = "David R"
			Boss.skill_level=77

			Boss.id   = 2
			Boss.name = "Paul C"
			Boss.skill_level=17


This is like saying,
Local apples:Int
apples = 5
apples = 7

You do not have 2 seperate bosses, you have one boss. The last paragraph of code overwrites the original data.

	'Put the address of this new Boss into variable Player
	NewBoss = New Player

Don't know if this is a typo but you got Boss and Player the wrong way round in the description.