Skip to content

set_simple_phrase

Ryzom Core Wiki edited this page Jul 8, 2024 · 4 revisions

title: Set Simple Phrase description: published: true date: 2023-03-16T23:11:32.014Z tags: editor: markdown dateCreated: 2023-03-16T22:29:22.154Z

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>]}.

Clone this wiki locally