The setNelVar native AI script function sets the content of a NeL Variable. If the variable does not exist, it will be created.
()setNelVar(varId: s, value: f)
()setNelVar(varId: s, value: s)
This function does not return a value.
()setNelVar("BotCount", 32);
()setNelVar("BotFamily", "the_killers");
These examples set the value of the NeL variables "BotCount" and "BotFamily", respectively.