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
The setSimplePhrase native AI script function defines a new phrase with the specified ID and content.
()setSimplePhrase(phraseName: s, phraseContent: s)
- phraseName (string): The ID of the phrase to define.
- phraseContent (string): The text associated with the phrase.
()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?".
This function creates a phrase ID of the form <phraseName>(){[<phraseContent>]}
.