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

Find magicarp spell target

Finds a target for the magicarp's spell. Different spells want different targeting, so rather than make a controller per spell we branch on BB_MAGICARP_SPELL_SPECIAL_TARGETING here. Only runs if the spell is ready.

Vars

ability_keyBlackboard key holding the spell we're trying to target
special_targeting_keyBlackboard key describing any special targeting this spell wants
target_keyBlackboard key we store the chosen spell target in
targeting_strategy_keyBlackboard key holding our targeting strategy for the default case

Procs

find_animatableAn object or structure we could animate with a staff of change
find_friendly_corpseA corpse who shares our faction, for resurrection spells
find_nearest_enemyNearest valid combat target which isn't a scary fisherman (default spell targeting)
find_nearest_wallThe nearest wall which isn't invulnerable

Var Details

ability_key

Blackboard key holding the spell we're trying to target

special_targeting_key

Blackboard key describing any special targeting this spell wants

target_key

Blackboard key we store the chosen spell target in

targeting_strategy_key

Blackboard key holding our targeting strategy for the default case

Proc Details

find_animatable

An object or structure we could animate with a staff of change

find_friendly_corpse

A corpse who shares our faction, for resurrection spells

find_nearest_enemy

Nearest valid combat target which isn't a scary fisherman (default spell targeting)

find_nearest_wall

The nearest wall which isn't invulnerable