2019-08-18 19:02:14 +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 {
|
2021-06-06 13:19:25 +02:00
|
|
|
name = "attack", -- unused for this attack, but still usefull sometimes
|
|
|
|
fullname = "Spin Attack",
|
|
|
|
cost = 00, -- the pp cost of the attack. Will be ignored if it's set
|
|
|
|
-- as character default attack
|
|
|
|
description = "Spin to attack. Roll at the right time for more damages",
|
2019-08-18 19:02:14 +02:00
|
|
|
|
2020-07-20 12:24:26 +02:00
|
|
|
targetNumber = 1, -- 0 for targeting all ennemies
|
2021-06-06 13:19:25 +02:00
|
|
|
targetEnnemies = true,
|
2019-08-18 19:02:14 +02:00
|
|
|
|
|
|
|
choregraphy = { -- the main attack choregraphy
|
2021-08-07 13:36:13 +02:00
|
|
|
{"setAnimation", "none", "actor", "walk", false},
|
|
|
|
{"taggedAction", "playerMove", {"goTo", "none", "actor", "target", 0, 0, 0.6, false}},
|
2021-06-06 13:19:25 +02:00
|
|
|
{"wait", "none", 0.3},
|
2021-08-07 13:36:13 +02:00
|
|
|
{"setAnimation", "none", "actor", "spin", false},
|
2021-06-06 13:19:25 +02:00
|
|
|
{'playSFX', "none", 'spinrelease'},
|
2021-07-17 21:55:14 +02:00
|
|
|
{"waitFor", "none", "actionFinished:playerMove"},
|
2021-06-06 13:19:25 +02:00
|
|
|
{"sendDamage", "none", 100, "basic", "none", false},
|
2021-08-15 14:49:03 +02:00
|
|
|
{"sendStatus", "none", "vulnerable", 5, true},
|
|
|
|
{'addGFX', "sentDamage", 'hit1', "target", 0, 0, 0, true, false},
|
2019-08-19 16:46:30 +02:00
|
|
|
{'playSFX', "sentDamage", 'hitconnect'},
|
2021-08-07 13:36:13 +02:00
|
|
|
{'jumpBack', "none", "actor", 4, 8, true},
|
2021-06-06 13:19:25 +02:00
|
|
|
{"wait", "none", 0.1},
|
2021-08-07 13:36:13 +02:00
|
|
|
{"setAnimation", "none", "actor", "walk", false},
|
|
|
|
{'goTo', "none", "actor", "start", 0, 0, 0.3, true},
|
|
|
|
{'setAnimation', "none", "actor", 'idle', false},
|
2019-08-18 19:02:14 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
onContact = { -- if the attack move and touch multiple ennemies, you can add
|
|
|
|
-- specific effect when you touch the ennemy.
|
|
|
|
},
|
|
|
|
}
|