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

computer_file

Vars

computerThe modular computer hosting the file.
disk_hostThe computer disk 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.
can_store_fileUsed for special cases where an application Requires special circumstances to install on a PC Args:
on_examineCalled when examining a modular computer Args: Source - The tablet that's being examined User - Person examining the computer
on_installCalled post-installation of an application in a computer, after 'computer' var is set.
try_ejectImplement this when your program has an object that the user can eject.

Var Details

computer

The modular computer hosting the file.

disk_host

The computer disk 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.

can_store_file

Used for special cases where an application Requires special circumstances to install on a PC Args:

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.

on_install

Called post-installation of an application in a computer, after 'computer' var is set.

try_eject

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

Examples include ejecting cells AI intellicards. Arguments: