I don't know if this is the design that you want, but here's a design for doing transportation without using Exits ("teleporting/warping"):
viewtopic.php?f=18&t=5138 (Explore and Travel Code by HK)
(this is old code, so it's not the most efficient, as I got confused with some parts of it, but it does work)
and if you need any help on using Lists/Dictionaries:
viewtopic.php?f=18&t=5137 (Using Lists and Dictionaries Guide by HK)
ask if you need any help
----------
about getting the index value:
you could always make your own function to do so