Map Transfer Auto Events 1.0
Shaz
Introduction
This script lets you set up event commands that should be run when entering or exiting a map, using two common events that handle ALL maps.
Using this script, you can dispose of all the autorun or parallel process events on individual maps for "setup" or "reset" tasks, like weather, map tinting, relocating events, etc.
Features
- No need for parallel process events on individual maps.
- No need to reset display (weather, tint) on multiple events or maps when exiting a map - if it's raining in a village, ONE common event will turn the rain off when you enter a building - no need to turn it off on every door or in every interior map
- Condition setup/exit tasks based on progress in game (switches/variables) just like you'd do with a map event
Screenshots
In the example used here, I have an outside map where it's raining and the screen tint is normal, and an inside map where it's not raining and the screen tint is sepia.
Spoiler
How to Use
Copy and paste the script into a new slot in Materials. All methods are aliased, so it can go below all other scripts.
Create a parallel process common event for entering a map, and one for exiting a map.
Give each common event a unique switch, and change the ENTER_MAP_SWITCH and EXIT_MAP_SWITCH constants in this script to refer to the correct switch ids.
Add the following commands to each common event - they will be almost identical:
Code:
Then, in the area indicated by <individual map commands go here> above, add the following block of code for every map where you want something to happen:
Code:
Here are the Enter Map and Exit Map common events for my sample.
For map 12 (exterior), it makes it rain when entering the map, and stops the rain when exiting the map.
For map 13 (interior), it changes the screen tone to sepia when entering the map, and changes it back to the default when exiting (note the longer change time when exiting - this is so it remains sepia while the screen is fading for the transfer).
Spoiler
Script
Spoiler Code:
Or
download here
FAQ
Credit and Thanks
- Credit Shaz
- Okay to use in commercial games - no payment required
Author's Notes
I advise you to use this ONLY for things that need to be done
every time you enter or leave a map. I recommend you don't use this for cutscenes that will only play once (you
could, but I
wouldn't).
本贴来自国际rpgmaker官方论坛作者:Shaz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/map-transfer-auto-events.17401/