Prevent event interaction during time-freeze mode

Hello everyone and thanks for your time.


I have started to work on a project where the player can change their existance from 'real plane' to 'spirit plane' on the same map (something like the EM wave-change in Megaman SF).


What I'm looking for is a way to prevent the player from interacting with the npc of 'real plane' while they are in 'spirit plane', but still be able to see them.


I know I can make a page for every npc without content, triggered by the switch of the spirit plane, but that lot of work (I have lot of npc in real plane and few in spirit plane), so I'm trying to find a way to make the events interaction disabled by default while the switch of the spirit world is enabled, except for limited events (those of the spirit plane) and transfer events.


I'll be glad if someone would find a way to do it.


Thanks for the support!  🙂
The way you suggested (blank event with a switch) is the only way to do what you want without a script. So you are looking at a script request then for this to occur.


I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
It seems you have 3 types of events:


- transfer events, which should be actionable at any time


- spirit plane events, which should only be actionable when you're in the spirit plane


- real plane events, which should only be actionable when you're in the real plane


What about autorun and parallel process events?  Should they always be triggered, or should some only be run when you're in a certain plane?  What about common events that are autorun or parallel process and conditioned by switches?


How is the script going to identify which events are transfer events (can't be just looking for a transfer command, as you could have that on an NPC) and which events are spirit or real plane events?
The way you suggested (blank event with a switch) is the only way to do what you want without a script. So you are looking at a script request then for this to occur.


I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

I apologize, I should have thought it would require a script, sorry. 

It seems you have 3 types of events:


- transfer events, which should be actionable at any time


- spirit plane events, which should only be actionable when you're in the spirit plane


- real plane events, which should only be actionable when you're in the real plane


What about autorun and parallel process events?  Should they always be triggered, or should some only be run when you're in a certain plane?  What about common events that are autorun or parallel process and conditioned by switches?


How is the script going to identify which events are transfer events (can't be just looking for a transfer command, as you could have that on an NPC) and which events are spirit or real plane events?



I don't need the script to identify the 'kind' of the event, but to block any interaction from any event unless I insert something (maybe in the 'note' field) to the event, which the script would identify and make this event interactable.


I apologize if I didn't make myself more clear, but the spirit plane events are not a problem, as they are not even visible in the real plane, by one switch that every spirit even have. In addition, because they are much fewer than the real events, I don't care to work on them individually. The main problem is the real, who should be visible in both planes but actionable only on real, and it's pain to do two pages for every npc in the game (and I have lot of them, much more than the spirit, transfer and autorun/parallel scenes together).


Transfer events should be used by both as you said, so I need the script to identify them. The difference between them and the spirit events is just a switch.


This is the case also for autorun and parallel procress - have to be actionable from the script, and controlled by the 'plane switch'.


Thanks for the support.
You don't need 2 pages on your events for this, far from that.


You can simply make this at the start of your event pages for these event:

Spoiler
if Switch ID is turned ON
Exit Event Processing
end



So, just a simple condition to check if the switch for the spirit realm is turned ON, and if it is, don't continue the event. 


Using comments for this would yield the exact same amount of work, writing in the comment and copy/pasting it to all of your events, but using the very simple condition I mentioned, you don't need to use a custom script for this at all.
It would make the event stop and turn towards the player for the short time it's checking, though.

Original thread: https://forums.rpgmakerweb.com/threads/prevent-event-interaction-during-time-freeze-mode.70836/