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

ai_swap_combat_mode

Attached to a mob with an AI controller, updates combat mode when the affected mob acquires or loses targets

Vars

battle_end_barksA one liner said when we exit combat mode
battle_start_barksThe message we yell when we enter combat mode
speech_chanceThe chance to yell the above lines
target_keyTarget key

Procs

on_target_clearedWhen the mob loses its target, and it was not already out of combat mode, exit it
on_target_gainedWhen the mob gains a target, and it was not already in combat mode, enter it
speak_barkSays a quip, if the RNG allows it
swap_modeIf the combat mode would be changed into a different state, updates it and returns TRUE, otherwise returns FALSE

Var Details

battle_end_barks

A one liner said when we exit combat mode

battle_start_barks

The message we yell when we enter combat mode

speech_chance

The chance to yell the above lines

target_key

Target key

Proc Details

on_target_cleared

When the mob loses its target, and it was not already out of combat mode, exit it

on_target_gained

When the mob gains a target, and it was not already in combat mode, enter it

speak_bark

Says a quip, if the RNG allows it

swap_mode

If the combat mode would be changed into a different state, updates it and returns TRUE, otherwise returns FALSE