-
Notifications
You must be signed in to change notification settings - Fork 94
code
Ryzom Core Wiki edited this page Jul 8, 2024
·
17 revisions
title: Code description: published: true date: 2023-03-16T23:13:26.167Z tags: editor: markdown dateCreated: 2023-03-16T22:31:48.181Z
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.
<ai_script_code>
- <ai_script_code>: The AI script code to execute. This should be a block of code that performs the desired behavior.
- AI Script: Syntax and structure of the AI script language.
- Built-in AI Script Functions: A list of built-in AI script functions that can be used in AI script code.