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

computer_file

Vars

computerThe modular computer hosting the file.
file_uidStatic ID to ensure all IDs are unique.
filenameThe name of the internal file shown in file management.
filetypeThe type of file format the file is in, placed after filename. PNG, TXT, ect. This would be NewFile.XXX
sizeHow much GQ storage space the file will take to store. Integers only!
uidThe computer file's personal ID
undeletableWhether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc.

Procs

application_attackbyCalled when attacking a tablet with an item, checking if any application uses it. Return TRUE to cancel the attack chain.
on_examineCalled when examining a modular computer Args: Source - The tablet that's being examined User - Person examining the computer
try_ejectImplement this when your program has an object that the user can eject.

Var Details

computer

The modular computer hosting the file.

file_uid

Static ID to ensure all IDs are unique.

filename

The name of the internal file shown in file management.

filetype

The type of file format the file is in, placed after filename. PNG, TXT, ect. This would be NewFile.XXX

size

How much GQ storage space the file will take to store. Integers only!

uid

The computer file's personal ID

undeletable

Whether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc.

Proc Details

application_attackby

Called when attacking a tablet with an item, checking if any application uses it. Return TRUE to cancel the attack chain.

on_examine

Called when examining a modular computer Args: Source - The tablet that's being examined User - Person examining the computer

note: please replace this with signals when hdd's are removed and program's New() already has the tablet set.

try_eject

Implement this when your program has an object that the user can eject.

Examples include ejecting cells AI intellicards. Arguments: