The locker int should be initialised at the top of the room script, not in the interact function. so put
int locker=0; at the top of the room script.
Also I made some changes to your interact script:
// script for hotspot10: Interact hotspot
if (locker == 0) {
Display("That's not your locker.");
}else
if (locker == 1) {
Display("Don't you know where your locker is?");
}else
if (locker == 2) {
Display("Don't mess around with other peoples lockers");
}else
if (locker >= 3) {
Display("You actually don't know where it is, do ya?");
}
if (locker < 3) {
locker++;
}
so that it adds one each time, instead of 3.
int locker=0; at the top of the room script.
Also I made some changes to your interact script:
// script for hotspot10: Interact hotspot
if (locker == 0) {
Display("That's not your locker.");
}else
if (locker == 1) {
Display("Don't you know where your locker is?");
}else
if (locker == 2) {
Display("Don't mess around with other peoples lockers");
}else
if (locker >= 3) {
Display("You actually don't know where it is, do ya?");
}
if (locker < 3) {
locker++;
}
so that it adds one each time, instead of 3.