Goonstation 13 - Modules - TypesVar Details - Proc Details

AI Law Mount Rack

Vars

ai_abilitieslist of ability expansions
holo_expansionslist of hologram expansions
last_lawsused during UpdateLaws to determine which laws have changed
law_circuitslist of aiModules ref'd by slot number.
screwedscrewed status of law module by slot number
unique_idunique id for logs - please don't ever assign except in ai_law_rack_manager.register
weldedwelded status of law module by slot number

Procs

DeleteAllLawsDeletes all laws. Does not call UpdateLaws()
DeleteLawDeletes a law in an abritrary slot. Does not call UpdateLaws()
SetLawSets an arbitrary slot to the passed aiModule - will override any module in the slot. Does not call UpdateLaws()
SetLawCustomSets an arbitrary slot to a custom law specified by lawName and lawText - will override any module in the slot. Does not call UpdateLaws() Intended for Admemery
UpdateLaws
cause_law_glitchThis will cause a module to glitch, either totally replace it law or adding picked_law to its text (depening on replace). Lawnumber is a suggestion, not a guarentee.
drop_all_modulesCauses all law modules to drop to the ground, does not call UpdateLaws()
format_for_display
format_for_irc
format_for_logs
show_lawsTakes a list or single target to show laws to
update_last_lawsSaves the current law list to last_laws so we can see diffs

Var Details

ai_abilities

list of ability expansions

holo_expansions

list of hologram expansions

last_laws

used during UpdateLaws to determine which laws have changed

law_circuits

list of aiModules ref'd by slot number.

screwed

screwed status of law module by slot number

unique_id

unique id for logs - please don't ever assign except in ai_law_rack_manager.register

welded

welded status of law module by slot number

Proc Details

DeleteAllLaws

Deletes all laws. Does not call UpdateLaws()

DeleteLaw

Deletes a law in an abritrary slot. Does not call UpdateLaws()

SetLaw

Sets an arbitrary slot to the passed aiModule - will override any module in the slot. Does not call UpdateLaws()

SetLawCustom

Sets an arbitrary slot to a custom law specified by lawName and lawText - will override any module in the slot. Does not call UpdateLaws() Intended for Admemery

UpdateLaws

cause_law_glitch

This will cause a module to glitch, either totally replace it law or adding picked_law to its text (depening on replace). Lawnumber is a suggestion, not a guarentee.

drop_all_modules

Causes all law modules to drop to the ground, does not call UpdateLaws()

format_for_display

format_for_irc

format_for_logs

show_laws

Takes a list or single target to show laws to

update_last_laws

Saves the current law list to last_laws so we can see diffs