View Full Version : Determine if indoors
Samire
06-13-2020, 10:29 PM
Is there a function or a way to determine if the room you are in is indoors?
Malvadere
06-13-2020, 10:52 PM
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.
Samire
06-13-2020, 11:01 PM
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.