AttacksTable

From PSwiki
Revision as of 13:39, 11 January 2022 by Grimston (talk | contribs) (Created page with "Holds attacks {| class="wikitable" |+ !UE !Field !Type !Key Type !Default !Extra !Description |- |ADD |id |int(11) |PRI | |auto_increment |holds the attacks unique id number |- |ADD |name |varchar(40) |UNI |default | |is the attacks name, each name must be unique. |- |ADD |image_name |varchar(200) | | | |the icon image |- |ADD |attack_anim |varchar(40) | | | |The visual effect of the attack |- |ADD |attack_description |text | | | |a short description of the attack...")
(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
ADD id int(11) PRI auto_increment holds the attacks unique id number
ADD name varchar(40) UNI default is the attacks name, each name must be unique.
ADD image_name varchar(200) the icon image
ADD attack_anim varchar(40) The visual effect of the attack
ADD attack_description text a short description of the attack
ADD 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.
ADD attackType int(11) the ID of the type of attack, found in the attack_types table
ADD delay text A MathExpression to compute the time before the attack starts (based on the latency of weapon, range, attack speed, ...)
ADD range text Mostly for range attacks, melee is confined based on weapon range
ADD aoe_radius text This is the radius of the AOE attack. It can be a formula or a number; 0 for no AOE
ADD aoe_angle text The angle in front of the player the AOE attack will affect, 1-360 degrees and can also be a formula
ADD outcome varchar(40) The effect, a progression script, of the attack
ADD 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.