Clickable SMiley,
When are you needing to determine the object number? When collision happens? Or, are you needing the program to create a random object at a random moment, and you need to know what object number to place within the make object command?
If the question is the last, then there is two methods to figure the object number, the first being the most efficient. First, you could create a variable and assign it the last known object number plus one. Then, as random objects are created, the variable should be incremented.
The other method is to simply do a repeat until loop to search for existing object numbers. When the loop finds that the next number is not an existing object, then code is ran.
repeat
inc t
if object exist(t) = 0
`run needed code here(make random object with object number t)
exist = 1
endif
until exist = 1

+NanoBrain+