It alredy has this, I've used this lots in making following and moving codes for NPC's. Treat the room as an object, the properties 'north' and such will contain the real names of the joined rooms.
set string <mobmoveto; $objectproperty(#mobroom#; #dirmove#)$>
'Mobroom' is the room the npc is in (got using $loc(#mob[i]#)$ in my game). The 'dirmove' is the direction somebodies moved such as 'north'. Similarly if you want the player seen name of the room use '#(mobmoveto):alias#' once that variable it set.
*slap* Can't beleive you didn't know this, you're ment to be good at asl!!!