How to use 'Common Events'?

How do you use common events? I mean, I know how regular events go, but what about common events?


Probably an event not placed in the world, but I don't know how to use them. Please help?
Lets say you want a skill to play a sound effect every time you use it.


you would make the skill call a common event under "traits" that plays the sound effect.


Example.


In my current game I have an orb you can use to fly around on.


This is how this common event is set up, so when I see the orb on the map, that orb triggers this common event so you can fly around!


2016-07-11.png
Common events are events that are ... common.


Let's say you have something that you want to do on lots of maps.  You could create the event on lots of maps (or copy/paste the event many times on the same map).  But then if you wanted to change something about it, you would have to go to every one of those events and make the change numerous times.


Common events are a way around that.  You add all the commands to the common event that you'd want to run in all those events, and then in those events you just do a Call Common Event command and select your common event with all those commands.


When you use the Call Common Event command, the common event behaves as if it were a part of the calling event - it has that event's id, the map id that the calling event is on, etc.



To expand on Skunk's explanation, you can also set up a common event as a trait on an item, so whenever that item is used, that common event will be called.  As an example, you might have a 'map' item, and when you use the map item from inventory, you want a picture of the map shown.  You'd attach a common event to the 'map' item, and in the common event you'd have a Show Picture command.


Finally, you can set a common event as either an autorun or a parallel process, conditioned by the switch - maybe for something that could happen on any map, and you're not sure when/where it's going to happen.  For instance, waiting for the player to press a certain button and you want to execute a series of commands when the button is pressed.
Damn you Shazzy Jazz and your perfect explination >:(


lol
nah - I just talk more than you do 😉
Also this is a good read too if you wanna really delve deep into what all you can do with common events. (its official 😉 )


http://blog.rpgmakerweb.com/tutorials/understanding-common-events/


Well at least you are good at it @Shaz lol
Common events are events that are ... common.


Let's say you have something that you want to do on lots of maps.  You could create the event on lots of maps (or copy/paste the event many times on the same map).  But then if you wanted to change something about it, you would have to go to every one of those events and make the change numerous times.


Common events are a way around that.  You add all the commands to the common event that you'd want to run in all those events, and then in those events you just do a Call Common Event command and select your common event with all those commands.


When you use the Call Common Event command, the common event behaves as if it were a part of the calling event - it has that event's id, the map id that the calling event is on, etc.



To expand on Skunk's explanation, you can also set up a common event as a trait on an item, so whenever that item is used, that common event will be called.  As an example, you might have a 'map' item, and when you use the map item from inventory, you want a picture of the map shown.  You'd attach a common event to the 'map' item, and in the common event you'd have a Show Picture command.


Finally, you can set a common event as either an autorun or a parallel process, conditioned by the switch - maybe for something that could happen on any map, and you're not sure when/where it's going to happen.  For instance, waiting for the player to press a certain button and you want to execute a series of commands when the button is pressed.

Thanks Shaz... again. 

Damn you Shazzy Jazz and your perfect explination >:(


lol

Really good the forum community is helping.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-common-events.65162/