Abilities

From HIVE
Revision as of 07:33, 26 March 2013 by DevliN (talk | contribs)
Jump to navigation Jump to search

Abilities are created using the Data Editor and each ability contains a set of orders that the unit can perform, if it has the ability. Abilities cannot be added to a unit later in-game. Because of this you need to add all abilities to the units that are supposed to have them, even those that are initially disabled, in the Data Editor. There is no limit to the total ability count for a unit, however.

Each ability has a set of orders used to manipulate it. Most ability types have only "execute" and "cancel", but some, like Train, can have up to 20. In order for these commands to work, they need to have a Default Button set (usually found in Commands+ or Info+ fields). This feature is purely editor-only, meaning it can't be changed via Triggers or any other method. The button selected as default will serve as name of the ability's command on the casting unit's command card.

For more information about adding abilities, see Adding Abilities to Units.


Arm Magazine

Arm Magazine uses spawned units to attack the caster's target, like a Carrier or a Brood Lord. This also requires the caster unit to have a weapon that coincides with the ability, causing the spawned units to actively attack the caster's target.

Attack

An ability of this type is necessary for a unit to be able to attack with weapons. It contains some settings, but usually you will just use the one instance of this ability (also named Attack) that is already created.

Any specific customization regarding the unit's attack parameters (i.e. damage, attack speed, etc.) is done via Weapons.

Augment

An augment ability is used to modify use of another ability, by adding an extra effect prior to the ability being cast.

Battery

Unused

Beacon

Unused

Behavior

The behavior ability is used to toggle a behavior on and off, or simply add a permanent behavior to the casting unit. If the behavior change is timed (adding a buff for a moment), it is better to use Effect - Instant with Apply Behavior effect.

Build

A build ability allows the building of other units. Unless the build time is 0, the build ability requires the built units to have the Buildable ability that defines how the unit behaves while being built. For normal structures, there is already one Buildable ability called "Build in Progress" that should work fine.

Buildable

Units created with the Build ability are required to have this ability.

Effect - Instant


Applies an Effect as soon as the ability is cast. The effect is instant, as it does not require the player to select a target (the caster is the target by default).

Effect - Target


Applies an Effect on the target unit or point. These effects are different from Instant Effects because they require the player to specify the target or location for the effect to occur.

Harvest

This ability allows a unit to gather resources.

Interact

Interact is a type of ability that allows unit to be used by other players than the owner. Interact usually works on auto-cast, although it can be used as manually-cast ability. Casting this ability on a unit gives control of the casting unit to the target's unit controller (i.e. an item shop will cast this ability to grant control to the heroes standing nearby).

Inventory

The inventory ability allows the use of Item Containers in order for units to use or equip items.

Learn

The learn ability allows a unit to learn other abilities in-game. It is commonly used to simulate WarCraft 3-style heroes, although it can do much more.

Merge

Allows two units to fuse together to create a new unit.

Mergeable

An ability that must be on a unit for a Merge Ability to function properly.

Morph

Allows a unit to turn into another unit. You are able to set certain time paramaters to help facilitate the change (i.e. adding time to the duration of the morph), but aside from a basic size (morphing from a smaller to larger unit, or vice versa) or height change (morphing from a ground to air unit, or vice versa) you can't automatically animate a morph without an animated model to go with it (i.e. the morph from a Fighter Viking to Assault Viking).

Morph Placement

Same as Morph, except it is location-targeted meaning it is used to morph into a stationary unit (i.e. a Terran building landing).

Move

An ability of this type is necessary for a unit to be able to move. It contains some settings, but usually you will just use the one instance of this ability (also named Move) that is already created.

Pawn

This allows a player to sell item units with the "Pawnable" flag to the unit that has this ability.

Progress

Unknown.

Queue

A queue ability displays and manages a unit training queue. Without this ability, Train still works, but it doesn't show up and only one unit can be trained at a time.

Rally

An ability of this type is necessary for a unit to be able to rally to a point. It contains some settings, but usually you will just use the one instance of this ability (also named Rally) that is already created.

Redirect Instant

Redirect Target

Research

Research is used to purchase upgrades. It is also the only way to manipulate upgrades through data editor.

Revive

Used to revive dead units, usually used for hero units.

Specialize

Specialize works simillary to Learn, it allows units to buy certain upgrades for themselves, in form of effects.

Stop

Stop allows unit to use the general stop command, as well as some other basic commands (hold fire for example). Usually you won't have to create a new Stop ability, as there is already one, called Stop, which will work for all units.

Train

Train allows creation of other units. It is usually used together with Queue ability, that handles training queue.

Transport

Transport gives the unit cargo space to carry other units.

Warp Train

Warpable