How to have common events run all the time

if i turn on a common event does it stay on till i turn it off? or do i have to have every map with a turn on common event ? or only once?
When your Common Event is a "Parallel Process" or "Autorun" then it will auto-repeat infinitely as long as its Switch is ON.
switches do NOT change from alone.

so if you turn on a switch it will stay on until either you or a plugin that is told to use that switch turn it off.

the only thing that happens to a parallel process common event on map change is a restart from the top. And that is only a problem if you're counting waits or something similar.
what about adding items to your inventory ? how would that work o.o or equipment checking ?

like how would i add this to common events? so you only get one book instead of ever 20 xp item you get one ?
Please try to use fuller sentences and describe in more detail what you are trying to do.

You say
what about adding items to your inventory ? how would that work o.o or equipment checking ?
but then show an event where you both add an item to the inventory and check if the party already has it. So what are you asking about that you don't already understand?

like how would i add this to common events?
You paste it into a common event instead of in a map event. Again, it is not at all clear what you're asking.

so you only get one book instead of ever 20 xp item you get one ?
This also doesn't make sense in the context of the event you show. Presuming "ever" is supposed to be "every," there isn't anything in that event that would currently make you receive the book every 20 xp. It looks like it checks the Harvesting XP variable and if it's >= 20 it gives you a book then turns on Self Switch A (which is presumably the second page of the event that does nothing).

This event looks like it should do exactly what you want.

Problems that I see:
- Why is there a wait command after you give the book?

- The Conditional Branch looks weird, but maybe it makes sense with your system. If Harvesting XP starts at 0 and only goes up, then how could they ever already have the book when their XP is < 20? But if you spend the XP on things and it goes back down, I guess that works.

- You should almost never have a parallel event that just runs 60 times a second. There's no way the player's Harvesting XP changes that quickly. Put a Wait command at the bottom of the event so it doesn't contribute to lag in your game.
my problem is if i run into another map with the same event running o.o the game gives me another book D : that why i want it to run as a common event hopping that would fix my problem
You paste it into a common event instead of in a map event. Again, it is not at all clear what you're asking.
What is preventing you from doing this? What is your question?
my problem is if i run into another map with the same event running o.o the game gives me another book D : that why i want it to run as a common event hopping that would fix my problem
If the trigger for you getting a book is "crafting xp >= 20" then it's going to happen every time the event runs unless you either set xp to 0 when a book is added or change the condition to use modulus 20 == 0 instead of >= 20.
If the trigger for you getting a book is "crafting xp >= 20" then it's going to happen every time the event runs unless you either set xp to 0 when a book is added or change the condition to use modulus 20 == 0 instead of >= 20.
i manage to figure it out!!! i was able to add a self turn off switch to the event : D it works as intended but instead of me having to have an event on every map which caused massive issues. its working perfically!! thank you everyone ^^

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-common-events-run-all-the-time.160161/