Traveling Error
MotherNight
11 Apr 2012, 21:59I'm creating a game where I need to use a keycard to open a door to a new area. When I use the keycard , it opens the door, but when I need to go through the door this is what happens:
> look at Toolkit
Picking up the object, you see that it is well made and an invaluable resource on the station.
> take Toolkit
You take the items laying about the storage room and make an effective toolkit.
> go Storage Room Door
You are in a Hallway.
You can see an Office Door and a Bulkhead Door.
You can go through the south, Storage Room Door, west or north.
The hallway is long and grey. Dim fluorescent lighting is integrated into the ceiling. It's as cold in here as it is in the rest of the station.
> use toolkit on office door
You cut through the door.
> go north
You are in a Managers Office.
You can see a Cabinets and a Desk.
You can go south.
With a fizz and a pop the door shudders open revealing the manager’s office. You survey the scene and find the office immaculate with alphabetical filing cabinets lining the walls. One of the drawers is open, and innumerable bureaucratic documents litter the spotless white floor. The manager’s desk is cluttered, with pictures of people and places back on earth and in the stations.
> open Desk
You open all of the drawers, finding only the top right one to contain anything useful.
lying on top of the right junk drawer is a a Universal Keycard.
> take Universal Keycard
You pick up the keycard out of the desk drawer. It's thin, but sturdy.
> go south
You are in a Hallway.
You can see an Office Door and a Bulkhead Door.
You can go through the south, Storage Room Door, west or north.
The hallway is long and grey. Dim fluorescent lighting is integrated into the ceiling. It's as cold in here as it is in the rest of the station.
> use keycard on bulkhead door
The bulkhead door is now open, but the light on the door remains the same because of security protocols.
> go west
Error running script: Error compiling expression '(not GetBoolean(player.parent, "visited")) and HasScript(player.parent, "beforefirstenter")': FunctionCallElement: Could find not function 'GetBoolean(Object, String)'
Error running script: FunctionCallElement: Could find not function 'GetAllChildObjects(Object)'
Error running script: Error compiling expression 'GetBoolean(room, "transparent")': FunctionCallElement: Could find not function 'GetBoolean(Object, String)'
Error running script: FunctionCallElement: Could find not function 'GetAllChildObjects(Object)'
Error running script: Object reference not set to an instance of an object.
I'm not sure what to fix; as an additional problem I'm having, how do I get the directions to display as my own titles? E.g., "You can go through the south, Storage Room Door, west or north." I've tried changing the aliases. Here is the actual file also.
> look at Toolkit
Picking up the object, you see that it is well made and an invaluable resource on the station.
> take Toolkit
You take the items laying about the storage room and make an effective toolkit.
> go Storage Room Door
You are in a Hallway.
You can see an Office Door and a Bulkhead Door.
You can go through the south, Storage Room Door, west or north.
The hallway is long and grey. Dim fluorescent lighting is integrated into the ceiling. It's as cold in here as it is in the rest of the station.
> use toolkit on office door
You cut through the door.
> go north
You are in a Managers Office.
You can see a Cabinets and a Desk.
You can go south.
With a fizz and a pop the door shudders open revealing the manager’s office. You survey the scene and find the office immaculate with alphabetical filing cabinets lining the walls. One of the drawers is open, and innumerable bureaucratic documents litter the spotless white floor. The manager’s desk is cluttered, with pictures of people and places back on earth and in the stations.
> open Desk
You open all of the drawers, finding only the top right one to contain anything useful.
lying on top of the right junk drawer is a a Universal Keycard.
> take Universal Keycard
You pick up the keycard out of the desk drawer. It's thin, but sturdy.
> go south
You are in a Hallway.
You can see an Office Door and a Bulkhead Door.
You can go through the south, Storage Room Door, west or north.
The hallway is long and grey. Dim fluorescent lighting is integrated into the ceiling. It's as cold in here as it is in the rest of the station.
> use keycard on bulkhead door
The bulkhead door is now open, but the light on the door remains the same because of security protocols.
> go west
Error running script: Error compiling expression '(not GetBoolean(player.parent, "visited")) and HasScript(player.parent, "beforefirstenter")': FunctionCallElement: Could find not function 'GetBoolean(Object, String)'
Error running script: FunctionCallElement: Could find not function 'GetAllChildObjects(Object)'
Error running script: Error compiling expression 'GetBoolean(room, "transparent")': FunctionCallElement: Could find not function 'GetBoolean(Object, String)'
Error running script: FunctionCallElement: Could find not function 'GetAllChildObjects(Object)'
Error running script: Object reference not set to an instance of an object.
I'm not sure what to fix; as an additional problem I'm having, how do I get the directions to display as my own titles? E.g., "You can go through the south, Storage Room Door, west or north." I've tried changing the aliases. Here is the actual file also.

Pertex
12 Apr 2012, 09:20The exit "hallway 2 exit" does not have a destination.
I don'T understand the second problem. "You can go through the south, Storage Room Door, west or north." is displayed at the moment. What would you like to see?
I don'T understand the second problem. "You can go through the south, Storage Room Door, west or north." is displayed at the moment. What would you like to see?
SarahJay
12 Apr 2012, 18:02I believe they would like to see the names of the rooms, instead of the directions "north" or "east". (This is another post from our class working on these projects, so I believe that is accurate). Incidentally, I would like to see "Medical Bay" instead of "South" as well.

Pertex
12 Apr 2012, 19:23Ahh, then you must add a non-directional exit to the room and add a alias. And don't forget to define the destination ("To:"). I think that was the problem from the first post.
MotherNight
13 Apr 2012, 02:01Thank you guys. That fixed it, and now I can work on the rest of the game.