companion

Companion component
This component defines behaviour for a mob to follow another mob and react to stuff it does.
Vars | |
mob_master | The mob this mob is following |
---|---|
on_hear_behaviours | List of actions performed upon hearing certain things from mob_master |
Procs | |
assign_mob_master | Handles assigning a new master mob |
clear_note | Deletes the created commands note |
goodbye | Removes the current master_mob through a command |
handle_attackby | Handles what the companion does when interacted with with an item |
handle_mob_master_speech | Handles what the slug does on hearing its owner |
handle_repeat_speech | Does the words repeating action |
handle_update_name | Does the name update action |
help | The mob gives a note to the mob_master containing available commands |
repeat_speech | The slugcat repeats the person's words |
unassign_mob_master | This needs to be after the AI component as that sets the intent to harm Handles unassigning a master mob and cleaning up things related to that |
update_name | The slugcat listens for its new name |
Var Details
mob_master

The mob this mob is following
on_hear_behaviours

List of actions performed upon hearing certain things from mob_master
Proc Details
assign_mob_master
Handles assigning a new master mob
clear_note
Deletes the created commands note
goodbye
Removes the current master_mob through a command
handle_attackby
Handles what the companion does when interacted with with an item
handle_mob_master_speech
Handles what the slug does on hearing its owner
handle_repeat_speech
Does the words repeating action
handle_update_name
Does the name update action
help
The mob gives a note to the mob_master containing available commands
repeat_speech
The slugcat repeats the person's words
unassign_mob_master
This needs to be after the AI component as that sets the intent to harm Handles unassigning a master mob and cleaning up things related to that
update_name
The slugcat listens for its new name