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

ai_laws

Vars

hackedHacked laws Can be supplied by a law rack, or can be added naturally Their priority is always pushed above inherent laws
idThe ID of this lawset, pretty much only used to tell if we're default or not
inherentCore Laws These laws are usually applied by an ai lawset, or a law rack
nameThe name of the lawset
protected_zerothIf TRUE, the zeroth law of this AI is protected and cannot be removed by players under normal circumstances.
suppliedSupplied laws These laws are usually applied by adminbus or niche circumstances In the case of AIs, they will always stick around, law rack or no
zerothZeroth law A lawset can only have 1 zeroth law, it's the top dog. Removed by things that remove core/inherent laws, but only if protected_zeroth is false. Otherwise, cannot be removed except by admins
zeroth_borgZeroth borg law It's just a zeroth law but specially themed for cyborgs ("follow your master" vs "accomplish your objectives")

Procs

add_hacked_lawAdds the passed law as an hacked law.
add_inherent_lawAdds the passed law as an inherent law. Can optionally be supplied an index to insert the law at. No duplicate laws allowed.
ai_to_cyborgApplies all laws from this lawset to the passed lawset, treating it as if it was a cyborg lawset
clear_hacked_lawsClears all hacked laws.
clear_inherent_lawsClears all inherent laws from this lawset.
clear_supplied_lawsClears all supplied laws.
clear_zeroth_lawUnsets the zeroth (and zeroth borg) law from this lawset
copy_lawsetMakes a copy of the lawset and returns a new law datum.
get_law_listGenerates a list of all laws on this datum, including rendered HTML tags if required
remove_hacked_lawRemoves the passed law from the hacked law list.
remove_inherent_lawRemoves the passed law from the inherent law list.
set_zeroth_lawSets this lawset's zeroth law to the passed law

Var Details

hacked

Hacked laws Can be supplied by a law rack, or can be added naturally Their priority is always pushed above inherent laws

id

The ID of this lawset, pretty much only used to tell if we're default or not

inherent

Core Laws These laws are usually applied by an ai lawset, or a law rack

name

The name of the lawset

protected_zeroth

If TRUE, the zeroth law of this AI is protected and cannot be removed by players under normal circumstances.

supplied

Supplied laws These laws are usually applied by adminbus or niche circumstances In the case of AIs, they will always stick around, law rack or no

zeroth

Zeroth law A lawset can only have 1 zeroth law, it's the top dog. Removed by things that remove core/inherent laws, but only if protected_zeroth is false. Otherwise, cannot be removed except by admins

zeroth_borg

Zeroth borg law It's just a zeroth law but specially themed for cyborgs ("follow your master" vs "accomplish your objectives")

Proc Details

add_hacked_law

Adds the passed law as an hacked law.

add_inherent_law

Adds the passed law as an inherent law. Can optionally be supplied an index to insert the law at. No duplicate laws allowed.

ai_to_cyborg

Applies all laws from this lawset to the passed lawset, treating it as if it was a cyborg lawset

clear_hacked_laws

Clears all hacked laws.

clear_inherent_laws

Clears all inherent laws from this lawset.

clear_supplied_laws

Clears all supplied laws.

clear_zeroth_law

Unsets the zeroth (and zeroth borg) law from this lawset

This will NOT unset a malfunctioning AI's zero law if force is not true

Returns TRUE on success, or false otherwise

copy_lawset

Makes a copy of the lawset and returns a new law datum.

get_law_list

Generates a list of all laws on this datum, including rendered HTML tags if required

Arguments:

remove_hacked_law

Removes the passed law from the hacked law list.

remove_inherent_law

Removes the passed law from the inherent law list.

set_zeroth_law

Sets this lawset's zeroth law to the passed law

Also can set the zeroth borg law, if this lawset is for master AIs. The zeroth borg law allows for AIs with zeroth laws to give a differing zeroth law to their child cyborgs