Cool! Thanks a bunch strazer. I actually added a few things, this is what I've come up with:
// script for object0: Interact object
MoveCharacterBlocking(EGO, 81, 108, 0);
if (GetGlobalInt(77) == 0) { // if player hasn't talked to MAN yet (GlobalInts are initially 0)
DisplaySpeech(EGO, "It's locked.");
}
else { // if player has talked to MAN
SetGlobalInt(77, 2); // opens door
SetObjectView(0,7);
AnimateObjectEx(0,0,5,0,0,1);
}
NewRoomEx (9,300,76); // go through door into next room
}
Plus it actually worked. One other question though...next time I do something like this, I just have to use a different number as the globalInt? Like 78 or something? What are the numbers I can use?
// script for object0: Interact object
MoveCharacterBlocking(EGO, 81, 108, 0);
if (GetGlobalInt(77) == 0) { // if player hasn't talked to MAN yet (GlobalInts are initially 0)
DisplaySpeech(EGO, "It's locked.");
}
else { // if player has talked to MAN
SetGlobalInt(77, 2); // opens door
SetObjectView(0,7);
AnimateObjectEx(0,0,5,0,0,1);
}
NewRoomEx (9,300,76); // go through door into next room
}
Plus it actually worked. One other question though...next time I do something like this, I just have to use a different number as the globalInt? Like 78 or something? What are the numbers I can use?