Unknown Laws 
        
    
            
        
| Vars | |
| adminselectable | Should this be selectable by admins? If it has laws that aren't inherent, it is recommended to keep this to false. | 
|---|---|
| devil | A list of antag-only laws from the Devil gamemode. | 
| id | The lawset id. | 
| law_header | A short header that further describes the lawset (as flavortext). Can be null. | 
| modified | Determines if this lawset is considered "modified" or non-default. | 
| name | The lawset name. | 
| owner | Owner of this lawset. May be null due to MMIs (non-silicon) using this. | 
| selectable | Should this be selectable by traitor/malf AIs? | 
| zeroth_borg | A rephrased zeroth law for Cyborgs; i.e "your master AI's goals". | 
| Procs | |
| clear_zeroth_law | Removes the zeroth law unless the lawset owner is an antag. Can be forced. | 
| get_law_amount | Gets the total amount of laws that are part of the group list. | 
| get_law_list | Converts all laws in a text list. Can show zeroth law(s), numbers, and do fonting. | 
| lawid_to_type | Returns the lawset, if found, that has the same id as the given one. | 
| pick_ion_lawset | Sets the interent laws based on the configuration's ion_law_weight. | 
| pickweighted_lawset | Sets the interent laws based on the configuration's law_weight. | 
| remove_law | Removes a law by their index. Use remove_inherent_law() or remove_supplied_law() if you want to be more specific. | 
| replace_random_law | Replaces a random law that are part of a listed group with an another law. Devil laws not supported. | 
| set_laws_config | Sets the interent laws based on the configuration's random_laws. | 
| shuffle_laws | Shuffle the laws that are part of the listed groups. Devil laws and zeroth law not supported. | 
Var Details
adminselectable
            
        
    
            
        
        Should this be selectable by admins? If it has laws that aren't inherent, it is recommended to keep this to false.
devil
            
        
    
            
        
        A list of antag-only laws from the Devil gamemode.
id
            
        
    
            
        
        The lawset id.
law_header
            
        
    
            
        
        A short header that further describes the lawset (as flavortext). Can be null.
modified
            
        
    
            
        
        Determines if this lawset is considered "modified" or non-default.
name
            
        
    
            
        
        The lawset name.
owner
            
        
    
            
        
        Owner of this lawset. May be null due to MMIs (non-silicon) using this.
selectable
            
        
    
            
        
        Should this be selectable by traitor/malf AIs?
zeroth_borg
            
        
    
            
        
        A rephrased zeroth law for Cyborgs; i.e "your master AI's goals".
Proc Details
clear_zeroth_law
Removes the zeroth law unless the lawset owner is an antag. Can be forced.
get_law_amount
Gets the total amount of laws that are part of the group list.
get_law_list
Converts all laws in a text list. Can show zeroth law(s), numbers, and do fonting.
lawid_to_type
Returns the lawset, if found, that has the same id as the given one.
pick_ion_lawset
Sets the interent laws based on the configuration's ion_law_weight.
pickweighted_lawset
Sets the interent laws based on the configuration's law_weight.
remove_law
Removes a law by their index. Use remove_inherent_law() or remove_supplied_law() if you want to be more specific.
replace_random_law
Replaces a random law that are part of a listed group with an another law. Devil laws not supported.
set_laws_config
Sets the interent laws based on the configuration's random_laws.
shuffle_laws
Shuffle the laws that are part of the listed groups. Devil laws and zeroth law not supported.