86 lines
3.2 KiB
Lua
86 lines
3.2 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 = "attack", -- unused for this attack, but still usefull sometimes
|
|
cost = 00, -- the pp cost of the attack. Will be ignored if it's set
|
|
-- as character default attack
|
|
|
|
target = nil, -- which area can be selected as a target with the cursor.
|
|
-- if not nil : {ox, oy, shape, size, affectedByDirection}
|
|
|
|
targetNumber = 1, -- how many ennemy you can target with the attack.
|
|
|
|
effectArea = {1, 0, "point", 1, true}, -- which area is affected by the attack
|
|
-- if not nil : {ox, oy, shape, size, affectedByDirection}
|
|
|
|
choregraphy = { -- the main attack choregraphy
|
|
{'playSFX', "none", 'hit'},
|
|
{'setAnimation', "none", 'hit1start', true},
|
|
{'sendDamage', "none", 33, 100, false, false},
|
|
{'addGFX',"sentDamage", 'hitGFX', 0.75, 0, true, false},
|
|
{'playSFX', "sentDamage", 'hitconnect'},
|
|
{'setAnimation', "none", 'hit1end', true},
|
|
|
|
{'playSFX', "none", 'hit'},
|
|
{'setAnimation', "none", 'hit2start', true},
|
|
{'sendDamage', "none", 33, 100, false, false},
|
|
{'addGFX',"sentDamage", 'hitGFX', 0.75, 0, true, false},
|
|
{'playSFX', "sentDamage", 'hitconnect'},
|
|
{'setAnimation', "none", 'hit2end', true},
|
|
|
|
{'playSFX', "none", 'hit'},
|
|
{'setAnimation', "none", 'hit3start', true},
|
|
{'sendDamage', "none", 33, 100, false, false},
|
|
{'addGFX',"sentDamage", 'hitGFX', 0.75, 0, true, false},
|
|
{'playSFX', "sentDamage", 'hitconnect'},
|
|
{'setAnimation', "none", 'hit3end', true},
|
|
{'setAnimation', "none", 'idle', false},
|
|
{'wait', "none", 0.5}
|
|
},
|
|
|
|
onContact = { -- if the attack move and touch multiple ennemies, you can add
|
|
-- specific effect when you touch the ennemy.
|
|
},
|
|
}
|
|
|
|
--[[
|
|
CHOREGRAPHY POSSIBLE EFFECTS
|
|
-- "wait" :: Simply wait before doing the next command
|
|
-- :: {"wait", condition, duration}
|
|
|
|
-- "setAnimation" :: Change the animation of the battler
|
|
-- {"setAnimation", condition, animation, blockProcess}
|
|
|
|
-- "addGFX" :: Show a GFX relatively to the target position
|
|
-- :: (player if target is nil)
|
|
-- :: {"addGFX", condition, "gfxname", x, y, affectedByDirection, blockProcess}
|
|
|
|
-- "sendDamage" :: Send Damage on the whole target Area
|
|
-- ::
|
|
-- :: {"sendDamage", condition, damageEffect, accuracy, isSpecial, isAerial}
|
|
|
|
-- "sendDamageFromPos" :: Send Damage on a point from Actor position
|
|
-- ::
|
|
-- :: {"sendDamageFromPos", condition, dx, dy, damageEffect, accuracy, isSpecial, isAerial, affectedByDirection}
|
|
|
|
-- "sendDamageFromCursor" :: Send Damage on a point from Cursor final position
|
|
-- ::
|
|
-- :: {"sendDamageFromCursor", condition, dx, dy, damageEffect, accuracy, isSpecial, isAerial, affectedByDirection}
|
|
|
|
|
|
-- "dashForward" :: Dash until your are stopped
|
|
-- :: {"dashForward", condition, speed, blockProcess}
|
|
|
|
-- "jumpBack" :: jump to initial position
|
|
-- :: {"jumpBack", condition, blockProcess}
|
|
|
|
CONDITION TYPES
|
|
--
|
|
-- "sentDamage" :: an ennemy have received damage
|
|
--
|
|
--
|
|
|
|
]]
|