[HELP]Event colliding with Event(?)

Hello!
I'm using MOG_Crono_Engine in ABS mode.
I'm trying to make the Player pick up a Box and throw it at an Enemy using the MOG_PickupTrow System, causing damage!
Unfortunately, I can't do it!
Unlike Bombs, which cause damage to both Enemies and the player, I only want the damage to be against the Enemies! I've already tried using the codes contained in some posts scattered around here:

In the link below, AquaEcho provided a code where it is possible to cause damage to the Enemy's HP, but I couldn't make it work, because I don't know exactly where to put this code and everywhere I put it it didn't work:
https://forums.rpgmakerweb.com/inde...th-this-script-call-for-chrono-engine.169183/

In the Post below they explain that it is possible to use some codes to make NPCs allies and thus cause damage to Enemies, but I also couldn't understand where to fit these codes!
https://forums.rpgmakerweb.com/inde...o-abs-engine-npc-that-attacks-enemies.134503/

Well, if anyone who understands and uses Mog plugins can help me with this issue, I would be very grateful!
In the link below, AquaEcho provided a code where it is possible to cause damage to the Enemy's HP, but I couldn't make it work, because I don't know exactly where to put this code and everywhere I put it it didn't work:
That's not a helpful description of the problem, because that code should work literally anywhere you put it, so long as you put in correct numbers for the event ID and the damage done.

In the Post below they explain that it is possible to use some codes to make NPCs allies and thus cause damage to Enemies, but I also couldn't understand where to fit these codes!
The post quite clearly says you put it in the bullet's (or box's) move route.

If you can't get these things to work, you need to do more than just say "nothing works." You need to show us screenshots of what you've tried and describe what happens instead.
Thanks! Let's go!
1-I have a Parallel Event: It controls the X and Y Position of the Box [Event#18].
2- When this Box is in the X Position and Y Position of the Enemy Event [Event#10] It should cause Damage:

The Parallel Event is like this:

Code:
If : Script : $gameMap.event(18).x == $gameMap.event(10).x && $gameMap.event(18).y == $gameMap.event(10).y;
►Show Animation: Event#10, HitStar
►Plugin Command: this.character(10)._user.battler._hp-=200
►Set Movement Path: Event#10 (Wait)
:                 : ►Step Back
:                 : ►Step Back
►
:End


1-I have a Parallel Event: It controls the X and Y Position of the Box [Event#18].
No, it doesn't. It's checking the position of the box, but nothing in there is making it move.

The Parallel Event is like this:
I don't know that it's breaking anything, but there should not be a semicolon at the end of your Conditional Branch script.
The Box moves when the Player picks it up and throws it at the Enemy. The Side Event above only checks if the Box and the Event are in the same X and Y position.
If Yes, it will cause damage in Event #10!

However, I noticed here in a test that when I put only 1 Condition in the Side Event (same as in the Image above), the Enemy's HP is actually reduced, but when I add more than one Condition, nothing else happens!

The damage stops reducing the HP of Enemy #2!

In addition, even if I cause the enemy's total HP damage with the Boxes, he doesn't die!

I don't know what I did.
But now the damage isn't even being done to Enemy #10.

►Plugin Command: this.character(10)._user.battler._hp-=200
This looks like it should be in a script, not a plugin command.
Hi Mac! I tried it here via script and the command really works! Thank you! I did some tests and now I understand what it does!

Hi Mac! I tried it here via script and the command really works! Thank you! I did some tests and now I understand what it does!
Even if the Target's HP is reset and even if the HP of this Target is negative, unfortunately the Event does not Die (lol)!
I thought that when the Enemy's HP is reset, the Event would "die"!
For those who want to use this command, they need to create some Conditions with Variables and when the HP of the enemy Event Variable reaches zero, it disappears!
In addition, the Player cannot see the Damage on the Screen unless they use Messages to check the Variable!

I spent the night thinking about how to do something that uses the MOG System and now I finally did it! I'll leave here a short summary of how to make an Event collide with another Event and cause damage to the Enemy and the Player can see the Damage like ABS!
In the example below, I will use a Box to only cause Damage to the Enemy when it is thrown at him:

1-Create the "Box" Tool in the "Tool Map";
Place the Script Call in the Movement Route: this._tool.user=$gamePlayer
Place the comments as in the image below, you can play with the comments to see if they fit what you want!

[SPOILERS]
1728999116098.png

[/SPOILERS]

2-On the Map where the Player will perform his actions and etc...
Create as many Box Events as you want and in each one, create two tabs.
In Tab 1: Place the Comment: "trow : "x" (where "x" is the value that your box can jump)
[SPOILERS]
1728999172196.png

[/SPOILERS]

In Tab 2: Mark the Local Switch as "A"
In the Movement Route place the Script Call: "this.act(x)", where x is the Box Tool Event created in the Tool Map
Adicione o comentário: enemy_id : x (Onde "x" é o ID do inimigo)
[SPOILERS]
1728999287032.png

[/SPOILERS]


3-Create the Enemy Event; In my case I placed the Enemies in the Priority "Above the Character";

4-Create a Parallel Event, here I named it "Box Control"!
Here it will be more work depending on how many Enemies and how many boxes are on this Map! As an example, I created 2 Enemies and 13 Boxes in my game, giving a total of 26 Conditions! Furthermore, when this Box touches the Enemy it is destroyed and will cause damage!
Use the Script Call and put the following Code:

Code:
$gameMap.event(18).x == $gameMap.event(10).x && $gameMap.event(18).y == $gameMap.event(10).y;


Explaining the Code: The Number 18 is my Box Event
The Number 10 is my Enemy Event
Here the code checks if the two Events occupy the same X and Y position.
If Yes, it will activate the SefSwitches "A" of the Box Event;
Shows an Animation;
Sets a wait time to be able to visualize the Animation;
The Shatter Event is a plugin that destroys the Events, it also belongs to MOG, activate it and finally Change the Position of the Box Event to avoid any problems.
Note: Turan said that there is no need for this semicolon at the end of the code, it works for me, test it and see how it behaves for you!

Conditions:
[SPOILERS]
1728999398933.png

[/SPOILERS]

Original thread: https://forums.rpgmakerweb.com/threads/help-event-colliding-with-event.172595/