-
Notifications
You must be signed in to change notification settings - Fork 101
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
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>]}
.