MV What is wrong with my event/common events?

So I am trying to make a "bloodstain" mechanic for my game, akin to the one in Dark Souls, where when you die, your held souls get dropped on the ground at the location where you died at and you can go reclaim them again if you get there without dying and interact with said bloodstain.

I am achieving this by having an event in every map where the player can die, and the event gets teleported to the player's location upon death. This works fine, the event gets teleported, I can reclaim the souls and the event disappears afterwards, and it will appear again if the player dies after claiming them.

The problem is that upon a second death, while the event is still active, the event doesn't get teleported to the new coordinates of the player, and just stays at the first coordinates the player has died at no matter how many times they die.

Here are the related events and common events this whole mechanic works with:
Screenshot_4636.png

Screenshot_4637.png


Common events:
Screenshot_4638.png
Screenshot_4639.png

Screenshot_4640.png

Screenshot_4641.png


The areas that are crossed out in red are unrelated to the logic, and are only animations or other mechanics that already work.
Please take into consideration that I am using Yanfly's Save Event Location plugin to save the location of the event upon changing the map. I don't know if that causes any problems.

I'd really appreciate if anybody can help me figure out the problem here. I would alos like to use this thread for any further problems I encounter with this event.
So, having a look, the 1st page of the event "Reclaim" moves to its location, then self switch A turns on, turning on page 2.

I did do a quick skim, but what turns off the self switch A?

1st page enables the move but then it can't go back to move again unless you turn the Self switch A off.
So, having a look, the 1st page of the event "Reclaim" moves to its location, then self switch A turns on, turning on page 2.

I did do a quick skim, but what turns off the self switch A?

1st page enables the move but then it can't go back to move again unless you turn the Self switch A off.
I managed to fix this, thank you for pointing that out. Instead of using a self swtich I just used another switch called "Placed" for the second page, and this switch gets disabled upon death, in the "Died" common event, then quickly gets enabled by the "Reclaim" event.

The event seems to work just fine, at least on the same map. The event doesn't change location if I die on another map for some reason, but it still gets triggered because I can see it in the corner of the map.
I managed to fix this, thank you for pointing that out. Instead of using a self swtich I just used another switch called "Placed" for the second page, and this switch gets disabled upon death, in the "Died" common event, then quickly gets enabled by the "Reclaim" event.

The event seems to work just fine, at least on the same map. The event doesn't change location if I die on another map for some reason, but it still gets triggered because I can see it in the corner of the map.

So if the "Reclaim" event is on Map 1 but you die on Map 2, then it won't trigger because the move event command doesn't move events between maps.


Also, the event won't trigger on Map 1 until you go to Map 1.
So if the "Reclaim" event is on Map 1 but you die on Map 2, then it won't trigger because the move event command doesn't move events between maps.


Also, the event won't trigger on Map 1 until you go to Map 1.
Yes, I know the events won't move between maps, that's why I have the same event on every map where the player can die on, at 0, 0. My question is why doesn't the event on Map2 move to the coordinates of the player upon death (coordinates which are in the same Map2), while the same event is active on Map1? And how should I go about fixing this?
So when the player dies on map 1, "Reclaim" event moves ok, but on Map 2, the "Reclaim" event doesn't move to the player's location?

I know you changed the switch from self to a normal one. Did you change it for all "Reclaim" events on each map?

What triggers the "Died" common event?

When a player dies on Map2 or any other map that doesn't move "Reclaim" to your location, press F9 to bring up a list of switches and variables and see if they are updating correctly.
So when the player dies on map 1, "Reclaim" event moves ok, but on Map 2, the "Reclaim" event doesn't move to the player's location?

I know you changed the switch from self to a normal one. Did you change it for all "Reclaim" events on each map?

What triggers the "Died" common event?

When a player dies on Map2 or any other map that doesn't move "Reclaim" to your location, press F9 to bring up a list of switches and variables and see if they are updating correctly.
When the player dies on Map1, the "Reclaim" event works correctly, but on a second death, on Map2, without interacting with the event on Map1, the event from Map 2 doesn't move to the coordinates where the player died at. The event in Map2 still works because you can see the sprite, it just doesn't move.

Yes, I changed the switches for all "Reclaim" events.

The "Died" common event is triggered when you lose a battle.

The switches are updating correctly too.

Edit 1:

I have figured out the problem. Upon dying in Map2, the game updates the DiedX and DiedY variables with the coordinates of that map. But the event gets updated once you enter the first map with the event "Reclaim" on it, which puts it at the wrong coordinates that were registered upon the dead in Map2.

So if I died in Map2, I have to go through Map1 to get to Map2 first, but the event updates on Map1 with the registered coordinates from Map2, thus the event on Map2 gets left alone because it was already updated on Map1.

Now, how do I fix this?

Edit 2:

I have figured out a solution that only brings further problems hahahaha...

I have changed the "Reclaim" event's first page to this:
Screenshot_4648.png

And I have added this common event to keep track of the player's current MapID:
Screenshot_4649.png


The problem now is that the "Reclaim" event remains enabled at both, the location the player first died at, and the second location the player has died at. How can I fix this?

@ambr_, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

Damn, that's really "helpful" y'all, you're really "inspiring" a beginner to work on their game by ignoring them, I feel so "motivated" 😀
Damn, that's really "helpful" y'all, you're really "inspiring" a beginner to work on their game by ignoring them, I feel so "motivated" 😀

And that attitude is going to get even *fewer* people to help you.

Just be aware, some people are in different time zones, so I had to do a thing called "Sleep."

But the thing is, no one *has* to help you.
And that attitude is going to get even *fewer* people to help you.

Just be aware, some people are in different time zones, so I had to do a thing called "Sleep."

But the thing is, no one *has* to help you.
Alright bro, my fault for asking for help on the forum that's dedicated to helping people lmao

I want this thread closed since it's literally going nowhere, but I've already reported that I want it closed like hours ago and it still hasn't happened...
again, that is because this is a forum from a rather small community where no one is paid to watch it.
every moderator here works for free in their free time instead of working on their own games.
and that means that with sleep, rest and regular other work (to pay their rent), it can take several hours to a day or two before a moderator checks the report queue.

and you are asking for free advice, then it is considered polite to wait until someone who can help has the time to do so.

Closed at OP's request.

Original thread: https://forums.rpgmakerweb.com/threads/what-is-wrong-with-my-event-common-events.183516/