throwing dice

Blitz3D Forums/Blitz3D Beginners Area/throwing dice

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.

OK there is no way getting around it... I was trying to be fancy but I really don't understand TYPE... When I run the following code:

; Define the Dice Type

Type dice1
Field face
Field X
Field Y
Field z
End Type


; ==-=-=-=-=-=-=- OK six dice are created
; NOW for the location of the numbered face
; =-=-=-=
; 		this may have to change
For t = 1 To 24
die1.dice1=New dice1
die1\face=1
die1\x=0
die1\y=0
die1\z=0

die1\face=2
die1\x=90
die1\y=0
die1\z=0

die1\face=3
die1\x=0
die1\y=270
die1\z=0

die1\face=4
die1\x=0
die1\y=90
die1\z=0

die1\face=5
die1\x=270
die1\y=0
die1\z=0

die1\face=6
die1\x=0
die1\y=180
die1\z=0
Next t
I get a " t is not a function " So how do I load the data? Should I just run a simpler array?

I am trying to set up a store of coordinates to show what was rolled on a .X dice after the number is selected.