The npcSay native AI script function allows a non-playable character (NPC) to say a text message.
()npcSay(Text: s, Mode: s)
()npcSay("Hello!", "say");
This example code makes the current NPC say the text message "Hello!" using the "say" mode.
This enhanced variant was added to support Ryzom Ring specific features.
()npcSay(Group: c, BotName: s, Text: s)
(@group)group_name.context(); ()npcSay(@group, "bob", "DSS_1601 RtEntryText_6");
This example code makes the NPC named "bob" in the NPC group named "group_name" say the text message with the ID "DSS_1601 RtEntryText_6".