dss_message - ryzom/ryzomcore GitHub Wiki


title: DSS Message description: published: true date: 2023-03-14T00:53:08.264Z tags: editor: markdown dateCreated: 2023-03-13T00:04:27.776Z

dssMessage

The dssMessage native AI script function calls the DSS function CAnimationModule::dssMessage.

Syntax

()dssMessage(instance: f, mode: s, who: s, msg: s)

Arguments

  • instance (float): The session ID of the target.
  • mode (string): The DSS mode.
  • who (string): The speaker.
  • msg (string): The message.

Return value

None.

Example

()dssMessage(114, "BC", "Bob", "Life is hard");

This example code calls the DSS function with session ID 114, mode "BC", speaker "Bob", and message "Life is hard".

()dssMessage(123, "SYS", "", "Hello world")

Broadcasts "Hello world" to everyone in session 123.

()dssMessage(123, "DM", "System", "Secret message")

Broadcasts "Secret message" to the DM who is running the scenario in session 123.

⚠️ **GitHub.com Fallback** ⚠️