Following https://forums.rpgmakerweb.com/index.php?threads/plugin-commands-using-event-id.141662/post-1225017
Where Casper667 suggestsde-anonymizing removing arrow functions from your plugin command so that keyword this will function better,
I wrote my registration like this:
But my function
is not called (i.e. the buzzer sound doesn't play.)
Where Casper667 suggests
I wrote my registration like this:
PluginManager.registerCommand(pluginName, "TurnInAQuest", Game_Event.prototype.TurnInAQuest);But my function
Game_Event.prototype.TurnInAQuest = function(){ SoundManager.playBuzzer(); $gameMap.event(this._eventId).getQuestHub().TryTurnInQuest();}is not called (i.e. the buzzer sound doesn't play.)