2020-08-04 23:21:45 +02:00
|
|
|
-- A basic file describing the basic attack, in order to make it customizable one
|
|
|
|
-- day ?
|
|
|
|
|
|
|
|
-- Also serve as a tutoriel for how to create a file attack and choregraphy
|
|
|
|
|
|
|
|
return {
|
|
|
|
name = "tackle",
|
|
|
|
cost = 0,
|
|
|
|
|
|
|
|
targetNumber = 1, -- 0 for targeting all ennemies
|
|
|
|
targetEnnemies = true,
|
|
|
|
|
2020-08-05 09:25:38 +02:00
|
|
|
isSpecial = false,
|
|
|
|
|
2020-08-04 23:21:45 +02:00
|
|
|
choregraphy = { -- the main attack choregraphy
|
2021-07-18 14:09:39 +02:00
|
|
|
{"goTo3D", "none", "target", -0.4, 0, 0, 0.5, true},
|
2021-05-15 15:01:02 +02:00
|
|
|
{"sendDamage", "none", 120, "basic", "none", false},
|
2020-08-04 23:21:45 +02:00
|
|
|
{'addGFX', "sentDamage", 'hitGFX', "target", -0.4, 0, true, false},
|
|
|
|
{'playSFX', "sentDamage", 'hitconnect'},
|
2021-07-18 14:09:39 +02:00
|
|
|
{'jumpBack', "none", 4, 8, true},
|
2020-08-04 23:21:45 +02:00
|
|
|
{"wait", "none", 0.1},
|
2021-07-18 14:09:39 +02:00
|
|
|
{'goTo3D', "none", "start", 0, 0, 0, 0.3, true},
|
2020-08-04 23:21:45 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
onContact = { -- if the attack move and touch multiple ennemies, you can add
|
|
|
|
-- specific effect when you touch the ennemy.
|
|
|
|
},
|
|
|
|
}
|