Blocking the player on before enter room
atorres
04 Aug 2012, 13:43Hi.
I want to make a guard block the player's way on certain circustances. What I did is to program the before enter room script to move the player object to another room. The problem is that quest shows the room description 2 times. And I think my solution is not correct. I tried to return false in the "before enter room script", but it does not work. Any tips?
Thanks
I want to make a guard block the player's way on certain circustances. What I did is to program the before enter room script to move the player object to another room. The problem is that quest shows the room description 2 times. And I think my solution is not correct. I tried to return false in the "before enter room script", but it does not work. Any tips?
Thanks
sgreig
04 Aug 2012, 14:41Yeah, I don't think that was the right approach to accomplish what you want.
What I would do is just have the exit locked, with a message like "The guard blocks your way." if the player tries to use the exit. Then have the exit unlock when the player has achieved the necessary condition. Obviously there should be a guard object in the room as well so the player isn't confused when a guard is mentioned but there's none in the room.
What I would do is just have the exit locked, with a message like "The guard blocks your way." if the player tries to use the exit. Then have the exit unlock when the player has achieved the necessary condition. Obviously there should be a guard object in the room as well so the player isn't confused when a guard is mentioned but there's none in the room.
atorres
13 Aug 2012, 00:25The locked exit is working fine. Had to make some changes, but it is easier to manage.
Thanks!
Thanks!