-
Notifications
You must be signed in to change notification settings - Fork 94
get_nel_var
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Get NeL Variable description: published: true date: 2023-03-16T23:07:36.043Z tags: editor: markdown dateCreated: 2023-03-16T22:24:22.342Z
The getNelVar native AI script function returns the content of a NeL variable. The variable is created if it doesn't exist.
(value: f)getNelVar(varId: s) // getNelVar_s_f
(value: s)getNelVar(varId: s) // getNelVar_s_s
- varId (string): The name of the variable to retrieve.
- value (float|string): The content of the variable.
(botCount)getNelVar("BotCount");
This example code retrieves the content of the "BotCount" NeL variable and stores it in the botCount
variable.
(botFamily)getNelVar("BotFamily");
This example code retrieves the content of the "BotFamily" NeL variable and stores it in the botFamily
variable.