More problems with locked exits

OurJud
12 Dec 2016, 01:54

Can someone please tell me what's wrong here.

  • The player is on the upstairs landing of a house.
  • One of the landing's exits (set to up) is an attic above the player (accessed through a hatch).
  • The player needs a grab pole to open the hatch.

On the exit for hatch I set it to locked, give it the name atticOpen and have the message for Print message when locked to: The hatch is too high to reach.

Then I run this script on the exit:

if (Got(wooden pole)) {
  msg ("You guide the hook of the pole onto the latch and pull. The door opens and a narrow flight of stairs concertina down to the floor.")
  UnlockExit (atticOpen)
}

This all works as it should, but then when I try up again I get: The hatch is too high to reach.


OurJud
12 Dec 2016, 03:52

Resolved. Seems like this was a corrupt game file. I had to delete the exit from both the UI and then manually from the game code as it wasn't being deleted from there for some reason.

I also went with a different method in the end.