Quote: "RANDOMIZE
The RANDOMIZE command reseeds the random number generator. If the random number generator is not reseeded the RND() command
can return the same sequence of random numbers. To change the sequence of random number every time the program is run, place a
randomize statement with an integer number at the beginning of the program and change the value with each run."
from the help commands included with DB
1. most people will use the
randomize timer() command; which sets the seed according to the system time, i place it outside of the main program loop...
Quote: "PICK OBJECT
This command will return the Object Number of the closest object at the specified screen coordinates. The objects that are tested
against the 2D coordinate are only those within the Object Start and Object End range in order to speed up specific tests. If no object
exists at the coordinate, a value of zero is returned. If an object number is returned, additional data will be generated and stored
internally. This extra data can be retrieved using the GET PICK VECTOR and GET PICK DISTANCE commands.
SYNTAX
Return Integer=PICK OBJECT(Screen X, Screen Y, Object Start, Object End)"
2. your gonna have to play a bit with this one, cause army of darkness is back on and it's sac-religious to miss a Bruce Campbell flick....