Is it possible to retrieve the event ID at x position?
Code:
$gameMap.eventIdXy(x, y);$gameMap.eventIdXy(x, y);Window_ActorCommand.prototype.windowWidth = function() {
return 130;
};
Window_ActorCommand.prototype.windowHeight = function() {
return 162;
};Window_SkillStatus.prototype.initialize = function(x, y, width, height) {
Window_Base.prototype.initialize.call(this, x + 20, y, width - 20, height * 2);
this._actor = null;
};<Custom Establish Effect>
var chance = Math.random();
var chance2 = Math.random();
var chance3 = Math.random();
if (this.isPhysical() && target.result().hpDamage > 0 && target.result().critical) {
if (target.isAlive() && chance <= 1.0) {
target.addState(24);
if (target.isAlive() && chance2 <= 1.0 {
target.addState(25);
if (target.isAlive() && chance3 <= 1.0) {
target.addState(29);
}
}
}
}
</Custom Establish Effect><Custom Establish Effect>
var chance = Math.random();
var chance2 = Math.random();
var chance3 = Math.random();
if (this.isPhysical() && target.result().hpDamage > 0 && target.result().critical) {
if (target.isAlive() && (chance <= 1.0)) {
target.addState(24);
if (target.isAlive() && (chance2 <= 1.0)) {
target.addState(25);
if (target.isAlive() && (chance3 <= 1.0)) {
target.addState(29);
}
}
}
}
</Custom Establish Effect>