if you do this:
for a=10 to 80
enemy(a).health = rnd(75)+25 `this adds random 75 to a constant 25 to randomize healths
next a
then your dim should be like this:
dim enemy(
80) As enemyProperties, which means a greater memory reserve for the dimension, not so important in this case but will be if your game develops further.
so to your problem, if you have objects from 10 to 80 in your program that you want to save in an array, do this:
dim enemy(70) as characterproperties
i = 0
for objects = 10 to 80
inc i
enemy(i).objectnumber = objects
next objects
this will make so to objects numbers from 10 to 80 is saved in an array
of enemy(70) which is equal to the objects count.
RUCCUS:
TYPE Test
Helth# AS FLOAT
Name$ AS STRING
ENDTYPE
Player AS Test
if you set helth as a float, you dont need the #
and for name as string, you dont need the $, do it like this:
TYPE Test
Helth AS FLOAT
Name AS STRING
ENDTYPE