code - ryzom/ryzomcore GitHub Wiki


title: Code description: published: true date: 2023-03-14T14:22:03.609Z tags: editor: markdown dateCreated: 2023-03-11T10:46:13.681Z

code

The code action type executes a block of AI script code. This is the most flexible and powerful action type available in the NPC logic system. With the code action type, one can execute a block of AI script code, granting the ability to implement custom, complex behaviors for NPCs that go beyond the capabilities of the other action types.

The code to be executed is specified as a string parameter using the AI script language syntax and structure. For more information on the AI script language, see the AI Script page.

Parameter Syntax

<ai_script_code>

Parameters

  • <ai_script_code>: The AI script code to execute. This should be a block of code that performs the desired behavior.

See also

⚠️ **GitHub.com Fallback** ⚠️