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

regal_rat

The cheesiest, most crowned rat of them all. Regent superior of all rats in maintenance... at least until someone else tries to encroach on their claim.

Vars

current_lookWhat kind of fashion are we rocking
fashion_selectPress this to change your rat outfit
poll_ghostsShould we request a mind immediately upon spawning?
special_monikerString tied to our special moniker for examination. Contains a nice message tied to the potential funny regal name we have.

Procs

allowed_to_attackChecks if we are allowed to attack this mob. Will return TRUE if we are potentially allowed to attack, but if we end up in a case where we should NOT attack, return FALSE.
became_player_controlledTriggers an alert to all ghosts that the rat has become player controlled.
cheese_healConditionally "eat" cheese object and heal, if injured.
early_melee_attackChecks if we are able to attack this object, as well as send out the signal to see if we get any special regal rat interactions.
grant_titlesGrants the rat a special name.
on_loginSupplementary work we do when we login. Done this way so we synchronize with the ai controller shutting off and all that jazz as well as allowing more shit to be passed in if need be in future.
pick_random_lookRandomise how we look on init
poison_targetAttempts to add rat spit to a target, effectively poisoning it to whoever eats it. Yuckers. Returns TRUE if the target is valid for adding rat spit Returns FALSE if the target is invalid for adding rat spit Arguments

Var Details

current_look

What kind of fashion are we rocking

fashion_select

Press this to change your rat outfit

poll_ghosts

Should we request a mind immediately upon spawning?

special_moniker

String tied to our special moniker for examination. Contains a nice message tied to the potential funny regal name we have.

Proc Details

allowed_to_attack

Checks if we are allowed to attack this mob. Will return TRUE if we are potentially allowed to attack, but if we end up in a case where we should NOT attack, return FALSE.

became_player_controlled

Triggers an alert to all ghosts that the rat has become player controlled.

cheese_heal

Conditionally "eat" cheese object and heal, if injured.

A private proc for sending a message to the mob's chat about them eating some sort of cheese, then healing them, then deleting the cheese. The "eating" is only conditional on the mob being injured in the first place.

early_melee_attack

Checks if we are able to attack this object, as well as send out the signal to see if we get any special regal rat interactions.

grant_titles

Grants the rat a special name.

on_login

Supplementary work we do when we login. Done this way so we synchronize with the ai controller shutting off and all that jazz as well as allowing more shit to be passed in if need be in future.

pick_random_look

Randomise how we look on init

poison_target

Attempts to add rat spit to a target, effectively poisoning it to whoever eats it. Yuckers. Returns TRUE if the target is valid for adding rat spit Returns FALSE if the target is invalid for adding rat spit Arguments