So any how, i had to write all my code long hand, here is all i did, this is what i was trying my best to avoid.
rem loose health for enimys array
for nights1 = 5 to 20
if enemy(nights1).ehealth=-1 then enemy(nights1).ehealth=0
if enemy(nights1).ehealth=-2 then enemy(nights1).ehealth=0
if enemy(nights1).ehealth=-3 then enemy(nights1).ehealth=0
if enemy(nights1).ehealth=-4 then enemy(nights1).ehealth=0
if enemy(nights1).ehealth=-5 then enemy(nights1).ehealth=0
if enemy(nights1).ehealth=0 then hide object nights1:position object nights1, 0,-200,0
if object Collision ( 3, 5 )=1 then attack1=1
if attack1=1
attac1=attac1+1
endif
if attac1=60
attack1=0
dec enemy(5).ehealth,1
attac1=0
endif
if object Collision ( 3, 6 )=1 then attack2=1
if attack2=1
attac2=attac2+1
endif
if attac2=60
attack2=0
dec enemy(6).ehealth,1
attac2=0
endif
if object Collision ( 3, 7 )=1 then attack3=1
if attack3=1
attac3=attac3+1
endif
if attac3=60
attack3=0
dec enemy(7).ehealth,1
attac3=0
endif
if object Collision ( 3, 8 )=1 then attack4=1
if attack4=1
attac4=attac4+1
endif
if attac4=60
attack4=0
dec enemy(8).ehealth,1
attac4=0
endif
if object Collision ( 3, 9 )=1 then attack5=1
if attack5=1
attac5=attac5+1
endif
if attac5=60
attack5=0
dec enemy(9).ehealth,1
attac5=0
endif
if object Collision ( 3, 10 )=1 then attack6=1
if attack6=1
attac6=attac6+1
endif
if attac6=60
attack6=0
dec enemy(10).ehealth,1
attac6=0
endif
if object Collision ( 3, 11 )=1 then attack7=1
if attack7=1
attac7=attac7+1
endif
if attac7=60
attack7=0
dec enemy(11).ehealth,1
attac7=0
endif
if object Collision ( 3, 12 )=1 then attack8=1
if attack8=1
attac8=attac8+1
endif
if attac8=60
attack8=0
dec enemy(12).ehealth,1
attac8=0
endif
if object Collision ( 3, 13 )=1 then attack9=1
if attack9=1
attac9=attac9+1
endif
if attac9=60
attack9=0
dec enemy(13).ehealth,1
attac9=0
endif
if object Collision ( 3, 14 )=1 then attack10=1
if attack10=1
attac10=attac10+1
endif
if attac10=60
attack10=0
dec enemy(14).ehealth,1
attac10=0
endif
if object Collision ( 3, 15 )=1 then attack11=1
if attack11=1
attac11=attac11+1
endif
if attac11=60
attack11=0
dec enemy(15).ehealth,1
attac11=0
endif
if object Collision ( 3, 16 )=1 then attack12=1
if attack12=1
attac12=attac12+1
endif
if attac12=60
attack12=0
dec enemy(16).ehealth,1
attac12=0
endif
if object Collision ( 3, 17 )=1 then attack13=1
if attack13=1
attac13=attac13+1
endif
if attac13=60
attack13=0
dec enemy(17).ehealth,1
attac13=0
endif
if object Collision ( 3, 18 )=1 then attack14=1
if attack14=1
attac14=attac14+1
endif
if attac14=60
attack14=0
dec enemy(18).ehealth,1
attac14=0
endif
if object Collision ( 3, 19 )=1 then attack15=1
if attack15=1
attac15=attac15+1
endif
if attac15=60
attack15=0
dec enemy(19).ehealth,1
attac15=0
endif
if object Collision ( 3, 20 )=1 then attack16=1
if attack16=1
attac16=attac16+1
endif
if attac16=60
attack16=0
dec enemy(20).ehealth,1
attac16=0
endif
my signature keeps being erased by a mod So this is my new signature.