EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

AnimalDefinition

A wild or domestic animal: its body, idle actions, gear and loot.

Signature

{ actions: {Name}, character: CharacterId, faction: (ContentId)?, hunt: (AnimalHunt)?, id: ContentId, lifecycle: TransientLifecycle, loadout: Loadout, loot: (LootId)?, name: TextKey, near_water_mm: (PositiveDistance)?, penned: boolean, petted: (Name)?, petting: (Name)?, routine: (AnimalRoutineId)?, safe_distance_mm: (Distance)?, shy: (AnimalShy)?, sounds: AnimalSounds, squad: (AnimalSquad)?, tame: boolean }

Fields

NameTypeMeaning
actions{Name}Idle action clips of its rig in repertoire order; the first is its rest pose. Each lasts its clip once.
Items: 1…16; Unique entries
characterCharacterIdCharacter definition supplying body, stats and movement.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character
factionContentIdInitial faction declared by the ruleset; if omitted, the definition's own ID must be a declared faction.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
huntAnimalHuntIt hunts a wielder who struck it twice instead of fleeing, as a hostile figure (`docs/server-state.md` §12.7). Absent: it flees.
idContentIdPackage-qualified identity; unique within its declaring namespace.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$
lifecycleTransientLifecycleCorpse lifetime; population rules decide any new spawn.
loadoutLoadoutInventory and held weapon; dropped at death except natural weapons.
lootLootIdAdditional items dropped at death.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: loot
nameTextKeyLocalization key for the displayed name.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
near_water_mmPositiveDistanceWild ones of this kind settle only this close to open water (beavers, storks); absent: anywhere.
Range: 1…2147483647; Unit: mm
pennedbooleanWhether village animals of this kind live in the pen.
pettedNameClip of its rig while a player pets it; absent: its rest pose.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
pettingNameClip of the player rig a player pets it with (bent over a dog, crouched by a cat); absent: it cannot be petted.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
routineAnimalRoutineIdDaily routine of its kind; without one it roams and plays its actions all day.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: animal_routine
safe_distance_mmDistanceWild animals keep this distance outside camp and protected safe spots during spawning and movement.
Range: 0…2147483647; Unit: mm
shyAnimalShyShy movement (a duckling): steps aside and stands instead of fleeing and roaming. Not with hunts. Absent: the usual wild behaviour.
soundsAnimalSoundsIts call and petting sounds.
squadAnimalSquadIts part in a pack while it hunts: animals of one spawn sharing a squad name fight as one (`ruleset.squad`). Only with `hunt`; absent: the defaults of `AnimalSquad`.
tamebooleanWhether players may pet it and it belongs to the village side.