Thanks @dave1707. One more thing I need to check after looking over integrating what I’ve already done… I had rooms set up in a table like this…
room[1]={n=4,s=0,e=2,w=0,u=0,d=0,name="FOREST",desc="#1 You are lost in a dark, dense forest."}
which meant I could easily reference the room number eg north here takes you to room[4].
I discovered that I can’t use labels for directions so I need to change the direction data to just numbers eg 4,0,2,0,0,0. But what has me puzzled atm is how best to now reference the appropriate room if they are just called rm1, rm2, etc. So do I need to include a room index in the data as well, so it becomes
function Room:init(number, name, mapData, objects, description)