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

martial_art

Vars

allow_temp_overrideIf TRUE, this martial art can be overridden and stored (via base) by other martial arts if deemed "temporary" via teach().
baseUsed for temporary martial arts. This is a reference to the last martial art that was replaced by this one.
combo_timerThe length of time until streaks are auto-reset.
current_targetWeakref to the last mob we attacked, for determining when to reset streaks
display_combosIf TRUE, a combo meter will be displayed on the HUD for the current streak
help_verbPath to verb to display help text for this martial art.
holderThe current mob associated with this martial art datum. Do not set directly.
idID of the martial art
max_streak_lengthThe maximum length of streaks allowed
namePlayer readable name of the martial art
pacifist_styleIf TRUE, this style allows you to punch people despite being a pacifist (IE: Boxing, which does no damage)
smashes_tablesIf TRUE, this martial art smashes tables when performing table slams and head smashes
streakThe streak of attacks the user has performed
timeridTimer ID for the combo reset timer.

Procs

add_to_streakAdds the passed element to the current streak, resetting it if the target is not the same as the last target.
attempt_grabSignal proc for COMSIG_LIVING_GRAB to hook into the grab
can_useChecks if the passed mob can use this martial art.
disarm_actCalled when disarm-intenting on someone
fully_removeA helper proc to remove the martial art from the passed mob fully, e ven if stored in another martial art's base.
grab_actCalled when grabbing someone
harm_actCalled when harm-intenting on someone
help_actCalled when help-intenting on someone
on_removeCalled when this martial art is removed from a mob.
on_teachCalled when this martial art is added to a mob.
removeRemoves this martial art from the passed mob AND their mind.
reset_streakResets the current streak.
store_martial_artStores the passed martial art in the base var.
teachTeaches the passed mob this martial art.
transfer_martial_artsSignal proc for COMSIG_MOB_MIND_TRANSFERRED_OUT_OF to pass martial arts between bodies on mind transfer By this point the martial art's holder is the old body, but the mind that owns it is in the new body
unarmed_strikeSignal proc for COMSIG_LIVING_UNARMED_ATTACK to hook into the appropriate proc
unstore_martial_artUnstores the base var.

Var Details

allow_temp_override

If TRUE, this martial art can be overridden and stored (via base) by other martial arts if deemed "temporary" via teach().

base

Used for temporary martial arts. This is a reference to the last martial art that was replaced by this one.

combo_timer

The length of time until streaks are auto-reset.

current_target

Weakref to the last mob we attacked, for determining when to reset streaks

display_combos

If TRUE, a combo meter will be displayed on the HUD for the current streak

help_verb

Path to verb to display help text for this martial art.

holder

The current mob associated with this martial art datum. Do not set directly.

id

ID of the martial art

max_streak_length

The maximum length of streaks allowed

name

Player readable name of the martial art

pacifist_style

If TRUE, this style allows you to punch people despite being a pacifist (IE: Boxing, which does no damage)

smashes_tables

If TRUE, this martial art smashes tables when performing table slams and head smashes

streak

The streak of attacks the user has performed

timerid

Timer ID for the combo reset timer.

Proc Details

add_to_streak

Adds the passed element to the current streak, resetting it if the target is not the same as the last target.

Arguments

attempt_grab

Signal proc for COMSIG_LIVING_GRAB to hook into the grab

can_use

Checks if the passed mob can use this martial art.

Arguments

Returns

disarm_act

Called when disarm-intenting on someone

What is checked going into this: Adjacency, TRAIT_MARTIAL_ARTS_IMMUNE, attacker incapacitated, can_unarmed_attack, can_use

What is NOT: check_block

Arguments

Returns

fully_remove

A helper proc to remove the martial art from the passed mob fully, e ven if stored in another martial art's base.

Arguments

Returns

grab_act

Called when grabbing someone

What is checked going into this: Adjacency, TRAIT_MARTIAL_ARTS_IMMUNE, attacker incapacitated, can_unarmed_attack, can_use

What is NOT: check_block

Arguments

Returns

harm_act

Called when harm-intenting on someone

What is checked going into this: Adjacency, TRAIT_MARTIAL_ARTS_IMMUNE, attacker incapacitated, can_unarmed_attack, can_use

What is NOT: check_block

Arguments

Returns

help_act

Called when help-intenting on someone

What is checked going into this: Adjacency, TRAIT_MARTIAL_ARTS_IMMUNE, attacker incapacitated, can_unarmed_attack, can_use

What is NOT: check_block

Arguments

Returns

on_remove

Called when this martial art is removed from a mob.

on_teach

Called when this martial art is added to a mob.

remove

Removes this martial art from the passed mob AND their mind.

Arguments

reset_streak

Resets the current streak.

Arguments

store_martial_art

Stores the passed martial art in the base var.

teach

Teaches the passed mob this martial art.

Arguments

Returns

transfer_martial_arts

Signal proc for COMSIG_MOB_MIND_TRANSFERRED_OUT_OF to pass martial arts between bodies on mind transfer By this point the martial art's holder is the old body, but the mind that owns it is in the new body

unarmed_strike

Signal proc for COMSIG_LIVING_UNARMED_ATTACK to hook into the appropriate proc

unstore_martial_art

Unstores the base var.