09-18-2005, 06:40 PM
I'm trying to make a program that loads a monsters stats. it is almost working...almost.
I hard-coded the stats in and it worked fine, but when i try to load the stats it doesn't work.
/\/\
The loader part
/\/\
lv1.lv
I hard-coded the stats in and it worked fine, but when i try to load the stats it doesn't work.
Code:
Dim enemyname(10) as string
Dim enemystats(10,10,10,10,10,10,10,10) as unsigned integer
Dim monster as integer
Dim amountofmonsters as integer
open "lv1.lv" for input as #1
input #1, amountofmonsters
for unused1 = 1 to amountofmonster
input #1, enemyname(unused1)
for unused2 = 1 to 8
input #1, enemystats(unused1,0,0,0,0,0,0,0)
input #1, enemystats(unused1,unused1,0,0,0,0,0,0)
input #1, enemystats(unused1,unused1,unused1,0,0,0,0,0)
input #1, enemystats(unused1,unused1,unused1,unused1,0,0,0,0)
input #1, enemystats(unused1,unused1,unused1,unused1,unused1,0,0,0)
input #1, enemystats(unused1,unused1,unused1,unused1,unused1,unused1,0,0)
input #1, enemystats(unused1,unused1,unused1,unused1,unused1,unused1,unused1,0)
input #1, enemystats(unused1,unused1,unused1,unused1,unused1,unused1,unused1,unused1)
next
next
/\/\
The loader part
Code:
10
rat
50
10
15
2
2
3
20
20
bat
50
10
15
2
2
3
20
20
cat
50
10
15
2
2
3
20
20
fat
50
10
15
2
2
3
20
20
gat
50
10
15
2
2
3
20
20
hat
50
10
15
2
2
3
20
20
qat
50
10
15
2
2
3
20
20
tat
50
10
15
2
2
3
20
20
oat
50
10
15
2
2
3
20
20
pat
50
10
15
2
2
3
20
20
/\/\
lv1.lv
url=http://www.sloganizer.net/en/][/url]