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

slime

Vars

FriendsA list of friends; they are not considered targets for feeding; passed down after splitting
LeaderAI variable - tells the slime to follow this person
TargetAI variable - tells the slime to hunt this down
amount_grownControls how long the slime has been overfed, if 10, grows or reproduces
applied_crossbreed_amountHow many extracts of the modtype have been applied.
attacked_stacksDetermines if it's been attacked recently. Can be any number, is a cooloff-ish variable
coresThe number of /obj/item/slime_extract's the slime has left inside
crossbreed_modificationWhat cross core modification is being used.
current_moodThe current mood of the slime, set randomly or through emotes (if sentient).
discipline_stacksIf a slime has been hit with a freeze gun, or wrestled/attacked off a human, they become disciplined and don't attack anymore for a while
docileIs the slime docile?
force_stasisIs the slime forced into being immobile, despite the gases present?
holding_stillAI variable, cooloff-ish for how long it's going to stay in one place
is_adultIs the slime an adult slime?
is_attack_on_cooldownAttack cooldown
mutation_chanceChance of mutating, should be between 25 and 35
mutator_usedHas a mutator been used on the slime? Only one is allowed
powerlevel1-10 controls how much electricity they are generating
rabidIf set to 1, the slime will attack and eat anything it comes in contact with
slime_ai_processingDetermines if the AI loop is activated
slime_idUsed to understand when someone is talking to it
speech_bufferLast phrase said near it and person who said it
stunned_untilStored the world time when the slime's stun wears off
target_patienceAI variable, cooloff-ish for how long it's going to follow its target

Procs

add_friendshipAlters the friendship value of the target
add_nutritionAdds nutrition to the slime's nutrition level. Has a chance to increase its electric levels.
can_feed_onCan the slime leech life energy from the target?
clear_friendsRemoves everyone from the friend list
clear_memories_ofThe passed source will be no longer be the slime's target, leader, or one of its friends
discipline_slimeMakes a slime not attack people for a while
get_grow_nutritionAbove it we grow, below it we can eat
get_hunger_nutritionBelow it we will always eat
get_max_nutritionCan't go above it
get_starve_nutritionBelow it we will eat before everything else
handle_feedingThe divisor controls how fast body temperature changes, lower causes faster changes Handles the slime draining the target it is attached to
handle_moodHandles slime mood
handle_nutritionHandles the slime's nutirion level
handle_speechHandles the slime understanding commends spoken to it
handle_targetsHandles selecting targets
process_slime_aithe master AI process
random_colourChecks if the slime has a generic name, in the format of baby/adult slime (123) randomizes the colour of a slime
remove_friendRemoves someone from the friendlist
set_friendsAdds someone to the friend list
set_friendshipSets the friendship value of the target
set_leaderSets the person the slime is following around
set_targetSets the slime's current attack target
slime_moveMakes a slime move away, used for a timed callback
spawn_corecrossSpawns a crossed slimecore item
start_feedingThe slime will start feeding on the target
stop_feedingThe slime will stop feeding
will_huntCheck for being stopped from feeding and chasing

Var Details

Friends

A list of friends; they are not considered targets for feeding; passed down after splitting

Leader

AI variable - tells the slime to follow this person

Target

AI variable - tells the slime to hunt this down

amount_grown

Controls how long the slime has been overfed, if 10, grows or reproduces

applied_crossbreed_amount

How many extracts of the modtype have been applied.

attacked_stacks

Determines if it's been attacked recently. Can be any number, is a cooloff-ish variable

cores

The number of /obj/item/slime_extract's the slime has left inside

crossbreed_modification

What cross core modification is being used.

current_mood

The current mood of the slime, set randomly or through emotes (if sentient).

discipline_stacks

If a slime has been hit with a freeze gun, or wrestled/attacked off a human, they become disciplined and don't attack anymore for a while

docile

Is the slime docile?

force_stasis

Is the slime forced into being immobile, despite the gases present?

holding_still

AI variable, cooloff-ish for how long it's going to stay in one place

is_adult

Is the slime an adult slime?

is_attack_on_cooldown

Attack cooldown

mutation_chance

Chance of mutating, should be between 25 and 35

mutator_used

Has a mutator been used on the slime? Only one is allowed

powerlevel

1-10 controls how much electricity they are generating

rabid

If set to 1, the slime will attack and eat anything it comes in contact with

slime_ai_processing

Determines if the AI loop is activated

slime_id

Used to understand when someone is talking to it

speech_buffer

Last phrase said near it and person who said it

stunned_until

Stored the world time when the slime's stun wears off

target_patience

AI variable, cooloff-ish for how long it's going to follow its target

Proc Details

add_friendship

Alters the friendship value of the target

add_nutrition

Adds nutrition to the slime's nutrition level. Has a chance to increase its electric levels.

can_feed_on

Can the slime leech life energy from the target?

clear_friends

Removes everyone from the friend list

clear_memories_of

The passed source will be no longer be the slime's target, leader, or one of its friends

discipline_slime

Makes a slime not attack people for a while

get_grow_nutrition

Above it we grow, below it we can eat

get_hunger_nutrition

Below it we will always eat

get_max_nutrition

Can't go above it

get_starve_nutrition

Below it we will eat before everything else

handle_feeding

The divisor controls how fast body temperature changes, lower causes faster changes Handles the slime draining the target it is attached to

handle_mood

Handles slime mood

handle_nutrition

Handles the slime's nutirion level

handle_speech

Handles the slime understanding commends spoken to it

handle_targets

Handles selecting targets

process_slime_ai

the master AI process

random_colour

Checks if the slime has a generic name, in the format of baby/adult slime (123) randomizes the colour of a slime

remove_friend

Removes someone from the friendlist

set_friends

Adds someone to the friend list

set_friendship

Sets the friendship value of the target

set_leader

Sets the person the slime is following around

set_target

Sets the slime's current attack target

slime_move

Makes a slime move away, used for a timed callback

spawn_corecross

Spawns a crossed slimecore item

start_feeding

The slime will start feeding on the target

stop_feeding

The slime will stop feeding

will_hunt

Check for being stopped from feeding and chasing