/tg/ Station 13 - Modules - TypesVar Details

pick_random_ability

Picks a random available ability from a pool of blackboard keys, excluding the last-used one. Writes the selected action object to result_key for a targeted_mob_ability leaf to fire. Returns INSTANT FAILURE if no ability in the pool is currently available.

Vars

ability_keysList of blackboard key name strings to pick from.
last_used_keyBlackboard key storing the last-picked key name string (anti-repeat). Can be null.
result_keyBlackboard key to write the selected action object into.

Var Details

ability_keys

List of blackboard key name strings to pick from.

last_used_key

Blackboard key storing the last-picked key name string (anti-repeat). Can be null.

result_key

Blackboard key to write the selected action object into.