Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
Auto Common Events MZ
RPG Maker MZ Plugin
Galv

Introduction
Just a simple plugin to allow more functionality during the game after certain processes.


Features
This plugin allows you to automatically run common events at certain parts of the game process. These are currently:
– after player loads a saved file
– after player saves their game
– when the player transfers to a map
– every time the map scene opens (eg. after returning from the menu or other scene to the map)
– every time the battle scene starts
– entering a vehicle
– exiting a vehicle
– when a game over occurs
– when timer ends

Note: These common events run after any currently active event has finished processing it's commands.

Plugin commands let you specify the common event id's for each. Script calls allow for changing them during game.


How to Use
- Copy the "GALV_AutoCommonEventsMZ.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the 'HELP' documentation (also found in plugin manager) for more details and try the demo if you don't understand.


Plugin
Get it here


Credit and Thanks
- Galv


Terms
Free to use in any RPG Maker MZ project including commercial. Please credit "Galv".
:)
 
Last edited:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
Updated (version 1.1) to include entering/exiting vehicles. I thought that might be useful functionality.
 

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
448
Reaction score
17
First Language
French
Primarily Uses
Did this plugin allow to start a common even when a new game is started?
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
You can run a common event from an autorun event on the starting map.
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,503
Reaction score
729
First Language
indonesian
Did this plugin allow to start a common even when a new game is started?
i think we don't need that feature in this plugin since we can just add autorun event on the first map.

edit: ouch ninja'd by Galv :D :D
nice plugin btw :D.

btw i think you need to add before GameOver common event
 

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
448
Reaction score
17
First Language
French
Primarily Uses
i think we don't need that feature in this plugin since we can just add autorun event on the first map.

edit: ouch ninja'd by Galv :D :D
nice plugin btw :D.

btw i think you need to add before GameOver common event
Of course we can do that. But's I just find that ugly this way. I like the code to be really easy to read.
For me a common even with autostart on a map is less pretty then a common event.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
Updated to 1.3 to add timer end common event. This overrides the default auto-end battle when timer ends in battle if it is used.
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
91
Reaction score
6
First Language
English
Primarily Uses
N/A
1619517956483.png
Hey, I have been using OcRam_Layers to do a simple animated parallax, but I notice when I open the menu then exit that the animation stops. Is this because GALV_AutoCommonEventsMZ is not triggering an event on menu exit, or is it something with OcRam_Layers?
 
Last edited:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
Might be compatibility issue. Did you try putting this plugin below the other one?
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
91
Reaction score
6
First Language
English
Primarily Uses
N/A
Might be compatibility issue. Did you try putting this plugin below the other one?
1619570784148.png
Is the script order wrong? The parallax animates until I open the menu and then close it, it doesn't continue after closing the menu. After some toggling, I have noticed if I have "Map Load Common Event" Seems like this common event isn't working right... If I disable it with a 0 I can open and close the menu and nothing happens... (map is still is animated)
 
Last edited:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
Did you try putting this plugin below the OcRam_Layers plugin?
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
91
Reaction score
6
First Language
English
Primarily Uses
N/A
Yeah, I moved it in front and behind...
1619594571613.png
If Map Load Common Event is "1" then the animation stops on menu exit, if it's set to "0" it does not... More investigation causes the animation to stop after saving but opening the menu fixes this... loading the game works normally...
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
I don't know why running a common event would stop the OcRam_Layers plugin from animating. It doesn't sound like they should interfere with each other at all.
What is in the common event you are running?
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
91
Reaction score
6
First Language
English
Primarily Uses
N/A
I don't know why running a common event would stop the OcRam_Layers plugin from animating. It doesn't sound like they should interfere with each other at all.
What is in the common event you are running?
1619661474039.png
Just one command, "Plugin command: OcRam_Layers, Template Layer and I have noticed that both Map Start and Map Load have issues...
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,373
Reaction score
1,660
First Language
English
Primarily Uses
RMMZ
Without building a demo project with both plugins and testing (which I don't have time for unfortunately), I don't know why the other plugin isn't working, sorry.
 

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
91
Reaction score
6
First Language
English
Primarily Uses
N/A
Without building a demo project with both plugins and testing (which I don't have time for unfortunately), I don't know why the other plugin isn't working, sorry.
It's fine, I was testing to see if I could animate a parallax and separate it on the map through regions and/or terrain tags using OcRam_Layers and Visual Parallaxes VisuStella MZ, even though the test failed it showed that it could work that's when I noticed the animation stopping when I opened the menu... Now I know that it will work, I guess I will need a custom script for that.
 

Latest Threads

Latest Profile Posts

I played Deltarune chapter 2 today! It was great. No spoilers, but I hope one day I can design a world as interesting as Toby Fox and team.
Holy cow, I have made Row Formation work again with OTB!

Now, my devious machinations can finally be born...
finished the second chapter of deltarune today, I gotta say that the 3 years wait was worth it lol

Forum statistics

Threads
115,151
Messages
1,087,677
Members
149,684
Latest member
Dark_OP
Top