Not sure what's wrong with code to make exit visible

improvstartrek
07 Oct 2015, 23:03
Sorry to bother with such elementary stuff, but I'm having difficulty making an exit visible.

The intended sequence of actions is this:
[*]Player starts in a Room, mousehole is not visible
[*]Player opens a box, encounters a Mouse, mousehole becomes visible
[*]Player is able to look at mousehole

It needs to be an exist because the player will later be shrunk and will be able to travel through the hole
Here's my set up:

Quest_-_Improvised_Star_Trek.png


Quest_-_Improvised_Star_Trek.png


And yet:

Improvised_Star_Trek.png


Any idea what obvious thing I'm missing?

XanMag
08 Oct 2015, 14:47
Instead of using the 'hole' as an exit, I would make the 'hole' an object. That way you know it can be made visible and is easier to deal with. Exits are a little wonky unless you are using them to... well, exit a room. Just make OBJECT hole visible.

When it comes time to use the 'hole' as an exit, I'd add a verb to the 'hole' object. I think you could add 'use' or 'enter' as your verb. Then, in the script box for that verb, simply use a 'move player to [new room]'. It might make your map goofy if you are using one though.

In that case, if you have or want the exit to be tied to a direction, I would still use the 'hole' as an object. When the player looks at hole you could print a message like "If you were as small as a mouse, you might be able to go down through the small tunnel." Start with that exit locked. When the player is as small as a mouse, unlock the exit (and make it visible if needed). If the player grows again, just lock the exit back. You will need to name the exit to do this.

That make sense? Let me know. Good luck.

XanMag

improvstartrek
08 Oct 2015, 19:12
That does make sense, thanks a lot! And good to know that this is a known wonkiness and not any obvious error of mine I'm missing.


It might make your map goofy if you are using one though.



The game takes place over several floors that the player has to access through a lift, so I've already made my peace with not being able to use maps.