Skip to content

Document Lua SetAI name reset behavior#1936

Merged
Flow86 merged 1 commit into
Return-To-The-Roots:masterfrom
DevOpsOfChaos:sidequest/document-lua-setai-name-reset
May 9, 2026
Merged

Document Lua SetAI name reset behavior#1936
Flow86 merged 1 commit into
Return-To-The-Roots:masterfrom
DevOpsOfChaos:sidequest/document-lua-setai-name-reset

Conversation

@DevOpsOfChaos

Copy link
Copy Markdown
Contributor

Summary

  • document that Lua SetAI(level) assigns the AI's default name
  • document that scripts should call SetName(name) after SetAI(level) when they want to keep a custom name

Motivation

SetAI(level) intentionally resets the slot name to the AI default name. This behavior was clarified in #1467, but the Lua documentation currently only says that SetAI(level) adds or changes an AI.

Fixes #1467

Validation

  • Documentation-only change
  • Ran git diff --check

@Flamefire
Flamefire enabled auto-merge May 2, 2026 10:49
@Flow86
Flow86 disabled auto-merge May 9, 2026 18:42
@Flow86
Flow86 merged commit dd226e1 into Return-To-The-Roots:master May 9, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LUA] SetAI overrides name

4 participants