AI

Vars | |
coreSkin | The icon_state for the outside non-screen bit of the core. icon_state is set to this in update_appearance() (which is called by New) |
---|---|
fake_laws | a list of strings used as fake laws that may be stated via the State Fake Laws command, to deceive people as a rogue AI |
skinsList | List of valid skins and their descriptions. Used for validation of setSkin() |
termMute | controls whether or not the ai will hear termos message notifications |
Procs | |
attackby | mob/living/silicon/ai/playsound_local(var/atom/source, soundin, vol as num, vary, extrarange as num, pitch = 1, ignore_flag = 0, channel = VOLUME_CHANNEL_GAME) |
capitalize_speech | special behavior for AIs to make sure it still works in eyecam form |
choose_name | Lets the AI choose its own name. If renaming_mob is non-null, then that mob is allowed to rename the AI instead. |
clearFaceOverlays | Clears all overlays which constitute the displayed face/screen |
process_move | Movement |
setSkin | Call with a valid skin icon state as string to set the skin to said icon state |
soundToPlayer | For use when you want to play a sound to the AI player regardless of if it's in mainframe, eye, or shell Calls playsound_local(), use its syntax |
textToPlayer | For use when you want to send text to the AI player regardless of it's in its mainframe, eye, or shell Calls show_text(), use its syntax |
update_terminal | Handles connecting and disconnecting the AI from data terminals. Calling with disconnect or tryConnect is not required, but useful if you only want one to happen |
Var Details
coreSkin

The icon_state for the outside non-screen bit of the core. icon_state is set to this in update_appearance() (which is called by New)
fake_laws

a list of strings used as fake laws that may be stated via the State Fake Laws command, to deceive people as a rogue AI
skinsList

List of valid skins and their descriptions. Used for validation of setSkin()
termMute

controls whether or not the ai will hear termos message notifications
Proc Details
attackby
mob/living/silicon/ai/playsound_local(var/atom/source, soundin, vol as num, vary, extrarange as num, pitch = 1, ignore_flag = 0, channel = VOLUME_CHANNEL_GAME)
capitalize_speech
special behavior for AIs to make sure it still works in eyecam form
choose_name
Lets the AI choose its own name. If renaming_mob is non-null, then that mob is allowed to rename the AI instead.
clearFaceOverlays
Clears all overlays which constitute the displayed face/screen
process_move
Movement
setSkin
Call with a valid skin icon state as string to set the skin to said icon state
soundToPlayer
For use when you want to play a sound to the AI player regardless of if it's in mainframe, eye, or shell Calls playsound_local(), use its syntax
textToPlayer
For use when you want to send text to the AI player regardless of it's in its mainframe, eye, or shell Calls show_text(), use its syntax
update_terminal
Handles connecting and disconnecting the AI from data terminals. Calling with disconnect or tryConnect is not required, but useful if you only want one to happen