-
Notifications
You must be signed in to change notification settings - Fork 94
npc_say
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: NPC Say description: published: true date: 2023-03-16T23:09:00.743Z tags: editor: markdown dateCreated: 2023-03-16T22:26:10.519Z
The npcSay native AI script function allows a non-playable character (NPC) to say a text message.
()npcSay(Text: s, Mode: s)
- Text (string): The text of the message to say. It can be either a plain text string or a string ID with the prefix "ID:".
- Mode (string): The mode to use for saying the message. It can be either "say" or "shout".
()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 (context): The NPC group of the bot that will perform the chat.
- BotName (string): The name of the bot.
- Text (string): The text of the message to say.
(@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".