AI (functions): Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "The AI functions involve controlling the AI of actors on a ground map. It controls features such as characters walking around idly, or following the player. == SetCharacterAI == This function gives the argument character the assigned AI. === Arguments === Argument order is <code>AI:SetCharacterAI(chara, AI)</code>. {| class="wikitable" |- ! Name !! Type !! Purpose |- | chara || RogueEssence.Ground.GroundChar || The character to apply the AI to. |- | AI || System.Obj..."
 
Imbion (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Hat Note|More functions: [[Script Reference]]''}}
The AI functions involve controlling the AI of actors on a ground map. It controls features such as characters walking around idly, or following the player.
The AI functions involve controlling the AI of actors on a ground map. It controls features such as characters walking around idly, or following the player.


Line 9: Line 11:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Name !! Type !! Purpose
! Name !! Type !! Technical Type !! Purpose
|-
|-
| chara || RogueEssence.Ground.GroundChar || The character to apply the AI to.  
| chara || Ground Character ||RogueEssence.Ground.GroundChar || The character to apply the AI to.  
|-
|-
| AI || System.Object[] || The AI to apply.
| AI || Table || System.Object[] || The AI to apply.
|-
|-
|}
|}
Line 29: Line 31:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Name !! Type !! Purpose
! Name !! Type !! Technical Type !! Purpose
|-
|-
| chara || RogueEssence.Ground.GroundChar || The character to disable the AI of.  
| chara || Ground Character || RogueEssence.Ground.GroundChar || The character to disable the AI of.  
|-
|-
|}
|}
Line 47: Line 49:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Name !! Type !! Purpose
! Name !! Type !! Technical Type !! Purpose
|-
|-
| chara || RogueEssence.Ground.GroundChar || The character to enable the AI of.  
| chara || Ground Character || <code>RogueEssence.Ground.GroundChar</code> || The character to enable the AI of.  
|-
|-
|}
|}
Line 58: Line 60:


== SetAIState ==
== SetAIState ==
{{SectStub}}
? (not documented correctly)
? (not documented correctly)


Line 66: Line 69:


(todo)
(todo)
[[Category:Quick Reference]]

Latest revision as of 20:12, 17 January 2026

More functions: Script Reference

The AI functions involve controlling the AI of actors on a ground map. It controls features such as characters walking around idly, or following the player.

SetCharacterAI

This function gives the argument character the assigned AI.

Arguments

Argument order is AI:SetCharacterAI(chara, AI).

Name Type Technical Type Purpose
chara Ground Character RogueEssence.Ground.GroundChar The character to apply the AI to.
AI Table System.Object[] The AI to apply.

Usage

(todo)

DisableCharacterAI

Disables the AI processing of the ground character until it is re-enabled.

Arguments

Argument order is AI:DisableCharacterAI(chara, AI).

Name Type Technical Type Purpose
chara Ground Character RogueEssence.Ground.GroundChar The character to disable the AI of.

Usage

(todo)

EnableCharacterAI

If the character's AI was disabled with AI:DisableCharacterAI re-enables it.

Arguments

Argument order is AI:EnableCharacterAI(chara, AI).

Name Type Technical Type Purpose
chara Ground Character RogueEssence.Ground.GroundChar The character to enable the AI of.

Usage

(todo)

SetAIState

This section is a stub. You can help PMDO Wiki by expanding it.

? (not documented correctly)

Arguments

(todo)

Usage

(todo)