Correctly accessing peoples minds

Hey cool cats,

I've got an interesting one for you which I wanted to pick some brains and see what other methods there are for this to work

So I have an idea where the player can access peoples minds see a few of their memories. I then asked myself whats to stop the player doing it to NPCs too and thought it would be a nice touch if nearly everyone was accessible. Even if most NPCs would basically have generic memories and nothing too special. (A select few may have some interesting easter egg memories)

My predicament is, how do I do this without using a ton of switches?
One idea was to basically make multiple copies of the same map and just change the events that trigger the memories. But that will be A LOT of duplicate maps lol. Easy resolution but I'm wondering if there is a more tidy way?

Self switches would only work if the memories play exactly where you are, but I'm wanting to transport the player INTO their heads. So I don't believe self switches would work.

I did think variables but my knowledge is not strong with variables yet. If I kept plussing and minussing numbers to get the specific NPCs memories, I dont see how it would work. Seeing as you cannot predict what characters, if any, the player would access.

Currently sitting on the duplicate maps idea but I'm open to anything better
I did think variables but my knowledge is not strong with variables yet. If I kept plussing and minussing numbers to get the specific NPCs memories, I dont see how it would work. Seeing as you cannot predict what characters, if any, the player would access.
how is the player accessing the memories? it sounded like to me that youd just use a conditional branch + some other criteria to determine if the player is going to talk or mind read, and in the latter case transport them to that npc's mind map. the only variables i think youd need would be the location data to return the player to the exact spot they started

Easy resolution but I'm wondering if there is a more tidy way?
if most npcs are minor then you could fake it a bit by just showing a picture of black background or a basic map/background that spans the screen, plaster the npc's sprite/bust/whathaveyou on top and then have a textbox show their thoughts. you wouldnt need duplicate maps but youd need to have some pictures instead.
it reminds me of of golden sun that has this mechanic.

a good way is to use galv_bubble message, change arrow to a cloud based,
so you can use text or variable array to make it true when seen it.

than use that array index to detemine the message (no switches need).

there are a few ways you can do it as well, but it really depends on the entire mechanic.
@Robro33 @ShadowDragon

So the full idea is is based around magical keys. So the player would use this specific one behind a character to "unlock their minds" so to speak. The key will remove you from your physical body and transport you into the hosts mind. Leaving both of your physical bodies frozen in place. (But maybe with a stone expression or drooling face)

When inside the characters head you are in a hallway of doors. Each door opens to a specific memory the host has, allowing you to watch it in real time. (Sorta like inception but not dream related)
The key will also allow you to lock the doors to those memories, forcing the host to temporarily forget them. Or unlock memories that the host may have supressed/forgotten.

A few examples of its use are:
• Key characters who refuse to tell you anything can be infiltrated this way to gain information for example.
• If someone is traumatised and unable to speak, you can see what recently happened.

• Or maybe a bit like Detroit become human, if you are tracking someone, you can access a bunch of NPCs recent memories to see if they saw the person you are tracking and where they are headed.

So ultimately the aim is to make it very visual

You highlight a good point though about getting the player back to the same spot! With a singular map I can see that being an added issue

With duplicate maps they would all be linked to their respective hosts, so getting back wouldnt be a problem if I did it that way I guess
Alundra enters a dream link into a host to save them, which has a different map.

you can or could make a host brain its own map for this, so you have more
control over the host variables/switches (depending how many there are).

it can be complicated if lots of stuff is going on though with the doors to
lock/unlock and conditional branching of the host to pull this off.

I do like the idea though, but I think your better off with variable arrays to
make this work.

I have a plugin of an event utility, which could help you on this mechanic
easier if you want to go down this road though.

the amount of doors/npc's of this probably require its own variable, so it's
easier to use in a conditional branch.

Original thread: https://forums.rpgmakerweb.com/threads/correctly-accessing-peoples-minds.176739/