posted 18-01-2003 18:52 GMT
Is there any explaination about putting your post in a [ quote ] box?To solve your problem just have it so that when the dice "lands" on 1 set off a bit of code...
here you go:
Private Sub Form_load()
Randomize
End Sub
Private Sub cmdDice_click()
Dim intDiceRoll as Integer
intDiceRoll = Int(6 * Rnd + 1)
' This generates a number between 1 and 6
If (intDiceRoll = 1) then
#execute code#
End If
End Sub
Now obviously where #execute code# is, you'd have it so it moves your UFO around, or prints out some text - or whatnot.
Computer Whizz