Having some strange problems with inventory objects.
Where to start...
I only have six at the moment, still in the beginning stages. But when I'm in debug, it refuses to recognize any objects other than 0 and 1 as being valid. That's not -really- the problem, but I thought it bore mentioning.
Object i5 is in the objects file as being in room 29. In room 29, the code doesn't recognize it as being there, so I manually stuck it there myself in the initialization of the game. That seemed to work as far as the game 'seeing' it, but then when I added 'get' code to be able to pick it up, my inventory changes from objects 0 and 4 NOT to 0, 4, and 5, but to 0, 4, and -3-, and the names for 3 and 4 are both truncated inexplicably.
The get code's about as simple as it can be, basic stuff really, so much so that I'm embarassed to be having trouble with this:
if (said("get","chisel")) {
if (obj.in.box(o0,63,132,80,143)) {
print("You pull the chisel free from where it was lodged in the pipe.");
erase(o7);
get(i5);
}
else {
print("You're not close enough.");
}
}
I tried substituting
v230=255;
put(i5,v230);
for get(i5); just to see what would happen, that didn't work either.
I thought maybe the names were too long, so I tried to shorten the names of some of the inv. objects, but then the game froze when trying to load my save file to get past the bloody long intro. -_o Which... I'm not sure if that's supposed to happen, but ah well.
If anyone's encountered any similar problems, insight would be very much appreciated, thankye.
~happyturk