Snapdragon
Server/NPC/Roles/Creature/Mythic/Snapdragon.json, 3.9 KB
Fields
| Field | Type |
|---|---|
Type | string |
Reference | string |
Modify | object |
Parameters | object |
Source
{
"Type": "Variant",
"Reference": "Template_Predator",
"Modify": {
"Appearance": "Snapdragon",
"WanderRadius": 6,
"ViewRange": 12,
"HearingRange": 8,
"DropList": "Drop_Snapdragon",
"MaxSpeed": 10,
"Attack": "Root_NPC_Attack_Melee",
"AlwaysSleepAtNight": true,
"MaxHealth": 103,
"IsMemory": true,
"MemoriesCategory": "Reptile",
"_InteractionVars": {
"Melee_Start": {
"Interactions": [
{
"Parent": "NPC_Attack_Melee_Simple",
"$Comment": "Sets animations and delay before hit",
"Effects": {
"ItemPlayerAnimationsId": "Tiger_Sabertooth_Default",
"ItemAnimationId": "Bite"
},
"RunTime": 0.333
}
]
},
"Melee_Damage": {
"Interactions": [
{
"Type": "CooldownCondition",
"Id": "Snapdragon_Poison",
"Next": {
"Type": "Serial",
"Interactions": [
{
"Type": "TriggerCooldown",
"Cooldown": {
"Id": "Snapdragon_Poison",
"Cooldown": 5
}
},
{
"Type": "Simple",
"RunTime": 0.1,
"Effects": {
"Particles": [
{
"SystemId": "Placeholder_Poison_Melee_Slash",
"TargetEntityPart": "Entity",
"PositionOffset": {
"X": 0,
"Y": 0.75,
"Z": 1.5
},
"RotationOffset": {
"Pitch": -30,
"Roll": 0,
"Yaw": 90
}
}
]
}
},
{
"Parent": "NPC_Attack_Melee_Damage",
"$Comment": "Sets damage and onhit effects with poison",
"DamageCalculator": {
"Type": "Absolute",
"BaseDamage": {
"Physical": 27
},
"RandomPercentageModifier": 0.1
},
"DamageEffects": {
"Knockback": {
"Force": 0.5
}
},
"Next": {
"Type": "EffectCondition",
"Entity": "Target",
"EntityEffectIds": [
"Antidote"
],
"Match": "None",
"Next": {
"Type": "ClearEntityEffect",
"Entity": "Target",
"EntityEffectId": "Poison_T3",
"Next": {
"Type": "ApplyEffect",
"Entity": "Target",
"EffectId": "Poison_T3"
}
}
}
}
]
},
"Failed": {
"Parent": "NPC_Attack_Melee_Damage",
"$Comment": "Damage only when poison is on cooldown",
"DamageCalculator": {
"Type": "Absolute",
"BaseDamage": {
"Physical": 27
},
"RandomPercentageModifier": 0.1
},
"DamageEffects": {
"Knockback": {
"Force": 0.5
}
}
}
}
]
}
},
"NameTranslationKey": {
"Compute": "NameTranslationKey"
}
},
"Parameters": {
"NameTranslationKey": {
"Value": "server.npcRoles.Snapdragon.name",
"Description": "Translation key for NPC name display"
}
}
}