i still cant find it T^T
def isOutside? # Only refresh when it's indoor
isoutdoor=pbGetMetadata($game_map.map_id,MetadataOutdoor)
if $game_map && (!isoutdoor or isoutdoor==false)
return false
end
return true
end
Works perfectly, my master.I don't know if you need to check this in an event or you want to make a script, but here's what I'm using to check if the player is outside.
Code:def isOutside? # Only refresh when it's indoor isoutdoor=pbGetMetadata($game_map.map_id,MetadataOutdoor) if $game_map && (!isoutdoor or isoutdoor==false) return false end return true end
So, if you want to check if the player is indoor in an event just create a conditional branch and check isOutside?
Thanks Klein, but I'm still a little confuse..
You mean this?
Code:Conditional Branch: Script: isOutside=true
Thanks Klein, but I'm still a little confuse..
You mean this?
Code:Conditional Branch: Script: isOutside=true