Erase Event ???

● ARCHIVED · READ-ONLY
Started by PaladinHeart 8 posts View original ↗
  1. Well I was under the impression that using "erase event" would remove the event, but only until the map is loaded again.
    BUT I have also just read that things happen differently for you as you are playtesting. I have been using the fact that these events reappear as a feature, but now I need to know. Will the events respawn for players who leave and re-enter the map?

    Pretty much, I want the event to despawn when interacted with, and then respawn whenever the player re-enters the map. Kindof like how enemies, bushes, etc.. respawn in Zelda games. I'm also using self switches with the events, and I'm hoping that "erase event" will reset those as well. Someone please let me know if any of this is not the case. Thanks!
  2. Yes, erase event resets the event upon teleporting back.
  3. I am not clear about the relationship between Erase Event and your self switches. Normally a self switch moves an event on to another page, and it is that page which will be active. Perhaps a screenshot of one such event might make this clearer. Please use Alt+PrtSc so that it takes a shot only of the event window, not your whole desktop.
  4. Self switches don't reset when you leave and re-entera map, so if you want something to respawn, erase event is the way.
  5. Well, to be more precise-
    The first page of the event automatically sets a random self switch. This then sends the event to a different page.
    The other pages all basically do different things when the player interacts with them, BUT they all finish by erasing the event.

    So, when the player leaves the map and returns, will the event start over on the first page? (which would re-randomize the event)
    OR, will it simply go back to the page it was first randomized to? If the self switch is not reset, then it would be stuck.

    I'm using a lot of these types of events, so I don't really want to have to use a different variable for each one, but I suppose that would solve the problem if the self switches stay the same.
  6. Since you used a self switch already, when you re-enter the map, it will still be on the page that uses that self switch even if you use erase event. To reset it, you need to reset the self switches too, preferably upon entering the map
  7. Thanks for letting me know. I'll see what I can do to reset the switches. Unfortunately it won't be an easy fix.

    Edit: Actually I think I just fixed it by adding "turn off switch A, B, C, and D" just before each event is erased. Since I used common events (me so smart) it was very simple to add in. Hopefully this will fix the issue. Thanks everyone. :)
  8. Idk how VX did it, but in Ace its just a matter of like a parallel process event in that same map doing this script call

    $game_self_switches[[mapid,eventid,switch]] = false

    do it for all combinations, and make sure you erase the parallel event as the last command