Hello,
Does anyone know how to make this script interpret (this.eventId()) as well as a eventId number? It's from Moghunters' Pixi Filter plugin.
Thanks in advance!
Does anyone know how to make this script interpret (this.eventId()) as well as a eventId number? It's from Moghunters' Pixi Filter plugin.
Code:
Game_Interpreter.prototype.setFilterEvent = function(command, args) {
var shatterType = -1;
var event_id = 0;
if (command === "filter_event_id") {
event_id = Number(args[1]);
filter_id = Number(args[3]);
};
$gameMap.events().forEach(function(event) {
if (event.eventId() === event_id) {
event._filterData = [true,filter_id];
$gameSystem._pixiFilterRefresh = true;
};
}, this);
};
Thanks in advance!