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

listen_and_repeat

Simple element that will deterministically set a value based on stuff that the source has heard and will then compel the source to repeat it. Requires a valid AI Blackboard.

Vars

blackboard_keyThe AI Blackboard Key we assign the value to.
desired_phrasesList of things that we start out having in our speech buffer
speech_bufferList of things that we've heard and will repeat.
speech_probabilityProbability we speak
switch_phrase_probabilityProbabiliy we switch our phrase

Procs

on_hearCalled when we hear something.
on_write_memoryExports all the speech buffer data to a dedicated blackboard key on the source.
set_new_blackboard_phraseCalled to set a new value for the blackboard key.

Var Details

blackboard_key

The AI Blackboard Key we assign the value to.

desired_phrases

List of things that we start out having in our speech buffer

speech_buffer

List of things that we've heard and will repeat.

speech_probability

Probability we speak

switch_phrase_probability

Probabiliy we switch our phrase

Proc Details

on_hear

Called when we hear something.

on_write_memory

Exports all the speech buffer data to a dedicated blackboard key on the source.

set_new_blackboard_phrase

Called to set a new value for the blackboard key.