Modding:Creature AI
Jump to navigation
Jump to search
This page is about modding. See the modding overview for an abstract on modding. |
This page is about modding. See the modding overview for an abstract on modding.
This page is about modding. See the modding overview for an abstract on modding.
This article has information that is missing or not up to par.
Reason: This article is currently a work-in-progress. Please check back later. |
This article has information that is missing or not up to par.
Reason: This article is currently a work-in-progress. Please check back later.
Reason: This article is currently a work-in-progress. Please check back later.
Behavior controllable with XML
Designing custom AI for creatures in Caves of Qud typically requires scripting with C#, however, there is a limited set of changes you can make to a creature's behavior through XML only.
The Brain part
Brain
is the primary part in charge of granting sentience to creatures in Caves of Qud. It is required to give an object goals and perform actions autonomously in the game.
In XML, Brain
supports multiple parameters that can be used to influence creature behavior:
Brain attribute | Example | Description |
---|---|---|
Wanders | Wanders="true"
|
Whether, absent any goals, a creature will wander autonomously or simply stay still in its current location. |
MaxWanderRadius | MaxWanderRadius="6"
|
When idly wandering, the maximum distance that a creature will go from its starting point. This is primarily used by pigs to control their maximum wander distance. |
Factions | Factions="Snapjaws-100"
|
|
Hostile | ||
Calm | ||
Aquatic | Aquatic="true"
|
Used by fish and other aquatic creatures to force them to live in water. |
LivesOnWalls | LivesOnWalls="true"
|
Used by vines creatures such as favilink and jilted lovers to force them to occupy and navigate between wall tiles. |
Mobile | ||
Hibernating |
Existing AI parts
This article is a stub. You can help Caves of Qud Wiki by expanding it. |
This article is a stub. You can help Caves of Qud Wiki by expanding it.
Parts that impact their own creatures' behavior
Part name | Description |
---|---|
AIJuker | |
AIPilgrim | |
AIWanderingJuggernaut | |
AISelfPreservation | |
AIFlocks | |
AIUrnDuster | |
AIMarkOfDeathGuardian | |
AIShopper | |
AIShoreLounging | |
AIShootAndScoot | |
AIKillStuckStuff | |
AISuppressIndependentBehavior | |
AIThrowAndScoot | |
AIHealingTonicUse | |
AIShootCooldown | |
AIPassenger | |
AISitting | |
AIStopShootingImmuneTargets | |
AIVehiclePilot | |
AIReplica | |
AITryKeepDistance | |
AITonicUse | |
AIWallWalker | |
AIWallPhaser | |
AITryKeepSteadyDistance | |
AISeekHealingPool | |
AICryptHelpBroadcaster |
Parts that influence other creatures' behavior
Part name | Description |
---|---|
Pettable | |
Chair |
TODO: parts that influence AI behavior
Opinions and allegiances
This article is a stub. You can help Caves of Qud Wiki by expanding it. |
This article is a stub. You can help Caves of Qud Wiki by expanding it.
Making creatures use items and skills
This article is a stub. You can help Caves of Qud Wiki by expanding it. |
This article is a stub. You can help Caves of Qud Wiki by expanding it.
Goal handlers
This article is a stub. You can help Caves of Qud Wiki by expanding it. |
This article is a stub. You can help Caves of Qud Wiki by expanding it.
|