Yogstation 13 - Modules - TypesVar Details - Proc Details

Unknown Laws

Vars

adminselectableShould this be selectable by admins? If it has laws that aren't inherent, it is recommended to keep this to false.
devilA list of antag-only laws from the Devil gamemode.
idThe lawset id.
law_headerA short header that further describes the lawset (as flavortext). Can be null.
modifiedDetermines if this lawset is considered "modified" or non-default.
nameThe lawset name.
ownerOwner of this lawset. May be null due to MMIs (non-silicon) using this.
selectableShould this be selectable by traitor/malf AIs?
zeroth_borgA rephrased zeroth law for Cyborgs; i.e "your master AI's goals".

Procs

clear_zeroth_lawRemoves the zeroth law unless the lawset owner is an antag. Can be forced.
get_law_amountGets the total amount of laws that are part of the group list.
get_law_listConverts all laws in a text list. Can show zeroth law(s), numbers, and do fonting.
lawid_to_typeReturns the lawset, if found, that has the same id as the given one.
pick_ion_lawsetSets the interent laws based on the configuration's ion_law_weight.
pickweighted_lawsetSets the interent laws based on the configuration's law_weight.
remove_lawRemoves a law by their index. Use remove_inherent_law() or remove_supplied_law() if you want to be more specific.
replace_random_lawReplaces a random law that are part of a listed group with an another law. Devil laws not supported.
set_laws_configSets the interent laws based on the configuration's random_laws.
shuffle_lawsShuffle 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.