Is there a function or a way to determine if the room you are in is indoors?
Printable View
Is there a function or a way to determine if the room you are in is indoors?
Your room exits always a re a good way to see if you're indoors or not...
Obvious paths: == outdoors (which I have highlighted green),
Obvious exits: == indoors.
Hope this helps.
Got it. Thanks so much for the quick reply.
This actually gave me some direction and I found this in lich.rbw.
def outside?
if XMLData.room_exits_string =~ /Obvious paths:/
true
else
false
end
end
so it looks like a simple query of outside? will return true or false.