Versions / 0.6.0-pre.5 / NPC / Roles / Intelligent / Neutral / Feran / Templates / Template_Feran_Burrower.json
Template_Feran_Burrower
Server/NPC/Roles/Intelligent/Neutral/Feran/Templates/Template_Feran_Burrower.json, 24.2 KB
Fields
| Field | Type |
|---|---|
Type | string |
StartState | string |
Parameters | object |
IsMemory | object |
MemoriesCategory | object |
MemoriesNameOverride | object |
Appearance | object |
DropList | object |
DisableDamageGroups | array[1] |
HotbarItems | object |
DefaultNPCAttitude | string |
DefaultPlayerAttitude | string |
AttitudeGroup | object |
KnockbackScale | number |
MotionControllerList | array[1] |
MaxHealth | object |
Instructions | array[1] |
NameTranslationKey | object |
Source
{
"Type": "Abstract",
"StartState": "Idle",
"Parameters": {
"Appearance": {
"Value": "Feran_Burrower",
"Description": "Model to be used"
},
"WanderRadius": {
"Value": 15,
"Description": "General wander radius"
},
"SmellRange": {
"Value": 15,
"Description": "Smell range"
},
"AlertedRange": {
"Value": 30,
"Description": "A range within which the player can be seen/sensed when the NPC is alerted to their presence"
},
"DropList": {
"Value": "Drop_Feran_Burrower",
"Description": "Drop Items"
},
"MaxSpeed": {
"Value": 10,
"Description": "Maximum walking speed"
},
"AttitudeGroup": {
"Value": "Feran",
"Description": "This NPCs attitude group"
},
"Weapons": {
"Value": [ "Weapon_Daggers_Bone" ],
"TypeHint": "String",
"Description": "NPC Weapons"
},
"AttackSequence": {
"Value": "Component_Instruction_Attack_Sequence_Feran_Burrower",
"Description": "The attack sequence to use in combat"
},
"AttackDistance": {
"Value": 2,
"Description": "The distance at which an NPC will execute attacks"
},
"CombatRelativeTurnSpeed": {
"Value": 1.5,
"Description": "Modifier that decides turn speed difference in combat"
},
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
},
"IsMemory": {
"Value": false,
"Description": "Defines if the NPC is a memory"
},
"MemoriesCategory": {
"Value": "Other",
"Description": "Defines the category of the memory"
},
"MemoriesNameOverride": {
"Value": "",
"Description": "Overrides the memory name if set"
},
"NameTranslationKey": {
"Value": "server.npcRoles.Template.name",
"Description": "Translation key for NPC name display"
}
},
"IsMemory": { "Compute": "IsMemory" },
"MemoriesCategory": { "Compute": "MemoriesCategory" },
"MemoriesNameOverride": { "Compute": "MemoriesNameOverride" },
"Appearance": { "Compute": "Appearance" },
"DropList": { "Compute": "DropList" },
"DisableDamageGroups": [ "Self" ],
"HotbarItems": { "Compute": "Weapons" },
"DefaultNPCAttitude": "Ignore",
"DefaultPlayerAttitude": "Neutral",
"AttitudeGroup": { "Compute": "AttitudeGroup" },
"KnockbackScale": 0.5,
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": { "Compute": "MaxSpeed" },
"Gravity": 10,
"RunThreshold": 0.3,
"MaxFallSpeed": 15,
"MaxRotationSpeed": 360,
"Acceleration": 10
}
],
"MaxHealth": { "Compute": "MaxHealth" },
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": "Idle"
},
"Instructions": [
{
"Reference": "Component_Instruction_Clear_Status_Animation"
},
{
"Sensor": {
"Type": "Beacon",
"Message": "Feran_All_Attack",
"TargetSlot": "LockedTarget"
},
"Actions": [
{
"Type": "State",
"State": "Attack"
}
]
},
{
"Reference": "Component_Instruction_Damage_Check",
"Modify": {
"_ExportStates": [ "Attack", "Search" ],
"AlertedRange": { "Compute": "AlertedRange" }
}
},
{
"Sensor": {
"Reference": "Component_Sensor_Scent_By_Attitude",
"Modify": {
"SmellRange": { "Compute": "SmellRange" },
"Attitudes": [ "Hostile", "Neutral" ]
}
},
"Actions": [
{
"Type": "State",
"State": "Alerted"
}
]
},
{
"Type": "Random",
"Name": "Feran_Idle_Random_Day",
"ResetOnStateChange": false,
"Instructions": [
{
"Weight": 50,
"Instructions": [
{
"Continue": true,
"ActionsAtomic": true,
"Actions": [
{
"Type": "Timeout",
"Delay": [ 15, 20 ]
},
{
"Type": "ResetInstructions",
"Instructions": [ "Feran_Idle_Random_Day" ]
}
]
},
{
"Reference": "Component_Instruction_Intelligent_Idle_Motion_Wander_Far"
}
]
},
{
"Weight": 50,
"Instructions": [
{
"Sensor": {
"Type": "Not",
"Sensor": {
"Type": "Self",
"Filters": [
{
"Type": "StandingOnBlock",
"BlockSet": "Sand"
}
]
}
},
"Actions": [
{
"Type": "ResetInstructions",
"Instructions": [ "Feran_Idle_Random_Day" ]
}
]
},
{
"Actions": [
{
"Type": "State",
"State": "Hide"
}
]
}
]
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Hide"
},
"Instructions": [
{
"Continue": true,
"Sensor": {
"Type": "Any",
"Once": true
},
"Actions": [
{
"Type": "TimerStart",
"Name": "FeranBurrowerHide",
"StartValueRange": [ 60, 60 ],
"RestartValueRange": [ 60, 60 ]
},
{
"Type": "TimerRestart",
"Name": "FeranBurrowerHide"
}
]
},
{
"Reference": "Component_Instruction_Damage_Check",
"Modify": {
"_ExportStates": [ "Attack", "Search" ],
"AlertedRange": { "Compute": "AlertedRange" }
}
},
{
"Sensor": {
"Type": "State",
"State": ".Default"
},
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status",
"Animation": "Laydown"
},
{
"Type": "Timeout",
"Delay": [ 0.83, 0.83 ]
},
{
"Type": "State",
"State": ".Loop"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".Loop"
},
"Instructions": [
{
"Reference": "Component_Instruction_Play_Animation",
"Modify": {
"Animation": "Sleep"
}
},
{
"Sensor": {
"Once": true,
"Type": "Mob",
"Range": { "Compute": "SmellRange" },
"LockOnTarget": true,
"GetPlayers": true,
"GetNPCs": true,
"ExcludeOwnType": true,
"Prioritiser": {
"Type": "Attitude",
"AttitudesByPriority": [ "Hostile", "Neutral" ]
}
},
"Actions": [
{
"Type": "SpawnParticles",
"Offset": [ 0, 0.5, 0 ],
"ParticleSystem": "Alerted"
}
]
},
{
"Sensor": {
"Reference": "Component_Sensor_Scent_By_Attitude",
"Modify": {
"SmellRange": 8,
"Attitudes": [ "Hostile", "Neutral" ]
}
},
"Actions": [
{
"Type": "State",
"State": ".EmergeProximity"
}
]
},
{
"Sensor": {
"Type": "Timer",
"Name": "FeranBurrowerHide",
"State": "Stopped"
},
"Actions": [
{
"Type": "State",
"State": ".Emerge"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".EmergeProximity"
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status",
"Animation": "Wake"
},
{
"Type": "Timeout",
"Delay": [ 1, 1.1 ]
},
{
"Type": "State",
"State": "Threaten.Angry"
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".Emerge"
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status",
"Animation": "Wake"
},
{
"Type": "Timeout",
"Delay": [ 1, 1.1 ]
},
{
"Type": "ResetInstructions",
"Instructions": [ "Feran_Idle_Random_Day" ]
},
{
"Type": "State",
"State": "Idle"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Alerted"
},
"Instructions": [
{
"$Comment": "Animations",
"Continue": true,
"Sensor": {
"Type": "Any",
"Once": true
},
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status",
"Animation": "Alerted"
},
{
"Type": "SpawnParticles",
"Offset": [ 0, 2.1, 0 ],
"ParticleSystem": "Alerted"
}
]
},
{
"Sensor": {
"Type": "Beacon",
"Message": "Feran_All_Attack",
"TargetSlot": "LockedTarget"
},
"Actions": [
{
"Type": "State",
"State": "Attack"
}
]
},
{
"Reference": "Component_Instruction_Damage_Check",
"Modify": {
"_ExportStates": [ "Attack", "Search" ],
"AlertedRange": { "Compute": "AlertedRange" }
}
},
{
"Sensor": {
"Type": "And",
"Sensors": [
{
"Type": "Target",
"Range": { "Compute": "AlertedRange" }
},
{
"Type": "Target",
"Filters": [
{
"Type": "NPCGroup",
"IncludeGroups": [ "Scarak" ]
}
]
}
]
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "Timeout",
"Delay": [ 1, 2 ]
},
{
"Type": "Beacon",
"Message": "Feran_Warriors_Attack",
"Range": 30,
"TargetGroups": [ "Feran" ],
"SendTargetSlot": "LockedTarget"
},
{
"Type": "State",
"State": "Attack"
}
],
"HeadMotion": {
"Type": "Watch"
}
},
{
"Sensor": {
"Type": "And",
"Sensors": [
{
"Type": "Target",
"Range": { "Compute": "AlertedRange" }
},
{
"Type": "Target",
"Filters": [
{
"Type": "Attitude",
"Attitudes": [ "Hostile" ]
}
]
}
]
},
"ActionsAtomic": true,
"Actions": [
{
"Type": "Timeout",
"Delay": [ 1, 2 ]
},
{
"Type": "State",
"State": "Attack"
}
],
"HeadMotion": {
"Type": "Watch"
}
},
{
"Sensor": {
"Reference": "Component_Sensor_Scent_By_Attitude",
"Modify": {
"SmellRange": 8,
"Attitudes": [ "Hostile", "Neutral" ]
}
},
"Actions": [
{
"Type": "State",
"State": "Threaten"
}
]
},
{
"Sensor": {
"Type": "Target",
"Range": { "Compute": "AlertedRange" }
},
"HeadMotion": {
"Type": "Watch"
}
},
{
"Actions": [
{
"Type": "State",
"State": "Idle"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Threaten"
},
"Instructions": [
{
"Reference": "Component_Instruction_Clear_Status_Animation"
},
{
"Sensor": {
"Type": "Beacon",
"Message": "Feran_All_Attack",
"TargetSlot": "LockedTarget"
},
"Actions": [
{
"Type": "State",
"State": "Attack"
}
]
},
{
"Reference": "Component_Instruction_Damage_Check",
"Modify": {
"_ExportStates": [ "Attack", "Attack" ],
"AlertedRange": { "Compute": "AlertedRange" }
}
},
{
"Sensor": {
"Reference": "Component_Sensor_Scent_By_Attitude",
"Modify": {
"SmellRange": { "Compute": "SmellRange" },
"Attitudes": [ "Hostile" ]
}
},
"Actions": [
{
"Type": "State",
"State": "Alerted"
}
]
},
{
"Sensor": {
"Type": "Not",
"Sensor": {
"Type": "Target",
"Range": { "Compute": "AlertedRange" }
}
},
"ActionsAtomic": true,
"Actions": [
{
"Type": "Timeout",
"Delay": [ 5, 10 ]
},
{
"Type": "State",
"State": "Idle"
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".Default"
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Range": 8
},
"BodyMotion": {
"Type": "Flee",
"SlowDownDistance": 7,
"StopDistance": 10,
"RelaxedMoveConstraints": false
}
},
{
"Actions": [
{
"Type": "State",
"State": ".Initial"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".Initial"
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Range": 8
},
"Actions": [
{
"Type": "State",
"State": ".MoveAgain"
}
]
},
{
"Sensor": {
"Type": "Target",
"Range": { "Compute": "SmellRange" },
"Filters": [
{
"Type": "LineOfSight"
}
]
},
"HeadMotion": {
"Type": "Watch"
}
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".MoveAgain"
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Range": 10
},
"BodyMotion": {
"Type": "Flee",
"SlowDownDistance": 9,
"StopDistance": 11,
"RelaxedMoveConstraints": false
}
},
{
"Actions": [
{
"Type": "State",
"State": ".Angry"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".Angry"
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Range": 2
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "Attack",
"$TODO": "Flexibility for other variants",
"Attack": "Feran_Sharptooth_Sword_Swing_Down",
"AttackPauseRange": [ 1, 2 ]
},
{
"Type": "Timeout",
"Delay": [ 0.3, 0.3 ]
},
{
"Type": "State",
"State": ".MoveAgain"
}
],
"HeadMotion": {
"Type": "Aim",
"RelativeTurnSpeed": { "Compute": "CombatRelativeTurnSpeed" }
}
},
{
"Sensor": {
"Type": "Target",
"Range": 5
},
"BodyMotion": {
"Type": "Seek",
"SlowDownDistance": 2,
"StopDistance": 1.5,
"RelaxedMoveConstraints": false
}
},
{
"Continue": true,
"Sensor": {
"Type": "Target",
"Range": { "Compute": "SmellRange" },
"Filters": [
{
"Type": "LineOfSight"
}
]
},
"HeadMotion": {
"Type": "Watch"
}
},
{
"Sensor": {
"Type": "Target",
"Range": 12
},
"ActionsAtomic": true,
"Actions": [
{
"Type": "Timeout",
"Delay": [ 10, 15 ]
},
{
"Type": "State",
"State": "Idle"
}
]
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Search"
},
"Instructions": [
{
"Reference": "Component_Feran_Instruction_Search",
"Modify": {
"_ExportStates": [ "Alerted", "Attack", "Search", "Idle" ],
"SmellRange": { "Compute": "SmellRange" },
"AlertedRange": { "Compute": "AlertedRange" }
}
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Attack"
},
"Instructions": [
{
"Reference": "Component_Instruction_Clear_Status_Animation"
},
{
"Continue": true,
"Sensor": {
"Type": "Any",
"Once": true
},
"Actions": [
{
"Type": "Beacon",
"Message": "Feran_Warriors_Attack",
"Range": 30,
"TargetGroups": [ "Feran" ],
"SendTargetSlot": "LockedTarget"
}
]
},
{
"Reference": "Component_Instruction_Target_Adjusted_Attack_Melee",
"Modify": {
"TargetSwitchTimer": [ 5, 5 ],
"AttackSequence": { "Compute": "AttackSequence" },
"AttackDistance": { "Compute": "AttackDistance" },
"TargetRange": 5,
"CombatRelativeTurnSpeed": { "Compute": "CombatRelativeTurnSpeed" }
}
},
{
"Reference": "Component_Instruction_Simple_Soft_Leash",
"Modify": {
"_ExportStates": [ "Idle" ]
}
},
{
"$TODO": "Convert this to use smell",
"Reference": "Component_Instruction_Intelligent_Chase",
"Modify": {
"_ExportStates": [ "Search", "Idle", "Search" ],
"ViewRange": { "Compute": "AlertedRange" },
"HearingRange": { "Compute": "SmellRange" },
"RelativeSpeed": 0.8
}
}
]
}
]
}
],
"NameTranslationKey": { "Compute": "NameTranslationKey" }
}