Graphs
Maps (keys to values)
A map holds values under keys: a tally of kills under each player, a price under each item's name, a thing under a word. It is a kind like any other, with a key kind and a value kind: player to whole number, text to thing.
Making one
Add a variable, pick Map as its kind, then its Keys and Values kinds. Its starting pairs are rows of key → value, with + Row and a × each.

In a file, a map variable names its key kind as key and its value kind as type, and its value is a list of pairs:
{ "name": "debts", "kind": "Map", "key": "Text", "type": "Int", "value": [ ["Jakub", 12], ["Ondrej", 5] ] }A key or value that is a thing of the game's names its type: "key": "Player.Character" is a player.
Its nodes
They are under Lists › Maps in the node list. Their pins take the kinds of the map wired in.
- 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.
For each in map (under Flow › Loops) runs once for each pair, over the keys as they were when it started. A map variable's set node also has put and remove as operators (Variables and scopes).
Keys and saving
- Pairs keep the order they were put in.
- Keys are compared as numbers, as text, or as the same thing.
- A map can be saved as lists are: numbers, text, positions, colours, things and items by address. People have no lasting identity and are kept as nothing.
The Bounty on bandits template tallies each player's kills in a map, and its note tells the player their count.
Modding