Issue with an event returning to its starting position...
RPG Maker VXAce SupportI can't erase the event because it removes the bone pile on the ground left over from killing the mob. It is only one enemy in the little room it is in and only has 2 parallel processes on that map so I don't think lag will be a problem, however I am definitely open to doing it a better way or a cleaner way if there is one!
Wrong, look at the event page - you do not erase the event with the bone pile, you erase the other event that transfers the bone pile to the correct place
No matter where I put the 'erase event' (on event tab 2 or 3) the bone pile disappears. All of this is happening in one event. The battle is processed on tab one, tab two is the fade in of the image and the calling of the X/Y location of the bone pile, and tab three is the placing of the event where it fell after it was killed and any time the map is entered again.
This is the part where you go wrong, it is NOT in one event.
Check the screenshot in post #21
The name of the event containing the code with the set event location[EV001] is EV004, because that is NOT your bone pile event. EV001 is your bone pile event, the parallel process with the command to move the bone pile event to another position is a different event, and that different event needs to be erased to prevent the lag of parallel processes
Post #21 was not made by me and is not my screenshot either :\
The event in all my screenshots is EV002.
no, but it showed how to restructure your events if you want to prevent that lag on maps where you can't have dozens of such events running at the same time.
I should also add that my internet is garbage and I can't see the screenshot lol :S
If the image is on photobucket, I can't see it.
Such is life in Nepal.
So if I understand correctly, make a second event as a parallel process that moves the bone pile to the places that it should be and then erase that event, rather than have it take place in a 3rd tab in the same event?
If the image is on photobucket, I can't see it.
Such is life in Nepal.
So if I understand correctly, make a second event as a parallel process that moves the bone pile to the places that it should be and then erase that event, rather than have it take place in a 3rd tab in the same event?
yes, that would allow the events to be moved without permanent parallel processes - especially if you have to move multiple events, because they would then all be moved by that single extre event instead of each needing a parallel page to move itself.
Ok well whatever I am doing is wrong because I can't get this to work in two events. I can get it to work all as one event containing two parallel processes with 3 event tabs (as I posted in screenshots before) but anything outside of that just doesn't work for me >.<
I actually think it is far simpler and more straightforward just to use the script by Shaz. It does the whole job for you.
Since you cannot see the images, I have re-upload it to imgur
Keep your current event for the skeleton (the one you posted on post #11), BUT change the event on page 3 to action button instead of parallel processing
Create a separate parallel processing event to set the location of the skeleton, then erase the parallel processing event.
I have also included the fade in and fade out command for the transfer event for a better effect.
http://imgur.com/R55qaSB
If this fails, I can always upload a quick demo somewhere. The file size should be around 1.5 MB

Imgur works!
Ok I did exactly as you said. Kept the events the same, changed tab 3 to action button and added a separate event as you posted in that picture but now it defaults the live skeleton to the top left corner of the screen which is outside of the room in which he is supposed to spawn in...
Ok I did exactly as you said. Kept the events the same, changed tab 3 to action button and added a separate event as you posted in that picture but now it defaults the live skeleton to the top left corner of the screen which is outside of the room in which he is supposed to spawn in...
I can't tell what is the problem without looking at your event page.
I hope mediafire works for you
https://www.mediafire.com/?hggy3wk1uu773c2
I hope mediafire works for you
https://www.mediafire.com/?hggy3wk1uu773c2
Then you need a switch to make sure the relocation is only triggered after the skeleton dies - or if the coordinates are only remembered after the skeleton died, use one of the coordinate variables greater zero as the condition instead of an additional switch.
Eeeep, thats the problem
Since the parallel event has no set condition before it takes place, then it will run whenever the user is on the map. Even if the skeleton is still alive.
That means we still need to use a switch in the main event, then set it as the condition for the parallel event lol
@DoctorMolotov
The skeleton appeared at the top because the values stored in those variable before the skeleton died is 0 and 0. So the set location moved the event to position 0, 0 on the map.
Edit: typo... should be "on the map" instead of "not on the map".. such derp
Edit #2: A picture for the main event + parallel processing event: http://imgur.com/uOiXECc
FINALLY IT IS WORKING.
The control switch is what made all the difference. I had tried it before but was using it incorrectly so therefore discarded it again and went on to other things to troubleshoot.
Immense amount of thanks for everyones help here. You guys are awesome!
Sorry if I frustrated you hahahaha 😛
/thread
PS ksjp17 - I tried the script but it kept crashing on me or not working either... I'm gonna slowly get into scripts but right now I'm not gonna spend too much time on it. This single even was frustrating enough hahaha. Thanks though!
Original thread: https://forums.rpgmakerweb.com/threads/issue-with-an-event-returning-to-its-starting-position.46007/