How to make an event reset other events?

I'm currently working on a crafting RPG. The player character needs to collect items like wood, stone and herbs from the surrounding area maps.

I'm currently setup now as: The resources are gathered from the event and then the event erases (Erase Event) command.

What I want: The resources are gathered from event and event cannot be triggered again and don't come back even if I leave the map and return like they do with the erase event command, but they do return after I sleep at an Inn or Tent (Inn Event).

Basically I want the resource spots to restore after I trigger the Inn Event and then they restore. I tried using the Self-Switch Command to A at the end of each resource grab and making them stop with that, combined with a script that restores them by reverting all the self-switches in a map to not be A and make them available again. The thing is, I don't want to do it for every event on a map and I don't want to have to create a script that involves every individual event from every map to revert back every event's self-switch.

Do y'all have any tips?

I've moved this thread to MV Support. Thank you.

Sure, use https://galvs-scripts.com/2016/05/14/mv-event-spawner/ to spawn the events in. When the player activates the event set it to despawn. Then when the Inn Event happens, set it to spawn the nodes again. For added fun you can even setup regions and have them randomly spawn in those.
I can imagine 3 different solution ways:
1.
The easiest solution would be to use Self Switch A exclusivly for your Resources. There are 3 other Self Switches you can use
for the other Events.
2.
You could use a Self Variables and more Self Switches Plugin.
http://www.yanfly.moe/wiki/Self_Switches_&_Variables_(YEP)
Transform a normal Switch into a new Self Switch by naming it properly.
Than use that Switch for the second Eventpage condition of your Resources.
Let your Inn Event call a common Event and in there we would need to figure out a Scriptline or block
to deactivate the self switch for all those events on different maps, should be similiar to what you allready have.
3.
You did not want to make big event with deactivating all the single switches for all Events, there is a way to slightly shorten that.
When you use the Inn, turn switches On, for every Map Id one Switch, now nexttime you enter a Map, that switch is pagecondition for a parallel Event.
Parallel Events Eventcode: Wait 4 Frames, Turn Switch for this Map Off
But that Switch is also Eventpage Condition for the Last Eventpage of all your Resource Events and on Parallel.
Eventcode for Resource Events: Turn Self SwitchA off and Wait 60 Frames.
This works very well because the Events are only Parallel for around 1 Iteration and than the parallel process is ended again, but iam not sure this could be a litle bit to dirty for mobile phone games, would need testing.

Not sure if there are more possible Ways.
You could have every event that gets harvested append its event and map ids to a list stored in a variable, then turn itself off with self switch a.

When your character sleeps at an inn, the code goes through and flips switch A for every event in the list, and then clears it.
Thanks for the posts. I can work with these.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-event-reset-other-events.113661/