I'm making a horror game, and I'm having trouble with the NPC following you to different rooms and randomly stop following you once you enter a room.
EX: NPC spawns at the door you came from. Follows you through the lobby and hall, then once you enter the library, he stops following you.
How could I pull this off?
Following
● ARCHIVED · READ-ONLY
-
-
You could set the event's custom route to Move Towards Player, but that would probably kill the framerate and you could potentially get stuck in some place. I suggest using Himework's Guest Follower plugin. Then you could just add them to the party, they won't participate in battles, and then you can remove them when you need to.
-
@Veltra Are you trying to achieve the same effect of Ao Oni? Am I right?
However, you can succeed to do this, creating an event in front of each door of your rooms.
At least two pages: the first blank and the second with the options (graphics, move route ecc...) you want and set for this page a switch.
For every chase, you can set the switch to on and then off it when you need.
But, if you want a simple NPC following the player, a simple party member or the solution proposed by Uzuki is the best. -
@Gamefall Team Exactly the effect I want, though how could I do it randomized for him to spawn for each room? Could you provide a visual example of how this could be pulled off?
-
You could use a random variable 1-10 , set If Conditions = this would give it a 10% chance for the man to spawn.
-
Though since I need the npc to be on event touch, how will I go about that?
-
@Veltra When you step into the room have an auto event run that runs a variable from 1-10, then make a conditional branch, that checks if it landed on a specific number (For this example let's say 3). Inside that branch run the plugin command that has the NPC following you. Now if the random number lands on 3, then the NPC will follow you to whatever room you need to get them to and there you can run another event that will remove the NPC.