Area scan function

Hi there everyone, it’s nice to meet you.

I am looking into putting my concept into fruition, and I’m kind of wanting RPGmaker to be my engine of choice. I’m in it for the long haul, and I know I need to start small and I will, but I figured I should ask before I waste the next few months learning the ropes only to find out a core element I’m wanting to include is impossible.

Without revealing too much, my game relies heavily on a ‘scan area’ function that can be used frequently as you walk around to locate items, individuals or landmarks; think Red Dead Redemption 2’s ‘Eagle Eye’ or Lethal Company’s scan function—you hit a button and within a small area, whatever is around you can be highlighted or labeled for you to then walk up and investigate it. I was wondering if anyone thinks that this is feasible in any way?

Thank you for your patience .
I got a bit similair to golden sun bit.
but scanning like yours is something I need to check as I got a few ways
on how to accomplish it, but I need more info so I can test to see if it works.
You would need a little bit of scripting but you would just define an area around the player then sample every tile in that area to check for either events with a certain notetag or region ids
Welcome!

The easy answer is yes! You can make RPG Maker do almost anything you want with the right knowledge. They may even already be a plugin that does something similar, I’m not sure.

But I can think of a way that I would try this based on a skill or spell or item. You can easily cause “hidden” Events to appear based on conditions by using a simple script to turn self-switches for any Event on or off.

I don’t even think it would be that difficult. But it does require that you learn how to use the engine and probably some simple scripts.

So again, yes.
It would be easier to make the scan affect the current map. Player uses scan ability > flip switch > have events with a second page and the switch as a condition.

If you wanted a radius around player to be affected it's gonna require a few variables and math, and possibly a few script calls.

But all doable in rpg maker. Good luck
It would be easier to make the scan affect the current map. Player uses scan ability > flip switch > have events with a second page and the switch as a condition.

If you wanted a radius around player to be affected it's gonna require a few variables and math, and possibly a few script calls.

But all doable in rpg maker. Good luck
Oh yeah. I’m remembering parts in Yume Nikki that evidently worked that way. This would be a good approach if I can’t figure out a more AOE-like way to do it. Thank you!

Welcome!

The easy answer is yes! You can make RPG Maker do almost anything you want with the right knowledge. They may even already be a plugin that does something similar, I’m not sure.

But I can think of a way that I would try this based on a skill or spell or item. You can easily cause “hidden” Events to appear based on conditions by using a simple script to turn self-switches for any Event on or off.

I don’t even think it would be that difficult. But it does require that you learn how to use the engine and probably some simple scripts.

So again, yes.
Thank you, this is great news. I’m relieved that this idea doesn’t seem as far-fetched as I was expecting


I’ve heard that plug-ins can really open a lot of doors when it comes to this engine. For the sake of future reference, if you have the time, could you recommend some that you think might be useful for this part of the game? It’s okay if not. I appreciate your advice either way.

You would need a little bit of scripting but you would just define an area around the player then sample every tile in that area to check for either events with a certain notetag or region ids
This makes a lot of sense. I appreciate you breaking it down for me, makes me realize I should’ve asked this question and started way sooner lol

I got a bit similair to golden sun bit.
but scanning like yours is something I need to check as I got a few ways
on how to accomplish it, but I need more info so I can test to see if it works.

I can explain a little more.

Imagine it in the sense of a big AOE attack, but instead of dealing damage or knocking things back, it defines whatever it touches. You hit a button on your keyboard or mouse, the ‘AOE’ scan goes out, and if it finds a prop or figure around you in a certain radius, it gives it a label—this would be a person’s name, the name of an item, stuff like that. The point of this being to collect clues, basically. If I can explain this a little better let me know
I use this plugin to define hidden object, similar to golden sun which shows
hidden objects.

this can be required item, objects, names, codes or anything, mine works currently
from the player perspective, and with a big of alternate using images, you can
make the scanning to your liking.

you can use the same indicator and different range of image what you want to scan.
if you want npc's to be labeled, there is a mini label plugins (different once) which
can be used, toggle on/off, visibility range etc.
I use this plugin to define hidden object, similar to golden sun which shows
hidden objects.

this can be required item, objects, names, codes or anything, mine works currently
from the player perspective, and with a big of alternate using images, you can
make the scanning to your liking.

you can use the same indicator and different range of image what you want to scan.
if you want npc's to be labeled, there is a mini label plugins (different once) which
can be used, toggle on/off, visibility range etc.
This is excellent! Very useful I will keep this in my bookmarks. Thank you for sharing 🙂 sounds like you’re putting it to good use too, very cool
on page 2 is the latest version, and the person that also modified it for
MZ use, went far more crazier than I do.
Imagine it in the sense of a big AOE attack, but instead of dealing damage or knocking things back, it defines whatever it touches. You hit a button on your keyboard or mouse, the ‘AOE’ scan goes out, and if it finds a prop or figure around you in a certain radius, it gives it a label—this would be a person’s name, the name of an item, stuff like that. The point of this being to collect clues, basically. If I can explain this a little better let me know
I would do what I said earlier - loop through each tile in an area around the player, check for certain notetags on the events, then use an event label plugin to display that event's name.
Hi there everyone, it’s nice to meet you.

I am looking into putting my concept into fruition, and I’m kind of wanting RPGmaker to be my engine of choice. I’m in it for the long haul, and I know I need to start small and I will, but I figured I should ask before I waste the next few months learning the ropes only to find out a core element I’m wanting to include is impossible.

Without revealing too much, my game relies heavily on a ‘scan area’ function that can be used frequently as you walk around to locate items, individuals or landmarks; think Red Dead Redemption 2’s ‘Eagle Eye’ or Lethal Company’s scan function—you hit a button and within a small area, whatever is around you can be highlighted or labeled for you to then walk up and investigate it. I was wondering if anyone thinks that this is feasible in any way?

Thank you for your patience .
Do you mean on the overworlds maps like in some of the Wild Arms titles? (2 and 3 I believe)
You can also try editing this script for your purpose. It will trigger the event page of any event with the notetag <enemy> within 50 pixels of the player. So you can change the notetag or the radius
Code:
var enemyEvents = $gameMap.events().filter(function(event){return $dataMap.events[event._eventId].meta["enemy"] && !event._erased;});
if (enemyEvents){
enemyEvents.forEach(function(enemy){
hitDist = Math.abs($gameMap.event(enemy._eventId).screenX() - $gamePlayer.screenX()) +
          Math.abs($gameMap.event(enemy._eventId).screenY() - $gamePlayer.screenY());
if (hitDist <= 50) {  // in range?
   enemy.start();
  }
});
}

Original thread: https://forums.rpgmakerweb.com/threads/area-scan-function.167320/