ai_laws 
Vars | |
| 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") |
Procs | |
| 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 |
| 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 |
| 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 |
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:
- include_zeroth - Operator that controls if law 0 or law 666 is returned in the set
- show_numbers - Operator that controls if law numbers are prepended to the returned laws
- render_html - Operator controlling if HTML tags are rendered on the returned laws
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