set_simple_phrase - ryzom/ryzomcore GitHub Wiki


title: Set Simple Phrase description: published: true date: 2023-03-13T02:28:53.747Z tags: editor: markdown dateCreated: 2023-03-13T02:28:34.530Z

setSimplePhrase

The setSimplePhrase native AI script function defines a new phrase with the specified ID and content.

Syntax

()setSimplePhrase(phraseName: s, phraseContent: s)

Arguments

  • phraseName (string): The ID of the phrase to define.
  • phraseContent (string): The text associated with the phrase.

Example

()setSimplePhrase("HELLO", "Hi, how are you?"); // Equivalent to "HELLO(){[Hi, how are you?]}"

This example code defines a new phrase with ID "HELLO" and content "Hi, how are you?".

Output

This function creates a phrase ID of the form <phraseName>(){[<phraseContent>]}.

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