设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
返回列表
+ 发新帖
查看: 266|回复: 0

[转载发布] Map Transfer Auto Events

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    昨天 03:27
  • 签到天数: 222 天

    连续签到: 1 天

    [LV.7]常住居民III

    9102

    主题

    893

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    64916
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    74941

    灌水之王

    发表于 2026-8-2 10:05:22 | 显示全部楼层 |阅读模式
    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/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x

    帖子地址: 

    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-10-22 00:57 , Processed in 0.124360 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表