-
Notifications
You must be signed in to change notification settings - Fork 94
set_global_nel_var
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Set Global NeL Variable description: published: true date: 2023-03-16T23:10:44.268Z tags: editor: markdown dateCreated: 2023-03-16T22:28:17.768Z
The setGlobalNelVar native AI script function sets the content of a NeL Variable in the global scope. The variable is created if it doesn't exist.
()setGlobalNelVar(varId: s, value: f) // setGlobalNelVar_sf_
()setGlobalNelVar(varId: s, value: s) // setGlobalNelVar_ss_
- varId (string): The name of the variable to set.
- value (float or string): The value to set.
()setGlobalNelVar("BotCount", 32);
This example code sets the "BotCount" NeL Variable to 32 in the global scope.
()setGlobalNelVar("BotFamily", "the_killers");
This example code sets the "BotFamily" NeL Variable to "the_killers" in the global scope.