Changing Direction Allias (Solved)

thegoodones
01 Jan 2022, 14:31

Is there a way to change the name of a direction allias so in the room description, instead of saying "there is a north" I can instead say "there is a kitchen?"


mrangel
01 Jan 2022, 15:22

Yes, you can change the alias of the exit to whatever you want.
The only difficulty will be with the web editor, which for some reason doesn't let you enter a new alias. So if you're editing online, you would need to use a script at the start of the game to change the alias.

For example, if your exit's name is exit113, you could add a line to the start script:

exit113.alias = "kitchen"

By default, exits have a name that is just exit and a number. To find out what it is, you would have to use the function GetExitByName (for example GetExitByName (hallway, "north") which returns the name of an exit from its current alias. But usually it will be easier just to give the exit a name in the editor.


thegoodones
02 Jan 2022, 04:04

Thank you so much