33 lines
1.1 KiB
Lua
33 lines
1.1 KiB
Lua
-- 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 = "spinattack",
|
|
cost = 03,
|
|
|
|
targetNumber = 1, -- 0 for targeting all ennemies
|
|
targetEnnemies = true,
|
|
|
|
choregraphy = { -- the main attack choregraphy
|
|
{"setAnimation", "none", "walk", false},
|
|
{"goTo", "none", "target", 0, 0, 0.6, false},
|
|
{"wait", "none", 0.3},
|
|
{"setAnimation", "none", "spin", false},
|
|
{'playSFX', "none", 'spinrelease'},
|
|
{"waitActorFinished", "none", "goTo"},
|
|
{"sendDamage", "none", 120, 100, false, false},
|
|
{'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
|
|
{'playSFX', "sentDamage", 'hitconnect'},
|
|
{'jumpBack', "none", 0.3, true},
|
|
{"wait", "none", 0.1},
|
|
{"setAnimation", "none", "walk", false},
|
|
{'goTo', "none", "start", 0, 0, 0.3, true},
|
|
{'setAnimation', "none", 'idle', false},
|
|
},
|
|
|
|
onContact = { -- if the attack move and touch multiple ennemies, you can add
|
|
-- specific effect when you touch the ennemy.
|
|
},
|
|
}
|