AI NPC
Overview
At runtime, NPCs automatically add:
CharacterMotionController
To use custom motions:
- prepare a motion-pack item
- upload it
- attach it to the NPC through
P-Linker
AI Output Format
NpcAIController parses command tags from the AI response.
Your NPC plugin controller should consume those tags and drive CharacterMotionController directly.
Supported tags:
[emotion:happy][action:laugh][comment:...][debug:...]
The raw response is preserved, and the command tags are also parsed into structured fields internally.
Recommended Setup
- Prepare an NPC with
NpcDesc. - Build a motion-pack item that contains:
AnimationSet- optional
NpcMotionProfileonly when you need custom remapping
- Upload the item.
- Attach it to the NPC object through
P-Linkeras an object plugin item.
NpcMotionProfile
Use NpcMotionProfile only when your AI vocabulary does not match your local semantic names.
Example:
- AI emits
shy - local semantic is
bashful NpcMotionProfilemapsshy -> bashful
Notes
- VMD or dance playback is separate from this system.
- NPC motion policy belongs to your custom NPC plugin.
NpcMotionProfileis optional and only needed when AI words do not match your local semantic names.