Itutorial
Legendary OT User
- Joined
- Dec 23, 2014
- Messages
- 2,435
- Solutions
- 68
- Reaction score
- 1,083
Alright guys, I have hit a point in my server development that I need a code I am unsure how to make.
So, when the player is at a certain point in a quest I need an NPC to pop up and talk to him. The NPC cannot be talked to by anyone other then the person doing the quest.
The good news is the chances of multiple people being on the same quest and the NPC needs to pop up more then once at a time is impractical.
So, my question is how do I get the NPC to only allow the certain player to talk to him.
Here are some things I have tried:
1) Adding focus to the player and checking the focus
-Create NPC
-Set the NPC to focus the player
-Only talk to the player it is focused on
*unsuccessful attempt
2) Setting a storage to the player so the NPC will only talk to people with that storage
-Create NPC
-NPC will talk to anyone with the correct storage in the area.
*Preferably not the way to have the NPC set up.
I can use the second method however, I would prefer another way. As I said it wont be common for 2 players to be in the same quest at the same point, but if it did ever happen I wouldn't want a problem to come up. If anyone knows a way to make this work please let me know.
So, when the player is at a certain point in a quest I need an NPC to pop up and talk to him. The NPC cannot be talked to by anyone other then the person doing the quest.
The good news is the chances of multiple people being on the same quest and the NPC needs to pop up more then once at a time is impractical.
So, my question is how do I get the NPC to only allow the certain player to talk to him.
Here are some things I have tried:
1) Adding focus to the player and checking the focus
-Create NPC
-Set the NPC to focus the player
-Only talk to the player it is focused on
*unsuccessful attempt
2) Setting a storage to the player so the NPC will only talk to people with that storage
-Create NPC
-NPC will talk to anyone with the correct storage in the area.
*Preferably not the way to have the NPC set up.
I can use the second method however, I would prefer another way. As I said it wont be common for 2 players to be in the same quest at the same point, but if it did ever happen I wouldn't want a problem to come up. If anyone knows a way to make this work please let me know.