User Tools

Site Tools


lua:room:exits

Type: array of string

List of exit names in the room. The corresponding EXIT object can be attained by indexing the ROOM object with this exit name.

for _,exname in pairs(mob.room.exits) do
  local ex = mob.room[exname]
  say(exname.." leads to "..ex.toroom.name)
end
You say 'east leads to The Square Vortex'
You say 'west leads to Smullens Plaza'
lua/room/exits.txt · Last modified: 2017/02/20 14:29 by vodur