设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 113|回复: 0

[转载发布] Search Area

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9072

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-27 08:12:03 | 显示全部楼层 |阅读模式
    Search Area

    [/url]

    I have no idea what else to call this plugin, so I hope that makes sense.  This plugin will allow the user to search an area for specific values, i.e. events IDs, tile IDs, region IDs and terrain tags.  Upon finding one of these values, a common event will be triggered.  The "radar" will cover a square area around the specified X and Y coordinates.  The image above shows different sizes of the radar field, according to what number you choose for the radius parameter.

    This is my first plugin, so I apologize if it's buggy or lacking.  Please, let me know if (when) you have an issue.  I'll do my best to fix it.  I'm already embarrassed to have anyone look at the actual code.  I know it's a mess.  I definitely didn't jump in with a full plan, and I ended up learning and adding as I went, so it's pretty chaotic.  I will say, however, I had a ton of fun slapping this together(when I wasn't sobbing because it wouldn't work), and I thought I'd share in case anyone could use it.

    Ideas for how to use:
    I created it so I could spawn an event near my main character without it ending up in a wall or on top of another event.  I think it could also be used as maybe a search ability, where the character can observe their surroundings and find items they might not have seen otherwise.  Or whatever anyone else can come up with!

    You can get it [url=https://github.com/CutePoops/RPGM-MV-Radar-Search/tree/master]here


    ------------------------------------SETUP------------------------------------

    Choose what point you want the radar to spawn from, It could be the player,
    an event, or just a location on the map. You need to store the location's X
    position to a variable, and it's Y to a second variable. Once these
    variables have been set, assign their number's to their corresponding
    parameters.

    Spoiler: Plugin Commands
    The template for the plugins is:

    SearchType ID mapX mapY radius

    The only command that differs is for searching for a Tile ID, since it
    requires layer info:

    SearchType ID mapX mapY layer radius

    You can use only the SearchType to perform a search with the preset parameters.
    If you want to use some parameters, but not all, you can drop them off the end,
    but you can't skip one and enter the next without placing an 'x' in place of
    the parameter you're skipping. This is to keep the wrong parameters from being
    plugged into the wrong spots.

    i.e. GOOD => SearchType ID
    GOOD => SearchType x x x radius
    BAD => SearchType mapX mapY

    ---------------------------------TARGET EVENT---------------------------------


    eventIDMatch [ID] [mapX] [mapY] [radius]

    example: eventIDMatch 13 21 10 2

    This will tell the plugin to search for event ID 13 on map coordinates
    X21, Y10, within a radius of 2 grid spaces.


    eventIDGreater [ID] [mapX] [mapY] [radius]

    example: eventIDGreater

    This will tell the plugin to search for an event with an ID greater than
    the preset value, it will also use the preset values for X, Y, and radius.


    eventIDLess [ID] [mapX] [mapY] [radius]

    example: eventIDLess 10 42 5

    This will tell the plugin to search for an event with an ID less than
    10, on X42, Y5, using the preset value for radius.


    -------------------------------TARGET TERRAIN--------------------------------


    terrainTag [ID] [mapX] [mapY] [radius]

    example: terrainID 1 x x 3

    This will tell the plugin to search for a terrain ID that matches 1,
    it will use the preset X and Y values, within a radius of 3 grid spaces.


    ---------------------------------TARGET TILE---------------------------------


    tileID [ID] [mapX] [mapY] [tileLayer] [radius]

    example: tileID 1 x x 0

    This tells the plugin to search for a tile with an ID matching 1, it
    uses the preset X and Y values, on layer 0, and uses the preset radius size.


    --------------------------------TARGET REGION--------------------------------


    RegionID [ID] [mapX] [mapY] [tileLayer] [radius]

    example: regionID x x x 5

    This tells the plugin to search for a region with an ID matching the preset
    value. It's also using the preset X and Y values, but the radius of the radar will be 5.

    Free to use in commercial and non-commercial games.
    Please, credit as RainbowGrenade or Angela Drake​




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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-22 07:51 , Processed in 0.135297 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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