Problems with Event Spawn / Event to Event Touch

Hello, community,


currently i am working on an Avatar Fan project. (RPG Maker MV)

Here I wanted an out-of-battle elemental system to be used.

Means players press "K" and a flame spawns and a corresponding events react to the flame.


Example: I press the appropriate button -> Fire Event Spawns and touch the Torch-Out event, it activates its Self-Switch and becomes Flame ON.


Currently I am ready to create events with the YEP-EventSpawner Plug-In from Yanfly Events, which spawn in front of me and despawns after 2 movements.


Common Event Feuer Spawn.png


Now I thought there would be massive plug-ins for event to event touches, but here I found only 1 plug-in which did not work.

Now my questions would be, how do I implement this system best?


- Do you know another way to implement this elementary system?

- Maybe there is a good plug-in for Event to Event touch?

- Is it possible to save the X,Y position of the flame via variables and then compare it with the event to be reacted?


Many thanks in advance
The event to event touch system for my game is currently unusable in any other context, but I've been thinking a simple working event to event touch plugin should exist. I could adapt my system to work without dependencies but I'm busy so it'll take a day or two probably!
Found the solution.
i put this code on torch event, on name == "change me" i put the Fireevent name.

Code:
Code

    var otherEventsOnThisTile = $gameMap.eventsXy(this.character(0).x, this.character(0).y).filter(function(e) { return e !== this.character(0) }.bind(this));
    var mapid = $gameMap._mapId;
    var eventid = this._eventId;
    var key = [mapid, eventid, 'A'];
    if (otherEventsOnThisTile.length > 0 && otherEventsOnThisTile[0].event().name == "change me") {
      $gameSelfSwitches.setValue(key, true);
    } else {
      $gameSelfSwitches.setValue(key, false);
    }

Original thread: https://forums.rpgmakerweb.com/threads/problems-with-event-spawn-event-to-event-touch.121721/