mapId = mapId.clamp(1, 999);
if (Yanfly.PreloadedMaps[mapId]) {
var map = Yanfly.PreloadedMaps[mapId];
if (!map.events[eventId]) {
if ($gameTemp.isPlaytest()) {
console.log('Map ' + mapId + ', Event ' + eventId + ' does not ' +
'exist so a copy cannot be made of it.');
}
return;
}
// SUCCESS, Set Up the Copy Information
this._copiedEvent = true;
this._copiedMapId = mapId;
this._copiedEventId = eventId;
this._pageIndex = -2;
this.findProperPageIndex();
this.setupPage();
this.refresh();
mapId = mapId.clamp(1, 999);
if (Yanfly.PreloadedMaps[mapId]) {
var map = Yanfly.PreloadedMaps[mapId];
if (!map.events[eventId]) {
if ($gameTemp.isPlaytest()) {
console.log('Map ' + mapId + ', Event ' + eventId + ' does not ' +
'exist so a copy cannot be made of it.');
}
return;
}
// SUCCESS, Set Up the Copy Information
this._copiedEvent = true;
this._copiedMapId = mapId;
this._copiedEventId = eventId;
this._pageIndex = -2;
this.findProperPageIndex();
this.setupPage();
this.refresh();