ability 
Vars | |
ability_cooldown_time | If set to a numeric value, the ability cannot be used before the cooldown has expired. |
---|---|
ability_icon | Icon to draw on the ability HUD, if any. |
ability_icon_state | Icon state to draw on the ability HUD, if any. |
ability_use_channel | If set, a do_after() will be applied to this spell. |
admin_blocked | If set, this ability cannot be used on the admin z-level. |
associated_handler_type | An associated handler type, used in add_ability(). |
cancel_ability_1p_str | "You cease readying yourself to use an ability." |
cast_failed_disabled_str | Failed due to being silenced/disabled |
cast_failed_incapacitated | Failed due to being downed/buckled |
cast_failed_no_admin_level | Failed due to being on admin level |
cast_failed_no_charges | Failed due to still recharging |
cast_failed_no_turf | Failed due to non-turf loc. |
cast_failed_on_cooldown | Failed due to still being on cooldown from last use |
cast_failed_purged_str | Failed due to purged/null rod. |
cast_failed_wrong_mob_type | Failed due to being invalid mob type |
cast_message_1p_str | "You use an ability." |
cast_message_3p_str | "$USER$ uses an ability." |
charge_delay | How long it takes between charges. |
check_incapacitated | What flags to check before an ability can be used, if any. |
copy_with_mind | Should this ability be copied between mobs when mind is transferred? |
desc | A descriptive string about the ability. |
end_prep_on_cast | Used in conjunction with prep_cast, if TRUE, ability will be untoggled after cast. |
expected_mob_type | What type of mob is required to use this ability. |
fail_cast_1p_str | "You fail to cast an ability." |
hidden_from_codex | If not set, the ability will have documentation generated for the codex. |
is_melee_invocation | Does this invocation trigger on a proximity click, if prepared? |
is_ranged_invocation | Does this invocation trigger on a non-proximity click, if prepared? |
is_supernatural | If set, this ability will be silenced by null rod and similar mechanics. |
item_end_on_cast | Ability items invoking this ability will GC afterwards. |
max_charge | Maximum charges that can be held of this item at a time. If unset, item does not accumulate charges. |
name | A descriptive identifier string. |
overlay_icon | If set, will attempt to draw from this icon on the turf where the ability is used. |
overlay_icon_state | If set, will attempt to draw this icon_state on the turf where the ability is used. |
overlay_lifespan | Will delete the overlay after this time. |
prep_cast | If TRUE, ability is toggled on and will fire when a target is clicked, instead of instantaneously on use. |
prepare_message_1p_str | "You begin preparing to use an ability on $TARGET$." |
prepare_message_3p_str | "$USER$ begins preparing to use an ability on $TARGET$." |
projectile_duration | Determines the lifetime of the projectile. |
projectile_step_delay | Sets the projectile step_delay. |
projectile_type | If set, this ability will create a projectile rather than applying the effect directly. |
ready_ability_1p_str | "You ready yourself to use an ability." |
requires_turf | If set, this ability can only be used while standing on a turf (not in an atom's contents or null loc). |
target_selector | A decl type that handles retrieving and validating targets. |
ui_element_type | Type of button to use for the UI. Should be /obj/screen/ability/button or subtype. |
use_sound | If set, will play a sound when used. |
use_sound_volume | Volume for above. |
Var Details
ability_cooldown_time 
If set to a numeric value, the ability cannot be used before the cooldown has expired.
ability_icon 
Icon to draw on the ability HUD, if any.
ability_icon_state 
Icon state to draw on the ability HUD, if any.
ability_use_channel 
If set, a do_after() will be applied to this spell.
admin_blocked 
If set, this ability cannot be used on the admin z-level.
associated_handler_type 
An associated handler type, used in add_ability().
cancel_ability_1p_str 
"You cease readying yourself to use an ability."
cast_failed_disabled_str 
Failed due to being silenced/disabled
cast_failed_incapacitated 
Failed due to being downed/buckled
cast_failed_no_admin_level 
Failed due to being on admin level
cast_failed_no_charges 
Failed due to still recharging
cast_failed_no_turf 
Failed due to non-turf loc.
cast_failed_on_cooldown 
Failed due to still being on cooldown from last use
cast_failed_purged_str 
Failed due to purged/null rod.
cast_failed_wrong_mob_type 
Failed due to being invalid mob type
cast_message_1p_str 
"You use an ability."
cast_message_3p_str 
"$USER$ uses an ability."
charge_delay 
How long it takes between charges.
check_incapacitated 
What flags to check before an ability can be used, if any.
copy_with_mind 
Should this ability be copied between mobs when mind is transferred?
desc 
A descriptive string about the ability.
end_prep_on_cast 
Used in conjunction with prep_cast, if TRUE, ability will be untoggled after cast.
expected_mob_type 
What type of mob is required to use this ability.
fail_cast_1p_str 
"You fail to cast an ability."
hidden_from_codex 
If not set, the ability will have documentation generated for the codex.
is_melee_invocation 
Does this invocation trigger on a proximity click, if prepared?
is_ranged_invocation 
Does this invocation trigger on a non-proximity click, if prepared?
is_supernatural 
If set, this ability will be silenced by null rod and similar mechanics.
item_end_on_cast 
Ability items invoking this ability will GC afterwards.
max_charge 
Maximum charges that can be held of this item at a time. If unset, item does not accumulate charges.
name 
A descriptive identifier string.
overlay_icon 
If set, will attempt to draw from this icon on the turf where the ability is used.
overlay_icon_state 
If set, will attempt to draw this icon_state on the turf where the ability is used.
overlay_lifespan 
Will delete the overlay after this time.
prep_cast 
If TRUE, ability is toggled on and will fire when a target is clicked, instead of instantaneously on use.
prepare_message_1p_str 
"You begin preparing to use an ability on $TARGET$."
prepare_message_3p_str 
"$USER$ begins preparing to use an ability on $TARGET$."
projectile_duration 
Determines the lifetime of the projectile.
projectile_step_delay 
Sets the projectile step_delay.
projectile_type 
If set, this ability will create a projectile rather than applying the effect directly.
ready_ability_1p_str 
"You ready yourself to use an ability."
requires_turf 
If set, this ability can only be used while standing on a turf (not in an atom's contents or null loc).
target_selector 
A decl type that handles retrieving and validating targets.
ui_element_type 
Type of button to use for the UI. Should be /obj/screen/ability/button or subtype.
use_sound 
If set, will play a sound when used.
use_sound_volume 
Volume for above.