Skip to content

set_nel_var

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

title: Set NeL Variable description: published: true date: 2023-03-16T23:11:10.777Z tags: editor: markdown dateCreated: 2023-03-16T22:28:53.762Z

setNelVar

The setNelVar native AI script function sets the content of a NeL Variable. If the variable does not exist, it will be created.

Syntax

()setNelVar(varId: s, value: f)
()setNelVar(varId: s, value: s)

Arguments

  • varId (string): The name of the variable to set.
  • value (float or string): The value to set the variable to.

Return value

This function does not return a value.

Example

()setNelVar("BotCount", 32);
()setNelVar("BotFamily", "the_killers");

These examples set the value of the NeL variables "BotCount" and "BotFamily", respectively.

Clone this wiki locally