Skip to content

Document Lua SetAI name reset behavior#1936

Open
DevOpsOfChaos wants to merge 1 commit intoReturn-To-The-Roots:masterfrom
DevOpsOfChaos:sidequest/document-lua-setai-name-reset
Open

Document Lua SetAI name reset behavior#1936
DevOpsOfChaos wants to merge 1 commit intoReturn-To-The-Roots:masterfrom
DevOpsOfChaos:sidequest/document-lua-setai-name-reset

Conversation

@DevOpsOfChaos
Copy link
Copy Markdown

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
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

3 participants