Enemy Parameters
Enemy behaviour parameters are configured in each enemy's blueprint file, or sometimes its superclass file. These exist in Carrot4/Placeables/Teki and Carrot4/Placeables/Teki/Base for superclasses and can be edited as JSON, once decoded. For enemy parameters relating to economy/health/carrying/damage see Data Table/Actor Parameters.
While the blueprint files are quite large, they are mostly full of irrelevant code for the common user. The file is split into "generator variables" which are used to set the base characteristics of an enemy at runtime, likely laid underneath an enemy's instance-parameters, which come from ActorSerializeParameter and AI.
The gen variables one is likely looking for are:
| Gen var | Meaning |
|---|---|
AttackAffordance_GEN_VARIABLE |
Possibly the properties of if an entity believes it can attack |
{EntityName}AI_GEN_VARIABLE |
Configures this specific enemy's behaviour and values |
TekiAIParameter |
Universal parameters all enemies have in common, mostly including detection, search, and territory, flick parameters, and drop parameters |
CarrotMove_GEN_VARIABLE |
Speed values |
Life_GEN_VARIABLE |
Health, health bar and some damage properties |
PointerAssist_GEN_VARIABLE |
Cursor properties |
TekiAIParameter[edit]
These parameters are shared aspects all enemies have in common, including territory, detection and vision areas, how the enemy flicks off Pikmin, and what they drop by default when defeated.
Search and Territory[edit]
Parameters[edit]
These values determine how and what an enemy can see.
| Parameter | Meaning |
|---|---|
Radius |
The distance up to which the enemy can see or be aware of any captains or Pikmin. |
Angle |
The angle of its vision, essentially creating a vision cone. Determines line of sight. When set to 0, the enemy skips checking if its vision has targets in it. |
SphereRadius |
The size of the enemy. Used to determine if an enemy is currently in the search area. |
Center |
The center point of the enemy, used to determine where the vision cone and SphereRadius begin from.
|
TerritoryNestRatio |
A value between 0 and 1 that determines how much of the territory is the creature's nest. This is used in conjunction with the boolean below to limit certain behaviours to only occur within the nest or to occur within the entire territory. |
bSearchOuterTerritory |
A boolean usually set to false by default. This allows the enemy to use its full territory zone within the search area instead of just its nest, allowing them to roam further from home, be more alert, and act more aggressively. |
SearchArea Categories[edit]
The different categories and circumstances in which the enemy will be looking for targets or not.
| SearchArea Category | Meaning |
|---|---|
SearchAreaGoToHome |
The enemy will attempt to go home if it is outside of or cannot see its home nest or territory. |
SearchAreaRest |
Used when an enemy is not aware of the player yet. For sleeping bulborbs and the Man-At-Legs, this determines when they begin to wake up once a Pikmin or captain gets close enough. |
SearchAreaCaution |
Used when an enemy is already alerted to the presence of the player, usually giving increased awareness compared to SearchAreaRest.
|
SearchAreaOtakaraCarry |
The enemy's awareness of objects being carried nearby. Usually the highest search area for enemies so they can interrupt carrying routes. |
EatArea |
The distance and line of sight from which the enemy will attack. Increases to these values can often result in bulborb family members attacking when there are no Pikmin, but it will make Wollyhops jump much farther and Swooping Snitchbugs swoop toward Pikmin from farther distances. |
Territory |
The enemies total territory and home, which it will try to return to. Has an inner nest zone and an outer territory zone determined by TerritoryNestRatio.
|
Flick Parameters[edit]
| Parameter | Meaning |
|---|---|
MaxFlickNum |
How many Pikmin the enemy will shake off. By default this value is 50 when not specified and needs to have a new line added to FlickArg to change. This default is easiest to see on the Empress Bulbax (Queen), Porquillion (Hari), and Waddlepus (Awadako) when charged.
|