AttacksTable

From PSwiki
Revision as of 14:21, 11 January 2022 by Grimston (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Holds attacks

UE Field Type Key Type Default Extra Description
id int(11) PRI auto_increment holds the attacks unique id number
name varchar(40) UNI default is the attacks name, each name must be unique.
image_name varchar(200) the icon image
attack_anim varchar(40) The visual effect of the attack
attack_description text a short description of the attack
damage varchar(40) A math script to compute the chance of success and final damage. Variables defined here can be used in the range, aoe_radius, and aoe_angle MathExpressions.
attackType int(11) the ID of the type of attack, found in the attack_types table
delay text A MathExpression to compute the time before the attack starts (based on the latency of weapon, range, attack speed, ...)
range text Mostly for range attacks, melee is confined based on weapon range
aoe_radius text This is the radius of the AOE attack. It can be a formula or a number; 0 for no AOE
aoe_angle text The angle in front of the player the AOE attack will affect, 1-360 degrees and can also be a formula
outcome varchar(40) The effect, a progression script, of the attack
requirements varchar(250)

is an XML script of requirements, these requirements will be checked before a character can use the attack. schema to be added soon, but will be very flexible.