mob_controller
Vars | |
_enemies | Who are our sworn enemies? Lazylist of weakrefs. |
---|---|
_friends | Who are we friends with? Lazylist of weakrefs. |
body | The parent mob we control. |
can_escape_buckles | Can we automatically escape from buckling? |
current_activity | What are we busy with currently? |
do_wander | Does the mob wander around when idle? |
emote_hear | Hearable emotes that this mob can randomly perform. |
emote_see | Unlike speak_emote, the list of things in this variable only show by themselves with no spoken text. IE: Ian barks, Ian yaps |
emote_speech | Strings shown when this mob speaks and is not understood. |
expected_type | Type of mob this AI applies to. |
speak_chance | A prob chance of speaking. |
stance | What is our current general attitude and demeanor? |
stop_wander | Use this to temporarely stop random movement or to if you write special movement code for animals. |
stop_wander_when_pulled | When set to 1 this stops the animal from moving when someone is grabbing it. |
try_destroy_surroundings | Aggressive AI var; defined here for reference without casting. |
turns_per_wander | How many life ticks should pass before we wander? |
turns_since_wander | How many life ticks have passed since our last wander? |
wander_directions | What directions can we wander in? Uses global.cardinal if unset. |
Procs | |
scooped_by | General-purpose scooping reaction proc, used by /passive. Returns TRUE if the scoop should proceed, FALSE if it should be canceled. |
Var Details
_enemies
Who are our sworn enemies? Lazylist of weakrefs.
_friends
Who are we friends with? Lazylist of weakrefs.
body
The parent mob we control.
can_escape_buckles
Can we automatically escape from buckling?
current_activity
What are we busy with currently?
do_wander
Does the mob wander around when idle?
emote_hear
Hearable emotes that this mob can randomly perform.
emote_see
Unlike speak_emote, the list of things in this variable only show by themselves with no spoken text. IE: Ian barks, Ian yaps
emote_speech
Strings shown when this mob speaks and is not understood.
expected_type
Type of mob this AI applies to.
speak_chance
A prob chance of speaking.
stance
What is our current general attitude and demeanor?
stop_wander
Use this to temporarely stop random movement or to if you write special movement code for animals.
stop_wander_when_pulled
When set to 1 this stops the animal from moving when someone is grabbing it.
try_destroy_surroundings
Aggressive AI var; defined here for reference without casting.
turns_per_wander
How many life ticks should pass before we wander?
turns_since_wander
How many life ticks have passed since our last wander?
wander_directions
What directions can we wander in? Uses global.cardinal if unset.
Proc Details
scooped_by
General-purpose scooping reaction proc, used by /passive. Returns TRUE if the scoop should proceed, FALSE if it should be canceled.