Item that makes invisible characters and tiles visible with color tone change

So basically, I want to create an item that would do the following on consumption:

1) Make certain characters (or enemies) and tilesets appear. We are going for a sort of sixth sense perception here.

2) Also change the color tone of everything the character sees during that time. I think using a a touch of a blue or purple tint on everything while it's active would be an especially nice touch.

3) After a certain duration, the effect wears off.

Extra Credit - It's possible in the storyline that at some point, the item wouldn't be required anymore. He will just have the innate ability to use it. Would I do this by perhaps making the final item consumed unique and having it turn the flag on without any sort of a time? I would probably prefer, if possible, to have the player be able to just click a button to enable or disable the skill.

I thought of one way to achieve the first three but it's cumbersome, time consuming and probably limiting.

That is to make a copy of all maps color tinted and populated by the invisible objects. The item would transfer the character there and then boot him after a bit. But this is a lot of work and not ideal and requires the item to always transfer to the same x, y on the tinted and then untinted maps so it seems fluid.

Another idea is to use the item to toggle a switch and have that switch make everything appear. I'm very new to Rpgmaker though and thought a little help or at least encouragement that I'm on the right track with my thinking before I go headlong into a particular method.

There are lots of different ways to do a thing, it appears.

This effect is going to be a huge part of the game, so it's important I get it done in a way that is efficient with both resources and time implementation (ex. something that can just make things appear and tint current maps would be much more easily scaled than me having to create alternate maps, etc.)

Sorry, I'm long-winded, but I wanted to make sure I was understood.

The effect should be the character popping a pill, suddenly seeing ghosts and ethereal objects with a blue haze over everything he sees, if that makes sense. When the pill wears off, everything vanishes.

Also important to note that you could have a ghost appear right next to a persistent character. I don't want the living people to vanish, only for the spiritual realm things to appear.

If you made it this far, thanks for your time!
You can use the default options to have events appear and use a tint command for the entire screen - but to change tiles you'll need one of the tileswap scripts (there are two on the master script list, one from Tsukihime and one from Fomar if I remember correctly)


1) Make the item turn on a switch when used


2) make a common event on parrallel process conditioned on that switch, containing a tint screen, a wait command for the duration, another tint screen to change back and then switch off


3) for every event, have two pages (one visible, one invisible) and condition the visible one to the switch for the effect


4) On a map with changed tiles, have a parallel process map event check the switch (once per second, every 60 frames should be enough) and use script commands with the tileswap script to change the predefined tiles when the switch is on and back when it goes off.


It'll be tricky to make everything fit consistently, but that is the only way short of making duplicate maps (and those maps would create other problems if you don't want the position of the normal NPCs change when transferring between maps)
You can use the default options to have events appear and use a tint command for the entire screen - but to change tiles you'll need one of the tileswap scripts (there are two on the master script list, one from Tsukihime and one from Fomar if I remember correctly)

1) Make the item turn on a switch when used

2) make a common event on parrallel process conditioned on that switch, containing a tint screen, a wait command for the duration, another tint screen to change back and then switch off

3) for every event, have two pages (one visible, one invisible) and condition the visible one to the switch for the effect

4) On a map with changed tiles, have a parallel process map event check the switch (once per second, every 60 frames should be enough) and use script commands with the tileswap script to change the predefined tiles when the switch is on and back when it goes off.

It'll be tricky to make everything fit consistently, but that is the only way short of making duplicate maps (and those maps would create other problems if you don't want the position of the normal NPCs change when transferring between maps)
Thank you very much for taking the time to respond!

So, I'm been mostly successful up to now using your post and googling around and so far I have been successful in:

Making the item toggle the trigger. Then the trigger makes the parallel tint process run. And my ghost "events" appear. I was even able to make them disappear somewhat satisfactorily. I was also able to toggle the tileset a parallel process. 

I have a quick question though and then I think I've got this just about sorted.

1. Since I wanted my ghost events to vanish when the item wears off, I went ahead and made the screen tinting parallel process toggle the item trigger at the end. This works fine and is aesthetically pleasing. Is there a better way that I am supposed to being doing that, however? Does it really matter or should I be having the common event do the toggling itself or something? I just don't want to learn bad habits, this early in the game.

Finally, just as an aside, my "tileset" references were probably misleading. I just realized that since the tinting really takes care of the coloring effect I wanted that I don't have to do any tileset changes. Anything else I want to suddenly appear can just be an event, the same as the ghosts. I was overcomplicating things. The tileset issue wouldn't really be needed unless I truly revealed some new terrain or something. Just showing some sort of spiritual signature can be a simple event with a graphic I make.

Thanks again.

Original thread: https://forums.rpgmakerweb.com/threads/item-that-makes-invisible-characters-and-tiles-visible-with-color-tone-change.22198/