/tg/ Station 13 - Modules - TypesVar Details - Proc Details

innate

Vars

activeWhether we're active or not, if we're a innate - toggle action.
click_actionWhether we're a click action or not, if we're a innate - click action.
disable_textIf we're a click action, the text shown on disable
enable_textIf we're a click action, the text shown on enable
ranged_mousepointerIf we're a click action, the mouse pointer we use

Procs

InterceptClickOnHandles whenever a mob clicks on something
do_abilityActually goes through and does the click ability
set_ranged_abilityThis is gross, but a somewhat-required bit of copy+paste until action code becomes slightly more sane. Anything that uses these functions should eventually be moved to use cooldown actions. (Either that, or the click ability of cooldown actions should be moved down a type.)
unset_ranged_abilityRemoves this action as the active ability of the passed mob

Var Details

active

Whether we're active or not, if we're a innate - toggle action.

click_action

Whether we're a click action or not, if we're a innate - click action.

disable_text

If we're a click action, the text shown on disable

enable_text

If we're a click action, the text shown on enable

ranged_mousepointer

If we're a click action, the mouse pointer we use

Proc Details

InterceptClickOn

Handles whenever a mob clicks on something

do_ability

Actually goes through and does the click ability

set_ranged_ability

This is gross, but a somewhat-required bit of copy+paste until action code becomes slightly more sane. Anything that uses these functions should eventually be moved to use cooldown actions. (Either that, or the click ability of cooldown actions should be moved down a type.)

If you're adding something that uses these, rethink your choice in subtypes. Sets this action as the active ability for the passed mob

unset_ranged_ability

Removes this action as the active ability of the passed mob