I'm looking through the scripts but don't see where the star tile-passage is handled (flag 0x10)
The one that draws a sprite behind a tile.
Is this available in the ruby scripts?
Game_Map, starts at line 438 with def check_passage.
Actual placement of the tile (z-index) is handled in the inaccessable part of the Tilemap class. You can't get to it.
In addition to the above check_passage info, if you want to change it in-game, you can change $game_map.data[x, y, z] to alter those bits. You can also use that to check what it's set to.
That would make sense.
In order to have a character appear behind a tile while appearing in front of other tiles, while using the same z-level for the character sprite, you must have different z-levels for each tile.
Since there isn't actually a way to specify tile settings for each individual tile on the map itself, additional scripts will be required to introduce this functionality.
I'll ask around for the Tilemap structs and see if it would be easy to just set the z-values, cause then I could do something similar to the collision map script where you specify whether a particular tile on the map (and not the tileset) should be placed in front or behind the characters.