Daedalus Dock - Modules - TypesVar Details - Proc Details

cooldown

Preset for an action that has a cooldown.

Vars

active_background_icon_stateThe icon state the background uses when active
active_icon_stateThe active icon state of the spell's button icon, used for editing the icon "on"
active_overlay_icon_stateThe active icon_state of the overlay we apply
base_background_icon_stateThe base icon_state of this action's background
base_icon_stateThe base icon state of the spell's button icon, used for editing the icon "off"
base_overlay_icon_stateThe base icon_state of the overlay we apply
click_cd_overrideThe cooldown added onto the user's next click.
click_to_activateSetting for intercepting clicks before activating the ability
cooldown_timeThe default cooldown applied when StartCooldown() is called
initialized_actionsList of prerequisite actions that have been initialized
melee_cooldown_timeThe default melee cooldown applied after the ability ends
next_melee_use_timeThe actual next time the owner of this action can melee
next_use_timeThe actual next time this ability can be used
panelThe stat panel this action shows up in the stat panel in. If null, will not show up.
ranged_mousepointerWhat icon to replace our mouse cursor with when active. Optional
sequence_actionsList of prerequisite actions that are used in this sequenced ability, you cannot put other sequenced abilities in this
shared_cooldownShares cooldowns with other abiliies, bitflag
text_cooldownWhether or not you want the cooldown for the ability to display in text form
unset_after_clickIf TRUE, we will unset after using our click intercept.
write_logIf TRUE, will log action usage to the owner's action log.

Procs

ActivateTo be implemented by subtypes (if not generic)
InterceptClickOnIntercepts client owner clicks to activate the ability
PreActivateFor signal calling
StartCooldownStarts a cooldown time to be shared with similar abilities Will use default cooldown time if an override is not specified
StartCooldownOthersStarts a cooldown time for other abilities that share a cooldown with this. Has some niche usage with more complicated attack ai! Will use default cooldown time if an override is not specified
StartCooldownSelfStarts a cooldown time for this ability only Will use default cooldown time if an override is not specified
create_sequence_actionsInitializes any sequence actions
handle_melee_attackCancels melee attacks if they are on cooldown.
is_valid_targetCheck if the target we're casting on is a valid target. For no-target (self cast) actions, the target being checked (cast_on) is the caster. For click_to_activate actions, the target being checked is the clicked atom.
set_click_abilitySet our action as the click override on the passed mob.
set_statpanel_formatFormats the action to be returned to the stat panel.
unset_click_abilityUnset our action as the click override of the passed mob.

Var Details

active_background_icon_state

The icon state the background uses when active

active_icon_state

The active icon state of the spell's button icon, used for editing the icon "on"

active_overlay_icon_state

The active icon_state of the overlay we apply

base_background_icon_state

The base icon_state of this action's background

base_icon_state

The base icon state of the spell's button icon, used for editing the icon "off"

base_overlay_icon_state

The base icon_state of the overlay we apply

click_cd_override

The cooldown added onto the user's next click.

click_to_activate

Setting for intercepting clicks before activating the ability

cooldown_time

The default cooldown applied when StartCooldown() is called

initialized_actions

List of prerequisite actions that have been initialized

melee_cooldown_time

The default melee cooldown applied after the ability ends

next_melee_use_time

The actual next time the owner of this action can melee

next_use_time

The actual next time this ability can be used

panel

The stat panel this action shows up in the stat panel in. If null, will not show up.

ranged_mousepointer

What icon to replace our mouse cursor with when active. Optional

sequence_actions

List of prerequisite actions that are used in this sequenced ability, you cannot put other sequenced abilities in this

shared_cooldown

Shares cooldowns with other abiliies, bitflag

text_cooldown

Whether or not you want the cooldown for the ability to display in text form

unset_after_click

If TRUE, we will unset after using our click intercept.

write_log

If TRUE, will log action usage to the owner's action log.

Proc Details

Activate

To be implemented by subtypes (if not generic)

InterceptClickOn

Intercepts client owner clicks to activate the ability

PreActivate

For signal calling

StartCooldown

Starts a cooldown time to be shared with similar abilities Will use default cooldown time if an override is not specified

StartCooldownOthers

Starts a cooldown time for other abilities that share a cooldown with this. Has some niche usage with more complicated attack ai! Will use default cooldown time if an override is not specified

StartCooldownSelf

Starts a cooldown time for this ability only Will use default cooldown time if an override is not specified

create_sequence_actions

Initializes any sequence actions

handle_melee_attack

Cancels melee attacks if they are on cooldown.

is_valid_target

Check if the target we're casting on is a valid target. For no-target (self cast) actions, the target being checked (cast_on) is the caster. For click_to_activate actions, the target being checked is the clicked atom.

Return TRUE if cast_on is valid, FALSE otherwise

set_click_ability

Set our action as the click override on the passed mob.

set_statpanel_format

Formats the action to be returned to the stat panel.

unset_click_ability

Unset our action as the click override of the passed mob.

if refund_cooldown is TRUE, we are being unset by the user clicking the action off if refund_cooldown is FALSE, we are being forcefully unset, likely by someone actually using the action