In short: I have 2 maps: 10 and 36. While visiting 36 I want to get all tileEventsXy from map 10. Is it possible?
Below my example script. It will return all tiles for given `region`. I would like to add 2nd parameter, which will be mapId
Below my example script. It will return all tiles for given `region`. I would like to add 2nd parameter, which will be mapId
Code:
/**
* @return array
* returns tiles with available events for given region
*/
Game_Interpreter.prototype.getRegionActiveTileList = function(regionId) {
var tileList = [];
for (var x = 0; x < $gameMap.width(); x++) {
for (var y = 0; y < $gameMap.height(); y++) {
if ($gameMap.eventsXy(x, y).length !== 0) {
if ($gameMap.regionId(x, y) == regionId) {
tileList.push({x : x, y : y});
}
}
}
}
