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-08-07 13:36:13 +02:00
|
|
|
{"goTo3D", "none", "actor", "target", -0.4, 0, 0, 0.5, true},
|
2021-05-15 15:01:02 +02:00
|
|
|
{"sendDamage", "none", 120, "basic", "none", false},
|
2021-08-15 14:49:03 +02:00
|
|
|
{'addGFX', "sentDamage", 'hit1', "target", -0.4, 0, 0, true, false},
|
2020-08-04 23:21:45 +02:00
|
|
|
{'playSFX', "sentDamage", 'hitconnect'},
|
2021-08-07 13:36:13 +02:00
|
|
|
{'jumpBack', "none", "actor", 4, 8, true},
|
2020-08-04 23:21:45 +02:00
|
|
|
{"wait", "none", 0.1},
|
2021-08-07 13:36:13 +02:00
|
|
|
{'goTo3D', "none", "actor", "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.
|
|
|
|
},
|
|
|
|
}
|