Node book
Lists
Lists of values: people, items, numbers.
- Make list
list/MakeA list of the values given. - Count
list/CountHow many items a list has. - Get
list/GetThe item at a place in a list, the first at 0; nothing past its end. - Last
list/LastThe last item of a list. - Contains
list/ContainsWhether a list has an item. - Find
list/IndexOfWhere an item is in a list, -1 when it isn't. - Random item
list/RandomOne item of a list by chance; nothing for an empty list. - Copy list
list/CopyA list of its own with the same items. - Add to list
list/AddPuts an item at the end of a list. - Remove from list
list/RemoveTakes an item out of a list. - Remove at
list/RemoveAtTakes out the item at a place, the first at 0. - Clear list
list/ClearEmpties a list.
Maps
Maps: values kept under keys, as a player's tally under the player or a price under an item's name.
- Get from map
map/GetThe value kept under a key, and whether there is one. - Map has
map/HasWhether a map keeps something under a key. - Put in map
map/SetKeeps a value under a key, replacing what was there. - Remove from map
map/RemoveTakes a key and its value out of a map, if it is there. - Map count
map/CountHow many keys a map has. - Map keys
map/KeysA map's keys as a list, in the order they were first put. - Map values
map/ValuesA map's values as a list, in its keys' order. - Clear map
map/ClearTakes every key out of a map.
Modding