Posted: 19th Aug 2003 20:46
rem Monster Data's
Monster1:
data "Creeper",1,100,25,29,11,8,4,5,2,9
data 49,49,10,10,38,18,17,3,26,24,4,5,4
Monster2:
data "Nasty",2,175,32,36,14,9,5,6,3,11
data 77,77,15,15,45,25,20,3,34,28,5,6,5
Monster3:
data "Uglyness",2,225,29,45,10,12,12,9,7,7
data 35,35,54,54,60,40,19,10,27,28,12,9,6
Monster4:
data "Foul Odor",3,275,34,49,6,10,2,2,24,17
data 51,51,2,2,31,11,27,10,23,21,2,2,5
Monster5:
data "Gas Cloud Of DOOM",3,305,39,54,7,12,3,3,24,18
data 63,63,4,4,42,22,30,12,25,25,3,3,6
MonsterTheBoss:
data "A Really Scary Monster",4,500,52,143,17,18,1,1,1,20
data 170,170,1,1,77,57,38,18,32,39,1,1,9
These are the data statements my program refers to when using the restore command and then reading. Each has a label (Monster1:,Monster2:,Etc.) that, when the restore command is invoked, ends up pointing to THE FIRST TIME AROUND. Each time I run the program, the program restores to the correct label, then procedes to read the the correct data and sets it to the Arrays. The inforamtion in the arrays is then printed to screen. The problem is after you defeat a monster and the program loops back to the beginning, but when it reaches the point of reading new data into the array, so as to allow a new monster take you on, it loads empties. No name or stats, just 0s and blank spots. This is the problem I have been unable to solve. Any Ideas?