AI Law Mount Rack
Vars | |
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 |
Procs | |
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 |
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
- Pushes law updates to all connected AIs and Borgs - notification text allows you to customise the header
- Defaults to
Law update detected
- Defaults to
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.
- If there is no law in that slot, this will trigger on the law closest to that slot.
- If there are no laws to glitch, just do nothing.
drop_all_modules
Causes all law modules to drop to the ground, does not call UpdateLaws()
format_for_display
- Formats current laws for display to game chat
- Output is the same as format_for_logs, but also includes removed laws at the top and styling for added laws
format_for_irc
- Formats current laws as a list in the format:
- {[lawnumber]=lawtext,etc.}
format_for_logs
- Formats current laws for logging, argument glue defaults to
- Output is:
- [law number]: [law text]
- [law number]: [law text]
- etc.
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