What are tile events and how do they differ from "ordinary" events?

I was glancing through Game_Map.prototype.* functions (rpg_objects.js) to find out a simple way to determine if a tile is already occupied by an event or not; and I found two interestingly similar functions:

Code:
Game_Map.prototype.eventsXyNt = function(x, y) {
    return this.events().filter(function(event) {
        return event.posNt(x, y);
    });
};

Game_Map.prototype.tileEventsXy = function(x, y) {
    return this.tileEvents.filter(function(event) {
        return event.posNt(x, y);
    });
};

What are tileEvents and how do they differ from "ordinary" events?
Tile events are events where the sprite comes from the tileset rather than the Characters folder. These are drawn flush with the grid rather than a few pixels above, but other than that, they work the same way as other events.

You could find that out by looking up Game_Map.prototype.tileEvents to see what events it selects - you'll probably find it looks for those that have tileId = 0.
It would seem that tile events are events with tileId > 0 instead:

Code:
Game_Map.prototype.refreshTileEvents = function() {
    this.tileEvents = this.events().filter(function(event) {
        return event.isTile();
    });
};

Code:
Game_CharacterBase.prototype.isTile = function() {
    return this._tileId > 0 && this._priorityType === 0;
};
yes, you're right.

Original thread: https://forums.rpgmakerweb.com/threads/what-are-tile-events-and-how-do-they-differ-from-ordinary-events.84852/