I want to do that if my character look an object in the inventory or in the GUI the game open a new room or a window with some information. When the character close this window or room the character have to come back to the room where he looks this object. He can looks this object in all the rooms of the game.
For example, if the player wants to look a book in the inventory in anywhere for search an information in this book, how can I do that?
Thanks and sorry for my english!
In the objects' inventory interaction (look at):
player.ChangeRoom(ROOM_NUMBER_OF_THE_BOOK);
and in the interaction of the book's "Quit" hotspot...
player.ChangeRoom(player.PreviousRoom);
Ok, the problem is solved.
Thanks for your help! ;)