I don't recall seeing this one (or suggesting it) - hope I'm not doubling up
Description of the Feature:
Code for Implementation:
Mockups:
Why is this feature good?
This feature is great because of the following:
Description of the Feature:
- Get Location Info will allow you to select Player or EV### from dropdown list, in addition to the existing Direct Designation and Designate with Variables options. This is similar to Control Variables > Game Data > Character where you can select the player, 'this event' or a specific event.
Code for Implementation:
Code:
// Get Location Info
Game_Interpreter.prototype.command285 = function() {
var x, y, value;
switch (this._params[2]) {
case 0: // Direct designation
x = this._params[3];
y = this._params[4];
break;
case 1: // Designation with variables
x = $gameVariables.value(this._params[3]);
y = $gameVariables.value(this._params[4]);
break;
case 2: // Designate with character
var character = this.character(param1);
if (!character) {
$gameVariables.setValue(this._params[0], 0); // default value if character not found
return true;
}
x = character.x;
y = character.y;
break;
}
switch (this._params[1]) {
case 0: // Terrain Tag
value = $gameMap.terrainTag(x, y);
break;
case 1: // Event ID
value = $gameMap.eventIdXy(x, y);
break;
case 2: // Tile ID (Layer 1)
case 3: // Tile ID (Layer 2)
case 4: // Tile ID (Layer 3)
case 5: // Tile ID (Layer 4)
value = $gameMap.tileId(x, y, this._params[1] - 2);
break;
default: // Region ID
value = $gameMap.regionId(x, y);
break;
}
$gameVariables.setValue(this._params[0], value);
return true;
};
Why is this feature good?
This feature is great because of the following:
- No need to use additional Control Variables commands to get the location of player or event
- Easier to use

