Tries to capture a companion.
Properties
Referenced by
item (1)
Raw data
{
"status": "Bug",
"gfx": {
"file": "UI/icons/atlas_weapon_GreatAxe_96PX.png",
"size": 48,
"x": 2,
"y": 0,
"width": 2,
"height": 2
},
"id": "Net_Capture",
"type": "Attack",
"nature": "Attack",
"texts": {
"name": "Capture",
"desc": "Tries to capture a companion."
},
"anim": {
"blend": 0.1,
"startFrame": 0,
"file": "Anim/Human/TwoHanded/Combat/Anim_Human_TwoHanded_AttackCombo.fbx"
},
"duration": 1,
"steps": [
{
"props": {
"move": {
"direction": [
0
]
}
},
"on": 0,
"type": 8,
"duration": 0.1,
"range": 2,
"delay": 0.2
},
{
"on": 0,
"visuals": {
"playAnims": [
{
"anim": {
"blend": 0,
"startFrame": 15,
"file": "Anim/Human/TwoHanded/Combat/Anim_Human_TwoHanded_AttackCombo.fbx"
}
}
]
},
"props": {},
"type": 11,
"delay": 0.36
},
{
"on": 0,
"props": {
"position": {
"directionalOffset": {
"x": 2
}
},
"hitCount": 1
},
"type": 0,
"delay": 0.36,
"range": 2,
"visuals": {
"fxs": [
{
"set": "Earth_AOE_Ground",
"props": {},
"space": 1,
"flags": 16
}
]
},
"id": "Capture"
},
{
"on": 0,
"visuals": {
"camShake": 25
},
"props": {},
"type": 11,
"delay": 0.36
},
{
"on": 13,
"props": {
"position": {
"origin": 4
}
},
"id": "Captured",
"type": 11,
"visuals": {
"fxs": [
{
"set": "Hero_LevelUp",
"props": {},
"scale": 0.5,
"space": 1,
"flags": 192
}
],
"target": 1
}
},
{
"on": 13,
"props": {
"position": {
"origin": 4
}
},
"id": "Missed",
"type": 11,
"visuals": {
"fxs": [
{
"set": "Wind_Blast",
"props": {},
"scale": 0.5,
"space": 1,
"flags": 192
}
],
"target": 1
}
}
],
"flags": [],
"mastery": [],
"props": {},
"vars": {},
"script": "function onStep(s) {\n\tif (s.kind == Steps.Capture) {\n\n\t}\n}\n\nfunction onHit(hit) {\n\tif (hit.step.kind == Steps.Capture) {\n\t\tif (isCritter(hit.targetUnit)) {\n\t\t\tvar pos = hit.targetUnit.position;\n\t\t\ttrace(\"Hit \" + hit.targetUnit + \" count \" + hit.hitCount );\n\t\t\tif (ownerHero?.tryCaptureCritter(hit.targetUnit)) {\n\t\t\t\tplayStep(Steps.Captured, hit.targetUnit, pos);\n\t\t\t} else {\n\t\t\t\tplayStep(Steps.Missed, hit.targetUnit, pos);\n\t\t\t}\n\t\t}\n\t}\n}",
"_xrefs": [
{
"from_sheet": "item",
"from_id": "Net_Basic",
"via_field": "skills"
}
]
}