Hello,
I'd like to exchange an event location with another event designated with a variable, rather than the drop down list provided in the editor. I looked through the script call spreadsheet, but it didn't have anything for that specifically. Anyone know what it is?
Thanks!
EDIT: By the way, I found this in rpg_objects.js, but have know idea how to implement it:
I'd like to exchange an event location with another event designated with a variable, rather than the drop down list provided in the editor. I looked through the script call spreadsheet, but it didn't have anything for that specifically. Anyone know what it is?
Thanks!
EDIT: By the way, I found this in rpg_objects.js, but have know idea how to implement it:
Code:
// Set Event Location
Game_Interpreter.prototype.command203 = function() {
var character = this.character(this._params[0]);
if (character) {
if (this._params[1] === 0) { // Direct designation
character.locate(this._params[2], this._params[3]);
} else if (this._params[1] === 1) { // Designation with variables
var x = $gameVariables.value(this._params[2]);
var y = $gameVariables.value(this._params[3]);
character.locate(x, y);
} else { // Exchange with another event
var character2 = this.character(this._params[2]);
if (character2) {
character.swap(character2);
}
}
if (this._params[4] > 0) {
character.setDirection(this._params[4]);
}
}
return true;
};