Anyone got any idea why this won't work?
for t=1 to itemstotal
for j=1 to player-1
if items(t,j)=1 and j=room
print
a$="THERE IS A "
c$=itemname$(t)
d$=" HERE."
a$=a$+c$+d$
gosub type
endif
next j
next t
This is from my main text adventure game loop. type is my subroutine for printing text onscreen. items is the array I'm using to record an item's location: one for each room, with an additional one for the player's inventory(variable player). 1 for item there, 0 for item not there. When the game prints an "AN ITEM IS HERE" message onscreen, it gives me an error message saying, "Array accessed out of bounds", and points me to the items array. What does this mean?