I have this script for a chat room. Basically, the idea is that by using this NPC, you can write or read messages for other players. However, I'm encountering a problem. What I want is for each NPC I place to have a separate chat log. Instead, each time I copy this NPC, it has the same chat log. In other words, if I have 2 of these NPC's, and I type "Hello world!", in one of them, that message also appears in the other. How can I make these chat rooms separate?
I want to make it so that each chat room is individual. I've attached my script so you can hopefully tell me what to do. I don't mind making separate files for each NPC (I don't care about duplicating), but I can't seem to get this to work. The script itself works fine, but no matter what I try, having more than one of these NPC's results in them all sharing the same chat log. Any help is appreciated.
Question
GreenMagic793
Hey guys,
I have this script for a chat room. Basically, the idea is that by using this NPC, you can write or read messages for other players. However, I'm encountering a problem. What I want is for each NPC I place to have a separate chat log. Instead, each time I copy this NPC, it has the same chat log. In other words, if I have 2 of these NPC's, and I type "Hello world!", in one of them, that message also appears in the other. How can I make these chat rooms separate?
I want to make it so that each chat room is individual. I've attached my script so you can hopefully tell me what to do. I don't mind making separate files for each NPC (I don't care about duplicating), but I can't seem to get this to work. The script itself works fine, but no matter what I try, having more than one of these NPC's results in them all sharing the same chat log. Any help is appreciated.
ChatRoom.txt
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.