roomvnum
Syntax: %roomvnum(number|id)
Same as mapvnum. Convert current filter room number to a virtual room number. The absolute number for rooms ranges from 1 to %numrooms. All of the other room functions require a virtual room number or id, rather than the filter number.
Note: Returns room key if %roommode is set.
Example:
#LOOP %numrooms {#ECHO %roomname(%roomvnum(%i))} This will loop through each room on the map and display the room name.