Loner-StrikeReference

Reference

Saved

8 Game Mode Studio nodes. Pick one for its pins, settings and limits.

Saved Value

valuesave.get

A number kept for this player across maps, restarts and crashes (0 until set). Each mode has its own file.

Inputs (1)
Player Player
The player. Needs a wire.
Outputs (1)
Value Number
Value: a number.
Settings (1)
Name
A name, as the map or the game knows it (letters, digits, _ . -). Default: wins.

Save Value

actionsave.set

Keeps a number for this player across maps and restarts.

Inputs (3)
Run Flow
Runs this node.
Player Player
The player. Needs a wire.
Value Number
Value: a number. Leave it empty to use the setting.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (2)
Name
A name, as the map or the game knows it (letters, digits, _ . -). Default: wins.
Value
A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 0.

Add To Saved

actionsave.add

Adds to a saved number (a minus takes away).

Inputs (3)
Run Flow
Runs this node.
Player Player
The player. Needs a wire.
Amount Number
Amount: a number. Leave it empty to use the setting.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (2)
Name
A name, as the map or the game knows it (letters, digits, _ . -). Default: wins.
Amount
A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 1.

Saved Text

valuesave.text_get

Text kept for this player across maps, restarts and crashes (empty until set). Each mode has its own file.

Inputs (1)
Player Player
The player. Needs a wire.
Outputs (1)
Text Text
The text.
Settings (1)
Name
A name, as the map or the game knows it (letters, digits, _ . -). Default: title.

Save Text

actionsave.text_set

Keeps text for this player across maps and restarts (up to 63 letters).

Inputs (3)
Run Flow
Runs this node.
Player Player
The player. Needs a wire.
Text Text
The text. Leave it empty to use the setting.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (2)
Name
A name, as the map or the game knows it (letters, digits, _ . -). Default: title.
Text
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Up to 63.
Bots (1)

Players are known by their Steam ID; bots and LAN players by their name.

Notes (1)

Kept in the mode's own file beside Saved Value's (written within 5 seconds, and at the map's end; a crash leaves one whole file). Players are known by their Steam ID; bots and LAN players by their name.

Server Value

valuesave.server_get

A value kept for the whole server (not per player) across maps and restarts: a number and a text (each 0 or empty until set).

Outputs (2)
Number Number
The saved number (0 until set).
Text Text
The saved text (empty until set).
Settings (1)
Name
A name, as the map or the game knows it (letters, digits, _ . -). Default: record.
Notes (1)

For things that belong to the server, not a player: a record time and who set it, a counter of rounds played across maps.

Set Server Value

actionsave.server_set

Keeps a number or a text for the whole server across maps and restarts.

Inputs (3)
Run Flow
Runs this node.
Number Number
The number. Leave it empty to use the setting.
Text Text
The text. Optional.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (3)
Name
A name, as the map or the game knows it (letters, digits, _ . -). Default: record.
Keep
Pick one: The number, The text. Default: number.
Number
A number from -1e+08 to 1e+08. A wire into the pin of the same name is used instead. Default: 0. From -100000000 up to 100000000.

Top Players

flowsave.top

The best players by a saved value (Saved Value's name), highest first or lowest first, offline players too (the save file keeps their names): Each runs once per place with Rank, Name and Value, then Then. How many places: Top Players places, in the mode's Limits settings (10 to start).

Inputs (1)
Run Flow
Runs this node.
Outputs (5)
Each Flow
Runs once for every item.
Rank Number
The place: 1 for the best.
Name Text
Their name as last seen (bots and LAN players: the name they were saved by).
Value Number
Their saved value.
Then Flow
Goes on when it's done.
Settings (2)
Saved value
A name, as the map or the game knows it (letters, digits, _ . -). Default: wins.
Order
Pick one: Highest first, Lowest first. Default: high.
Limits (1)
Top Players places
10 by default; hosts can raise it to 100. Above 50 the server may slow down.
Notes (2)

Reads every player's value of one Saved Value (its name) from the save file, so players who aren't on the server count too, named as they were last seen. Each runs once per place, best first. How many places is Top Players places, a setting in the mode's Limits group, 10 to start (the checks warn above 50).

Cost: Goes through the whole save file each time it runs: run it now and then (a round's start, a chat command), not every tick.

Made from the app's own catalog (nodes.json, nodehelp.json, limits.ts), so it matches the app.