Multiple Doors in One Room

Hey everyone. In my game, there's a hub world with four doors (a yellow one, a red one, a green one, and a blue one.) I'm trying to make it so that when I type, for example, "enter yellow door" it takes me to the corresponding room. Thanks!


I see 2 main ways to do that:

  • Make the doors objects with an 'enter' verb which moves you to the desired location

or

  • Make the doors as exits with custom alias. Then you can "go yellow door". If you want the command "enter yellow door" to work as well, you can create a command in that room with the pattern enter #exit# and script game.pov.parent = exit.to

Thanks for the quick reply! I have tried to make an enter verb to the door, but it says "verb would clash with command: 'enter'" and i don't remember putting an enter command anywhere. Well, I came up with somewhat of a solution. It's a little sloppy, but it works. I created a new command with pattern "create yellow door" with a script that moves the player object to the corresponding room. I add a different command for each door, and i feel like it works, and i guess that's all that matters haha.


Log in to post a reply.

Support

Forums