Need help making a ladder an exit

Hi there,

In my game, I have a ladder that leads to the top of a book shelf (which I have as a separate room) but I can't figure out how to allow the player to go through the exit by climbing the ladder. "go up" works, but when I type "climb ladder," or anything with the "climb" verb, it says "You can't climb it." How do I allow the player to pass through the exit to the top of the stairs by climbing the ladder?

Thanks!


K.V.

Make a ladder object, make it scenery, and make sure it's in the lower room.

Then, add a CLIMB verb to the ladder object.

In that script, do something like this (substituting upper_room with your room's name):

msg("You climb the ladder.")
MoveObject(game.pov, upper_room)

Alternatively, you could forget adding a ladder object, and just add a command to that lower room (substituting your upper room's name for upper_room):

    <command name="climb_ladder">
      <pattern>climb ladder</pattern>
      <script>
        MoveObject (game.pov, upper_room)
      </script>
    </command>

The first solution worked. Thanks so much!


K.V.

Yay!

You're more than welcome.

Happy gaming!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums