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:
What are tileEvents and how do they differ from "ordinary" events?
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?