じ☆ve冰风 发表于 2026-8-1 16:12:43

Region Common Events


Region Common Events v1.0
        Shaz




Introduction
        This script lets you paint regions on your map and specify a common event to run when the player walks on or faces a tile with that region id.

Features
        - Common event when you walk ON a tile with a region.
        - Common event when you are FACING (but not ON) a tile with a region.

Screenshots
        n/a

How to Use
        Paste script into a new slot in Materials, below other scripts.

        Paint regions over the map.
        Create common events for each region.
        Add map notes in the following format:
regevt: region_id mode common_event_id
        where
        - region_id is, obviously, the region id you've painted with
        - mode is either on or face
        - common_event_id is the common event to call when you are on or facing this tile

        Mode "on" means the common event will run when you step onto a tile with that region id
        Mode "face" means the common event will run when you are facing, but not standing on a tile with that region id

Examples:
        regevt: 63 on 15
        will call common event when the player walks on a tile with region 63. An example of this would be to play a splash SE when walking in shallow water (paint region 63 all over the water).

        regevt: 62 face 12
        will call common event 12 when the player is facing a tile with region 62. An example of this would be to do something when the player bumps into a wall (paint region 62 along the base of the wall).

Script


Download from pastebin

FAQ


Credit and Thanks
        - credit Shaz

Author's Notes
        Okay for use in free and commercial games


本贴来自国际rpgmaker官方论坛作者:Shaz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/region-common-events.17306/
页: [1]
查看完整版本: Region Common Events