Object/Rooms inside other rooms

I'm struggling to do this so let me explain. I have an object inside a room that I want the player to climb, which would lead them to being on top of the object (with their own objects on top of it/not being able to interact with objects on the floor unless you climb down).

I don't want to just make an "up" because it's more than one object that I want the player to climb. Anyway I thought I had it all settled until I got :
Error running script: Error evaluating expression 'DictionaryItem(coordinates, coordinate)': The given key was not present in the dictionary.
Error running script: Error evaluating expression 'DictionaryItem(coordinates, coordinate)': The given key was not present in the dictionary.
Error running script: Error evaluating expression 'DictionaryItem(coordinates, coordinate)': The given key was not present in the dictionary.

I even made exits from and to the object and the room they're in but it still doesn't work.


I don't want to just make an "up" because it's more than one object that I want the player to climb.

In this case, my first thought would be to make multiple 'up' exits, and change their aliases to "up ladder" or similar. That way, if the player just types "up", they will get a sensible message asking what they want to climb.

Error running script: Error evaluating expression 'DictionaryItem(coordinates, coordinate)': The given key was not present in the dictionary.

The error looks to be from the map. That shouldn't happen if you have directional exits there. Can you show the code for the object/room? Someone might be able to spot the problem.


"I'm struggling to do this so let me explain. I have an object inside a room that I want the player to climb, which would lead them to being on top of the object (with their own objects on top of it/not being able to interact with objects on the floor unless you climb down)."

REPLY : Each place you go to, has to be another location, even if it is just on top of an existing object. E.g. If the object is a cupboard. You need to create the "illusion" of climbing the cupboard by having a location called "on top of the cupboard". Then if you want to go further e.g. You can open a trapdoor in the roof above and exit up to the loft (another location).

To keep the logic in this scenario, you will have to list trap door in room that cupboard is in, but in that room, you cannot open it as you cannot reach it...yet.

Though objects allow you to have a surface, sometimes it is best to remove that option and make a new location instead, to fool the player that they have climbed the object and are actually on top of it. Otherwise, you won't be able to jump from top of an object you have allowed to have a climbable surface to a higher place, if you get my meaning.

Hope that helps.


Log in to post a reply.

Support

Forums