I'm not sure if support is the right place for this question since I got the event working the way I want it to, but I'm curious about the best way to handle this event.
Basically, I have an NPC event blocking the opening of a cave. When the PC talks to the NPC and asks her to move she steps aside and lets the PC past. The goal is to keep the NPC in its new location after she has moved and allow her to give a small message to the PC if they talk to her again afterwords.
As I mentioned, I did get this working (I'm trying to avoid scripts at this point since I'm still very new to the program) by flipping a global switch to indicate the movement and using a second parallel processing event as a sort of controller that looks for the movement switch and if its turned on uses the Set Event Location command to move the NPC. Then the controller event erases itself to stop it from continuing to run.
My question here is can this be handled by a single event without using scripts?
Since this event is really a local thing and has no larger consequences on the game world I'd prefer to keep everything internal to a single event, but when I tried setting a local switch and using a second event page to do this, I noticed I can't end the parallel process without erasing the entire event (making the NPC vanish). So I'm concerned doing similar events with more NPCs would start to lag the game because of the number of parallel processes running.
I know about Shaz's script to handle exactly this problem and I'm going to implement that in the future, but I'm asking because I'm curious about best practice. Is it better to use global switches and a controller to handle local events every time the map loads, or should I contain those events and leave the parallel process running?
Thanks for any advice!
Basically, I have an NPC event blocking the opening of a cave. When the PC talks to the NPC and asks her to move she steps aside and lets the PC past. The goal is to keep the NPC in its new location after she has moved and allow her to give a small message to the PC if they talk to her again afterwords.
As I mentioned, I did get this working (I'm trying to avoid scripts at this point since I'm still very new to the program) by flipping a global switch to indicate the movement and using a second parallel processing event as a sort of controller that looks for the movement switch and if its turned on uses the Set Event Location command to move the NPC. Then the controller event erases itself to stop it from continuing to run.
My question here is can this be handled by a single event without using scripts?
Since this event is really a local thing and has no larger consequences on the game world I'd prefer to keep everything internal to a single event, but when I tried setting a local switch and using a second event page to do this, I noticed I can't end the parallel process without erasing the entire event (making the NPC vanish). So I'm concerned doing similar events with more NPCs would start to lag the game because of the number of parallel processes running.
I know about Shaz's script to handle exactly this problem and I'm going to implement that in the future, but I'm asking because I'm curious about best practice. Is it better to use global switches and a controller to handle local events every time the map loads, or should I contain those events and leave the parallel process running?
Thanks for any advice!