RACTER is probably the BEST inworld chat module I have ever seen. It is very easy to configure. I have converted this chat system to OSSL so your NPCs can have speech capability. The instructions for using this are HERE. Simply make a prim, wear it on the nose, position and scale to your liking. Place a new script inside called Brain* and then 2 note cards "Brain_1" and "Brain_2". Paste the linked text into them. You can have as many Brain_ note-cards as you want and you can customize the chat to your liking. Use it to make chatty bartenders, rude towns-people, greeters and more; the possibilities are endless. BE SURE to READ THIS PAGE before using this software and you will go far.
Wear the completed object before making your NPC. When your NPCs are rezzed you will be able to talk to them when you are in range. Once the speech engine has loaded, the NPC will say "Ready" in local chat. You can define the frequency with which the NPC will respond to local chat and the range it will listen to for key words. Moreover, the NPC will only respond to REAL avatars so all of your NPCs can use this module without worry of bot-cross-talk. Your NPC will also ignore greeters or any other prim which uses channel 0 speech. I have included a second script you can place with your 'Brain.lsl' which will make the NPC silent or to allow them to speak again... Simply say "chaton" or "chatoff" to enable or disable the Brain script.
NOTE: This was originally designed to be a replacement to the speech module in the current ActiveNPC-SEP2017 Enhanced package. Rather than boxing it all up I decided to place this here to benefit anyone who wants to play with this. OSSL Racter does not require ActiveNPC to function. It should work with just about any NPC framework so long as you have the proper ossl extensions enabled in your /bin/config_include/osslEnable.ini
For those of you who would rather have RACTER in a prim, the code from the LSL WIKI linked above will work without issue on opensim grids.
*You can have another name like Alice or Bob - Script and note-cards should be named accordingly: Alice - Alice_1 - Alice_2 OR Bob - Bob_1 - Bob_2
File name | Added By | Last Updated | Actions |
---|---|---|---|
Brain.lsl | Spax Orion✔ | 2 years ago | View |
speech-toggle.lsl | Spax Orion✔ | 4 years ago | View |